/* Global Styles */
:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --warning-gradient: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --danger-gradient: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
}

body {
    background: var(--primary-gradient);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    padding-top: 70px;
}

/* Login Page */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-gradient);
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    padding: 40px;
    width: 100%;
    max-width: 420px;
    backdrop-filter: blur(10px);
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-card .logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-card .logo i {
    font-size: 60px;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.login-card h3 {
    color: #333;
    font-weight: 600;
    text-align: center;
    margin-bottom: 30px;
}

.login-card .form-group {
    margin-bottom: 20px;
}

.login-card .form-control {
    border-radius: 10px;
    padding: 12px 20px;
    border: 2px solid #e1e5ea;
    transition: all 0.3s ease;
}

.login-card .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.login-card .btn-primary {
    background: var(--primary-gradient);
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.login-card .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

/* Dashboard Cards */
.dashboard-card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: none;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.dashboard-card .card-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: white;
    margin-bottom: 15px;
}

.dashboard-card .card-icon.primary {
    background: var(--primary-gradient);
}

.dashboard-card .card-icon.success {
    background: var(--success-gradient);
}

.dashboard-card .card-icon.warning {
    background: var(--warning-gradient);
}

.dashboard-card .card-icon.danger {
    background: var(--danger-gradient);
}

.dashboard-card h3 {
    font-size: 28px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.dashboard-card p {
    color: #666;
    margin: 0;
    font-weight: 500;
}

/* Employee Table */
.table-container {
    background: white;
    border-radius: 15px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.table-container .table {
    margin-bottom: 0;
}

.table-container .table thead th {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 15px;
    font-weight: 500;
}

.table-container .table tbody td {
    padding: 12px 15px;
    vertical-align: middle;
}

.employee-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #667eea;
    cursor: pointer;
    transition: all 0.3s ease;
}

.employee-image:hover {
    transform: scale(1.1);
    border-color: #764ba2;
}

/* Employee Cards */
.employee-card {
    background: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    cursor: pointer;
}

.employee-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

.employee-card .card-image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    border: 4px solid #667eea;
}

.employee-card h5 {
    color: #333;
    font-weight: 600;
    margin-bottom: 5px;
}

.employee-card .designation {
    color: #666;
    font-size: 14px;
}

.employee-card .emp-id {
    color: #999;
    font-size: 12px;
}

/* Pagination */
.custom-pagination .page-link {
    color: #667eea;
    border: none;
    border-radius: 8px;
    margin: 0 3px;
    padding: 8px 16px;
}

.custom-pagination .page-item.active .page-link {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-card {
        margin: 20px;
        padding: 30px;
    }

    .dashboard-card h3 {
        font-size: 22px;
    }

    .table-container {
        padding: 15px;
        overflow-x: auto;
    }

    .employee-card .card-image {
        width: 80px;
        height: 80px;
    }
}

/* Image Modal */
.image-modal .modal-content {
    background: transparent;
    border: none;
}

.image-modal .modal-body {
    text-align: center;
    padding: 20px;
}

.image-modal .modal-body img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

/* Upload Area */
.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: #764ba2;
    background: rgba(255, 255, 255, 0.95);
}

.upload-area i {
    font-size: 60px;
    color: #667eea;
    margin-bottom: 20px;
}

.upload-area .upload-text {
    color: #666;
    font-size: 18px;
}

/* Badge */
.badge-custom {
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 500;
}

.badge-custom.grade-m {
    background: #f39c12;
    color: white;
}

.badge-custom.grade-o {
    background: #3498db;
    color: white;
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 9999;
}

/* Upload Progress */
.progress {
    height: 8px;
    border-radius: 10px;
    background: #e1e5ea;
    margin-top: 15px;
}

.progress-bar {
    background: var(--primary-gradient);
    border-radius: 10px;
}