/* body{
font-family: Arial;
margin:40px;
}

h1,h2{
color:#2c3e50;
}

input,textarea{
padding:8px;
width:250px;
}

button{
padding:10px;
background:#3498db;
color:white;
border:none;
} */



/* Reset & General */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f5f7fa;
    color: #333;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #2c3e50;
    color: #fff;
    position: fixed;
    height: 100%;
    padding-top: 20px;
}

.sidebar h2 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 22px;
}

.sidebar a {
    display: block;
    color: #fff;
    padding: 12px 20px;
    text-decoration: none;
    margin-bottom: 5px;
    border-left: 4px solid transparent;
}

.sidebar a:hover {
    background: #34495e;
    border-left: 4px solid #3498db;
}

/* Main content */
.main {
    margin-left: 240px;
    padding: 20px;
}

/* Dashboard cards */
.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    flex: 1 1 200px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
}

.card h3 {
    font-size: 16px;
    color: #555;
    margin-bottom: 10px;
}

.card p {
    font-size: 24px;
    font-weight: bold;
    color: #2c3e50;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

table th, table td {
    padding: 12px;
    text-align: left;
}

table th {
    background: #3498db;
    color: #fff;
}

table tr:nth-child(even) {
    background: #f4f6f8;
}

table tr:hover {
    background: #eaf1f8;
}

/* Buttons */
button, .btn {
    padding: 8px 15px;
    border: none;
    border-radius: 5px;
    background: #3498db;
    color: #fff;
    cursor: pointer;
}

button:hover, .btn:hover {
    background: #2980b9;
}

/* Responsive */
@media(max-width:1024px){
    .cards {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

@media(max-width:768px){
    .main {
        margin-left: 0;
    }
    .cards {
        flex-direction: column;
    }
    .sidebar {
        position: relative;
        width: 100%;
        height: auto;
    }
}

@media(max-width:480px){
    table th, table td {
        font-size: 12px;
        padding: 8px;
    }
    .card p {
        font-size: 20px;
    }
}





/* Form Card Styling */
.form-card {
    max-width: 500px;
    margin: 40px auto;
    background: #fff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.form-card h2 {
    text-align: center;
    margin-bottom: 25px;
    color: #333;
}

.form-card label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #555;
}

.form-card input[type="text"],
.form-card input[type="email"],
.form-card input[type="password"],
.form-card select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 15px;
}

.form-card button {
    display: inline-block;
    width: 100%;
    padding: 12px;
    background-color: #3498db;
    color: #fff;
    font-size: 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.form-card button:hover {
    background-color: #2c80b4;
}

.back-btn {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: #aaa;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s ease;
}

.back-btn:hover {
    background: #888;
}

/* Responsive */
@media (max-width: 600px) {
    .form-card {
        margin: 20px 10px;
        padding: 20px;
    }
}