* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

body {
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
    color: #2d3748;
    line-height: 1.6;
}

/* LOGIN PAGE */
.center-page {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
}

.auth-card {
    background: #ffffff;
    padding: 45px 40px;
    width: 420px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.auth-card h2 { 
    text-align: center; 
    margin-bottom: 30px;
    color: #1a202c;
    font-size: 28px;
    font-weight: 600;
}

.auth-card input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 16px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #2d3748;
    font-size: 15px;
    transition: all 0.3s ease;
}

.auth-card input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.auth-card input::placeholder {
    color: #94a3b8;
}

/* DASHBOARD LAYOUT */
.dashboard {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    background: #ffffff;
    padding: 30px 0;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.05);
    border-right: 1px solid #e2e8f0;
}

.sidebar h3 {
    margin: 0 20px 30px;
    font-size: 24px;
    font-weight: 700;
    color: #3b82f6;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.sidebar a {
    display: flex;
    align-items: center;
    color: #475569;
    padding: 14px 20px;
    margin: 0 10px;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.sidebar a:hover { 
    background: #f1f5f9;
    color: #3b82f6;
    transform: translateX(4px);
}

.sidebar .danger { 
    color: #ffffff;
    background: #ef4444;
    margin-top: 20px;
}

.sidebar .danger:hover {
    background: #dc2626;
    color: #ffffff;
}

/* CONTENT AREA */
.content {
    flex: 1;
    padding: 40px;
    max-width: 1400px;
}

.content h1 {
    font-size: 32px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 10px;
}

.content > p {
    color: #64748b;
    font-size: 16px;
    margin-bottom: 30px;
}

/* CENTERED WELCOME */
.centered-welcome {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    min-height: 60vh;
}

.centered-welcome h1 {
    font-size: 36px;
    font-weight: 700;
    color: #1a202c;
    margin-bottom: 16px;
}

.centered-welcome p {
    color: #64748b;
    font-size: 18px;
    max-width: 600px;
}

.card-grid {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.card {
    background: #ffffff;
    padding: 30px;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
}

.card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 20px;
}

/* TABLE STYLING */
.page {
    padding: 40px;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.page-header h1 {
    font-size: 28px;
    font-weight: 700;
    color: #1a202c;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

th {
    background: #f8fafc;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #475569;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid #e2e8f0;
}

td {
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    color: #2d3748;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover {
    background: #f8fafc;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 10px;
    text-decoration: none;
    color: #ffffff;
    background: #64748b;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.primary { 
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

.danger { 
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
}

button.btn {
    width: 100%;
    margin-top: 10px;
    font-size: 15px;
    padding: 14px 20px;
}

/* SIGNUP LINK */
.signup-link {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
    color: #64748b;
    font-size: 14px;
}

.signup-link a {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.signup-link a:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* ERROR MESSAGES */
.error {
    color: #991b1b;
    background: #fee2e2;
    padding: 14px 16px;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 20px;
    border: 1px solid #fecaca;
    font-weight: 500;
}

/* FORM STYLING */
.container-side {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

.container-side h2 {
    margin-bottom: 30px;
    color: #1a202c;
    font-size: 28px;
    font-weight: 600;
    text-align: center;
}

.form-card label {
    display: block;
    margin-bottom: 8px;
    color: #475569;
    font-weight: 500;
    font-size: 14px;
}

.form-card input {
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 2px solid #e2e8f0;
    background: #f8fafc;
    color: #2d3748;
    font-size: 15px;
    transition: all 0.3s ease;
}

.form-card input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-edit {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    margin-bottom: 10px;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.btn-delete {
    background: #94a3b8;
}

.btn-delete:hover {
    background: #64748b;
}

/* RESPONSIVE DESIGN */
@media (max-width: 768px) {
    .dashboard {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
    }
    
    .content, .page {
        padding: 20px;
    }
    
    .card-grid {
        grid-template-columns: 1fr;
    }
}