/* atlasHR Custom Styles */

:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #0dcaf0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    background-color: #f8f9fa;
}

/* Navigation */
.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    opacity: 0.8;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f8f9fa;
    font-weight: 600;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-sm {
    padding: 0.25rem 0.5rem;
}

.btn-xs {
    padding: 0.15rem 0.4rem;
    font-size: 0.75rem;
    line-height: 1.3;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.1);
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: #6c757d;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    cursor: pointer;
}

/* Forms */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #495057;
}

.form-control, .form-select {
    border-radius: 0.375rem;
    border: 1px solid #ced4da;
    padding: 0.625rem 0.75rem;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
    border-radius: 0.25rem;
}

/* Alerts */
.alert {
    border-radius: 0.5rem;
    border: none;
}

/* Dropdown */
.dropdown-menu {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.5rem 1rem;
    transition: background-color 0.15s ease-in-out;
}

.dropdown-item:hover {
    background-color: #f8f9fa;
}

/* Notifications Badge */
#notificationCount {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 0.65rem;
    padding: 0.2em 0.4em;
}

/* Login Page */
.min-vh-100 {
    min-height: 100vh;
}

/* Dashboard Stats Cards */
.card.bg-primary,
.card.bg-success,
.card.bg-warning,
.card.bg-info {
    border: none;
}

.card.bg-primary .card-subtitle,
.card.bg-success .card-subtitle,
.card.bg-warning .card-subtitle,
.card.bg-info .card-subtitle {
    opacity: 0.9;
    font-size: 0.875rem;
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Modal */
.modal-content {
    border-radius: 0.5rem;
    border: none;
}

.modal-header {
    border-bottom: 2px solid #f8f9fa;
}

.modal-footer {
    border-top: 2px solid #f8f9fa;
}

/* File Upload */
.custom-file-input:lang(en) ~ .custom-file-label::after {
    content: "Browse";
}

/* Status Indicators */
.status-active {
    color: var(--success-color);
}

.status-inactive {
    color: var(--danger-color);
}

.status-pending {
    color: var(--warning-color);
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.8rem;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .card-header .btn {
        display: none !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Agent Avatar Styling */
.agent-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.agent-avatar i {
    font-size: 1.1rem;
    color: white;
}

.nav-link:hover .agent-avatar {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.6);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #0dcaf0 0%, #0a9fd8 100%) !important;
    border: none;
    box-shadow: 0 2px 4px rgba(13, 202, 240, 0.3);
    font-weight: 600;
    font-size: 0.7rem;
    letter-spacing: 0.5px;
}

/* Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

.shadow-sm-hover:hover {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Drag-and-drop upload zone */
.drop-zone {
    border: 2px dashed #ced4da;
    border-radius: .5rem;
    padding: .75rem 1rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    background: #fafbfc;
}
.drop-zone:hover,
.drop-zone.dz-over { border-color: #86b7fe; background: #f0f5ff; }
.drop-zone.dz-over { border-color: #0d6efd; background: #e8f0fe; }
.drop-zone.dz-has-files .dz-placeholder { display: none; }
.dz-files:empty { display: none; }
.dz-file-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    font-size: .78rem;
    background: #fff;
    border: 1px solid #dee2e6;
    border-radius: 20px;
    max-width: 240px;
}
.dz-file-badge span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
.dz-file-badge small { color: #6c757d; }
.dz-file-badge.dz-too-big { background: #fff5f5; border-color: #f5c6cb; color: #842029; }
.dz-remove-btn {
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
    cursor: pointer;
    color: #9ca3af;
    font-size: .7rem;
    flex-shrink: 0;
}
.dz-remove-btn:hover { color: #dc3545; }
