/* Puerto Princesa International Airport HR Portal - Corporate Theme */

:root {
    --pp-airport-primary: #1e3a8a;      /* Deep Blue */
    --pp-airport-secondary: #0f172a;    /* Dark Navy */
    --pp-airport-accent: #3b82f6;       /* Bright Blue */
    --pp-airport-gold: #BCCCDC;         /* Gold Accent replaced with corporate blue-gray */
    --pp-airport-light: #f8fafc;        /* Light Gray */
    --pp-airport-white: #ffffff;        /* Pure White */
    --pp-airport-text: #1e293b;         /* Dark Text */
    --pp-airport-muted: #64748b;        /* Muted Text */
}

/* Enhanced Header/Navigation */
.navbar {
    background: linear-gradient(135deg, var(--pp-airport-primary) 0%, var(--pp-airport-secondary) 100%) !important;
    box-shadow: 0 4px 20px rgba(30, 58, 138, 0.15);
    border-bottom: 3px solid var(--pp-airport-gold);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--pp-airport-white) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    color: var(--pp-airport-gold) !important;
    transform: translateY(-1px);
}

.navbar-brand i {
    color: var(--pp-airport-gold);
    margin-right: 0.75rem;
    font-size: 1.8rem;
}

.navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    margin: 0 0.25rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--pp-airport-white) !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active {
    background: linear-gradient(135deg, var(--pp-airport-gold) 0%, #BCCCDC 100%);
    color: var(--pp-airport-secondary) !important;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

/* Enhanced Sidebar */
.sidebar {
    background: linear-gradient(180deg, var(--pp-airport-secondary) 0%, var(--pp-airport-primary) 100%);
    min-height: 100vh;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.1);
    border-right: 3px solid var(--pp-airport-gold);
    position: relative;
    overflow: hidden;
}

.sidebar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--pp-airport-gold) 0%, #BCCCDC 50%, var(--pp-airport-gold) 100%);
}

.sidebar .nav {
    padding: 2rem 0;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 1rem 1.5rem;
    margin: 0.25rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
}

.sidebar .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.sidebar .nav-link:hover::before {
    left: 100%;
}

.sidebar .nav-link:hover {
    color: var(--pp-airport-white) !important;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(30, 58, 138, 0.3) 100%);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.sidebar .nav-link.active {
    background: linear-gradient(135deg, var(--pp-airport-gold) 0%, #BCCCDC 100%);
    color: var(--pp-airport-secondary) !important;
    border-color: var(--pp-airport-gold);
    box-shadow: 0 4px 20px rgba(245, 158, 11, 0.4);
    transform: translateX(5px);
}

.sidebar .nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--pp-airport-gold);
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
}

.sidebar .nav-link i {
    width: 20px;
    margin-right: 0.75rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.sidebar .nav-link:hover i {
    transform: scale(1.1);
    color: var(--pp-airport-gold);
}

.sidebar .nav-link.active i {
    color: var(--pp-airport-secondary);
}

/* Sidebar Badge Enhancements */
.sidebar .nav-link .badge {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: 2px solid var(--pp-airport-white);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    animation: pulse 2s infinite;
}

/* Main Content Area */
.main-content {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: calc(100vh - 80px);
    padding: 2rem;
}

/* Card Enhancements */
.card {
    border: none;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
    background: linear-gradient(135deg, var(--pp-airport-primary) 0%, var(--pp-airport-secondary) 100%);
    color: var(--pp-airport-white);
    border-bottom: 3px solid var(--pp-airport-gold);
    padding: 1.25rem 1.5rem;
    font-weight: 600;
}

/* Button Enhancements */
.btn-primary {
    background: linear-gradient(135deg, var(--pp-airport-primary) 0%, var(--pp-airport-accent) 100%);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--pp-airport-secondary) 0%, var(--pp-airport-primary) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.btn-outline-primary {
    border: 2px solid var(--pp-airport-primary);
    color: var(--pp-airport-primary);
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background: linear-gradient(135deg, var(--pp-airport-primary) 0%, var(--pp-airport-accent) 100%);
    border-color: var(--pp-airport-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Stats Cards */
.stats-card {
    background: linear-gradient(135deg, var(--pp-airport-primary) 0%, var(--pp-airport-accent) 100%);
    color: var(--pp-airport-white);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(59, 130, 246, 0.3);
    border-color: var(--pp-airport-gold);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.stats-label {
    font-size: 1rem;
    font-weight: 500;
    opacity: 0.9;
}

.unified-stats-card {
    background: #0118D8 !important;
    color: #fff !important;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(1, 24, 216, 0.10);
    border: 3px solid transparent;
}

/* Form Enhancements */
.form-control, .form-select {
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    background: var(--pp-airport-white);
}

.form-control:focus, .form-select:focus {
    border-color: var(--pp-airport-accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
    background: var(--pp-airport-white);
}

/* Table Enhancements */
.table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.table thead th {
    background: linear-gradient(135deg, var(--pp-airport-primary) 0%, var(--pp-airport-secondary) 100%);
    color: var(--pp-airport-white);
    border: none;
    padding: 1rem;
    font-weight: 600;
}

.table tbody tr {
    transition: all 0.3s ease;
}

.table tbody tr:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(30, 58, 138, 0.05) 100%);
    transform: scale(1.01);
}

/* Status Badges */
.status-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: var(--pp-airport-white);
}

.status-approved {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: var(--pp-airport-white);
}

.status-rejected {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--pp-airport-white);
}

.status-completed {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: var(--pp-airport-white);
}

/* Dropdown Enhancements */
.dropdown-menu {
    border: none;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.dropdown-item {
    border-radius: 8px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(30, 58, 138, 0.1) 100%);
    transform: translateX(5px);
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 12px;
    padding: 1rem 1.5rem;
    font-weight: 500;
}

.alert-success {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
    color: var(--pp-airport-white);
}

.alert-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: var(--pp-airport-white);
}

.alert-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
    color: var(--pp-airport-white);
}

.alert-info {
    background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
    color: var(--pp-airport-white);
}

/* Modal Enhancements */
.modal-content {
    border: none;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, var(--pp-airport-primary) 0%, var(--pp-airport-secondary) 100%);
    color: var(--pp-airport-white);
    border-bottom: 3px solid var(--pp-airport-gold);
    border-radius: 16px 16px 0 0;
}

.modal-title {
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        z-index: 1050;
        transition: left 0.3s ease;
    }
    
    .sidebar.show {
        left: 0;
    }
    
    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
    
    .stats-card {
        margin-bottom: 1rem;
    }
}

/* Animation Keyframes */
@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(239, 68, 68, 0.5);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
    }
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--pp-airport-primary) 0%, var(--pp-airport-accent) 100%);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--pp-airport-secondary) 0%, var(--pp-airport-primary) 100%);
}

/* Message system styles */
.message-item {
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}

.message-item:hover {
    transform: translateX(5px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.message-item.unread {
    border-left-color: #007bff;
    background: linear-gradient(90deg, #e3f2fd 0%, #ffffff 100%);
}

.message-item.unread::before {
    content: '';
    position: absolute;
    top: 15px;
    left: -2px;
    width: 6px;
    height: 6px;
    background-color: #007bff;
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.compose-btn {
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
    transition: all 0.3s ease;
}

.compose-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,123,255,0.4);
}

.folder-tab {
    border-radius: 20px;
    margin-right: 5px;
}

.folder-tab.active {
    box-shadow: 0 2px 8px rgba(0,123,255,0.3);
}

/* Announcement notification badge styles */
.nav-link .badge {
    animation: pulse 2s infinite;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Toast notification styles */
.toast-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    min-width: 300px;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

.toast-header {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast-body {
    padding: 12px 16px;
}

/* Unread announcement styling */
.announcement-card.unread {
    border-left: 4px solid #dc3545;
    background-color: #f8f9fa;
    position: relative;
}

.announcement-card.unread::before {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    width: 8px;
    height: 8px;
    background-color: #dc3545;
    border-radius: 50%;
    animation: blink 1.5s infinite;
}

@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0.3; }
} 