/* Extracted CSS from original HTML */


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #1a2a6c, #b21f1f, #1a2a6c);
    color: #333;
    min-height: 100vh;
    padding: 0;
    display: flex;
    flex-direction: column;
}

/* Sticky Header */
.sticky-header {
    position: sticky;
    top: 0;
    background: rgba(26, 42, 108, 0.98);
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
    z-index: 1000;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid #b21f1f;
}

.header-content {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    width: 45px;
    height: 45px;
    background: linear-gradient(45deg, #ff9966, #ff5e62);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.logo i {
    font-size: 1.5rem;
    color: white;
}

.header-content h1 {
    font-size: 1.8rem;
    color: white;
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-actions {
    display: flex;
    gap: 15px;
    align-items: center;
}

.search-container {
    position: relative;
    width: 300px;
}

.search-container input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border-radius: 30px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
}

.search-container input:focus {
    outline: none;
    box-shadow: 0 2px 15px rgba(255,255,255,0.4);
}

.search-container button {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #1a2a6c;
    cursor: pointer;
    font-size: 1.2rem;
}

/* Sidebar Styles */
.sidebar {
    width: 90px;
    background: rgba(255, 255, 255, 0.95);
    height: calc(100vh - 70px);
    position: fixed;
    top: 70px;
    left: 0;
    overflow-y: auto;
    box-shadow: 3px 0 15px rgba(0,0,0,0.2);
    z-index: 900;
    transition: transform 0.3s ease;
}

.sidebar::-webkit-scrollbar {
    display: none;
}

.sidebar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.sidebar-menu {
    list-style: none;
    padding: 20px 0;
}

.sidebar-menu li {
    margin-bottom: 5px;
    position: relative;
}

.sidebar-menu a {
    display: block;
    padding: 20px 0;
    color: #1a2a6c;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.sidebar-menu a:hover, .sidebar-menu a.active {
    background: #e6e9ff;
    border-left: 4px solid #1a2a6c;
}

.sidebar-menu a i {
    font-size: 1.8rem;
    margin-bottom: 8px;
}

.sidebar-menu a span {
    font-size: 0.75rem;
    text-align: center;
}

.sidebar-menu a .tooltip {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: #1a2a6c;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 0.9rem;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
    pointer-events: none;
}

.sidebar-menu a .tooltip::before {
    content: '';
    position: absolute;
    right: 100%;
    top: 50%;
    transform: translateY(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: transparent #1a2a6c transparent transparent;
}

.sidebar-menu a:hover .tooltip {
    opacity: 1;
    visibility: visible;
    left: calc(100% + 15px);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 90px;
    padding: 30px;
    padding-top: 90px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
}

/* Stats Section */
.stats {
    display: flex;
    gap: 20px;
    margin: 0 0 30px 0;
    flex-wrap: wrap;
}

.stat-card {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 20px;
    flex: 1;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-card h3 {
    color: #1a2a6c;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: #b21f1f;
}

/* Alert Container */
.alert-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 25px;
    margin: 30px 0;
}

.alert-panel {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
}

.alert-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.departure-alert .alert-header {
    background: #d32f2f;
    color: white;
}

.return-alert .alert-header {
    background: #f57c00;
    color: white;
}

.alert-icon {
    font-size: 2.5rem;
}

.alert-title {
    flex-grow: 1;
}

.alert-title h2 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.alert-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.alert-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.alert-item:hover {
    background-color: #f9f9f9;
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.employee-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #1a2a6c;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
    margin-right: 20px;
}

.employee-info {
    flex-grow: 1;
}

.employee-id {
    font-weight: bold;
    color: #1a2a6c;
    font-size: 1.1rem;
}

.employee-name {
    font-weight: 600;
    font-size: 1.3rem;
    margin: 5px 0;
}

.employee-position {
    font-size: 0.95rem;
    color: #666;
}

.date-info {
    text-align: center;
    min-width: 180px;
    padding: 10px;
    border-radius: 8px;
    margin-left: 15px;
}

.departure-alert .date-info {
    background: #ffebee;
    border-left: 4px solid #d32f2f;
}

.return-alert .date-info {
    background: #fff3e0;
    border-left: 4px solid #f57c00;
}

.date-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 5px;
}

.date-value {
    font-weight: bold;
    font-size: 1.2rem;
}

.alert-message {
    padding: 10px 15px;
    border-radius: 30px;
    font-weight: bold;
    margin-top: 10px;
    display: inline-block;
}

.departure-alert .alert-message {
    background: #ffcdd2;
    color: #c62828;
    animation: blinkRed 1.5s infinite;
}

.return-alert .alert-message {
    background: #ffe0b2;
    color: #e65100;
    animation: blinkYellow 1.5s infinite;
}

@keyframes blinkRed {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@keyframes blinkYellow {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

/* Card Styles */
.card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 25px;
    margin-bottom: 30px;
}

.card h2 {
    color: #1a2a6c;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h2 i {
    color: #b21f1f;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: #1a2a6c;
    font-size: 1.1rem;
}

.form-control {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: #1a2a6c;
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 42, 108, 0.2);
}

.btn {
    background: #1a2a6c;
    color: white;
    border: none;
    padding: 14px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    background: #b21f1f;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.btn-success {
    background: #0a7c42;
}

.btn-success:hover {
    background: #095e33;
}

.btn-warning {
    background: #f57c00;
}

.btn-warning:hover {
    background: #e65100;
}

/* File Upload */
.file-upload-container {
    margin: 20px 0;
}

.file-upload-label {
    display: inline-block;
    padding: 12px 20px;
    background: #1a2a6c;
    color: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.file-upload-label:hover {
    background: #0f1d4e;
    transform: translateY(-2px);
}

#fileUpload {
    display: none;
}

.bulk-input {
    width: 100%;
    height: 150px;
    padding: 15px;
    border: 2px dashed #1a2a6c;
    border-radius: 8px;
    font-family: monospace;
    margin-bottom: 15px;
    resize: vertical;
    font-size: 1rem;
}

.bulk-input:focus {
    outline: none;
    border-style: solid;
}

.instructions {
    background: #f8f9fa;
    border-left: 4px solid #1a2a6c;
    padding: 15px;
    margin-top: 20px;
    border-radius: 0 8px 8px 0;
    font-size: 0.95rem;
}

.instructions h3 {
    margin-bottom: 10px;
    color: #1a2a6c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.instructions ul {
    padding-left: 20px;
}

.instructions li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* Table */
.table-container {
    overflow-x: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    min-width: 1000px;
}

th {
    background: #1a2a6c;
    color: white;
    text-align: left;
    padding: 16px 15px;
    font-weight: 600;
    position: sticky;
    top: 0;
}

td {
    padding: 14px 15px;
    border-bottom: 1px solid #eee;
}

tr:nth-child(even) {
    background: #f9f9f9;
}

tr:hover {
    background: #f0f7ff;
}

.status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status.active {
    background: #e6f7ee;
    color: #0a7c42;
}

.status.pending {
    background: #fff8e6;
    color: #d97706;
}

.status.upcoming {
    background: #e6f3ff;
    color: #1a73e8;
}

.status.return {
    background: #fff0f0;
    color: #d93025;
}

.action-cell {
    display: flex;
    gap: 8px;
}

.action-btn {
    padding: 6px 12px;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.edit-btn {
    background: #e3f2fd;
    color: #1976d2;
}

.delete-btn {
    background: #ffebee;
    color: #d32f2f;
}

.action-btn:hover {
    opacity: 0.9;
    transform: scale(1.05);
}

footer {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    padding: 20px;
    margin-top: 30px;
    font-size: 0.9rem;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-left: 10px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.tab-content {
    display: none;
    padding: 20px;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 30px;
    border: 1px solid #888;
    width: 50%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    position: relative;
    max-width: 700px;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 15px;
}

.close:hover {
    color: black;
}

.modal-header {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.modal-header h2 {
    color: #1a2a6c;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.confirmation-dialog {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    max-width: 500px;
    margin: 100px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.confirmation-dialog h2 {
    color: #1a2a6c;
    margin-bottom: 20px;
}

.confirmation-dialog p {
    margin-bottom: 25px;
    font-size: 1.1rem;
    line-height: 1.5;
}

.confirmation-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

@media (max-width: 1100px) {
    .sticky-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    .header-content {
        justify-content: space-between;
    }
    .search-container {
        width: 100%;
    }
    .modal-content {
        width: 80%;
    }
}

@media (max-width: 900px) {
    .sidebar {
        transform: translateX(-100%);
    }
    .sidebar.active {
        transform: translateX(0);
    }
    .main-content {
        margin-left: 0;
    }
    .menu-toggle {
        display: block;
    }
}

@media (max-width: 768px) {
    .alert-container {
        grid-template-columns: 1fr;
    }
    .alert-item {
        flex-direction: column;
        text-align: center;
    }
    .employee-avatar {
        margin: 0 auto 15px;
    }
    .date-info {
        margin: 15px 0;
        width: 100%;
    }
    .header-content h1 {
        font-size: 1.5rem;
    }
    .stats {
        flex-direction: column;
    }
    .modal-content {
        width: 95%;
        padding: 20px;
    }
    .confirmation-dialog {
        margin: 50px auto;
        padding: 20px;
    }
}

.blink-red {
    animation: blinkRed 1.5s infinite;
    background-color: #ffebee;
    padding: 3px 8px;
    border-radius: 4px;
    color: #c62828;
}

.blink-yellow {
    animation: blinkYellow 1.5s infinite;
    background-color: #fff8e1;
    padding: 3px 8px;
    border-radius: 4px;
    color: #f57c00;
}

.config-success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    padding: 10px 15px;
    margin-top: 15px;
    border-radius: 0 8px 8px 0;
    display: none;
}

.data-debug {
    background: #2d2d2d;
    color: #f8f8f2;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    overflow: auto;
    display: none;
    max-height: 200px;
}

.error-message {
    color: #d32f2f;
    background-color: #ffebee;
    padding: 10px;
    border-radius: 4px;
    margin: 10px 0;
    display: none;
}