/* Employee Management System - Complete Professional Styling */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-dark: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
    --success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    --danger: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    --warning: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    --info: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    --dark: #2d3748;
    --light: #f7fafc;
    --shadow: 0 20px 40px rgba(0,0,0,0.1);
    --shadow-lg: 0 25px 50px rgba(0,0,0,0.15);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Login Page */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.login-wrapper::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.05)"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    z-index: 1;
}

.container {
    position: relative;
    z-index: 2;
}

.card {
    border: none;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    transition: all 0.4s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 30px 60px rgba(0,0,0,0.2);
}

.card-body {
    padding: 3rem;
}

/* Logo & Title */
.logo {
    text-align: center;
    margin-bottom: 2rem;
}

.logo i {
    font-size: 4rem;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 10px 20px rgba(102, 126, 234, 0.3));
}

h2 {
    font-weight: 800;
    background: var(--primary-dark);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    font-size: 2.2rem;
}

.text-muted {
    color: #a0aec0 !important;
    font-size: 1.1rem;
}

/* Form Styling */
.form-label {
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.25rem rgba(102, 126, 234, 0.15);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.input-group-text {
    background: var(--primary);
    border: none;
    border-radius: 16px 0 0 16px;
    color: white;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 16px;
    padding: 1rem 2rem;
    font-weight: 700;
    font-size: 1.05rem;
    border: none;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn-primary {
    background: var(--primary);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.5);
}

.btn-primary:active {
    transform: translateY(-1px);
}

/* Alerts */
.alert {
    border: none;
    border-radius: 16px;
    padding: 1.25rem;
    font-weight: 500;
}

/* Dashboard Cards */
.border-left-primary {
    border-left: 5px solid #4e73df !important;
}

.border-left-success {
    border-left: 5px solid #1cc88a !important;
}

.border-left-info {
    border-left: 5px solid #36b9cc !important;
}

.card.shadow {
    border-radius: 20px;
    border: none;
    transition: all 0.3s ease;
}

.card.shadow:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

/* Navbar */
.navbar {
    backdrop-filter: blur(20px);
    background: rgba(255, 255, 255, 0.95) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.8rem;
    background: var(--primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive */
@media (max-width: 768px) {
    .card-body {
        padding: 2rem 1.5rem;
    }
    
    h2 {
        font-size: 1.8rem;
    }
    
    .logo i {
        font-size: 3rem;
    }
    
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.card {
    animation: fadeInUp 0.6s ease-out;
}

/* Demo Info */
.demo-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-info code {
    font-size: 0.9rem;
    background: rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: block;
    margin: 0.25rem 0;
}
