* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f5f7fa;
    color: #333;
    line-height: 1.6;
}

.container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
.header {
    background-color: #003366;
    color: white;
    padding: 15px 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.bank-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 15px;
    text-align: center;
}

.main-nav {
    margin-top: 10px;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-item {
    margin: 0 15px;
    position: relative;
}

.nav-item a {
    color: white;
    text-decoration: none;
    font-size: 16px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
}

.nav-item a i {
    margin-right: 8px;
}

.nav-item.active a {
    background-color: #00509e;
}

.nav-item a:hover {
    background-color: #004080;
}

.nav-item.login {
    margin-left: auto;
}

/* User Info Styles */
.user-info {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    color: #003366;
    padding: 10px 15px;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 14px;
    min-width: 200px;
    z-index: 1000;
    display: none;
    text-align: center;
}

.nav-item.login:hover .user-info {
    display: block !important;
}

/* Status Indicator */
.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background-color: #94a3b8;
    border: 2px solid #fff;
    position: absolute;
    bottom: -2px;
    right: -2px;
    z-index: 5;
    transition: all 0.3s ease;
    display: none; /* Hidden by default */
}

.status-indicator.online {
    display: block;
    background-color: #22c55e;
    box-shadow: 0 0 10px rgba(34, 197, 94, 0.6);
}

/* Ensure containers are relative for status indicator positioning */
.user-avatar, .emp-profile-img {
    position: relative;
}

/* Main Content Layout */
.main-content {
    display: flex;
    flex: 1;
    padding: 20px;
    gap: 20px;
}

/* Left Sidebar */
.left-sidebar {
    width: 25%;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.sidebar-section {
    margin-bottom: 30px;
}

.sidebar-section h3 {
    color: #003366;
    font-size: 10px;
    margin-bottom: 20px;
    padding-bottom: 8px;
    border-bottom: 2px solid #eaeaea;
}

/* Quick Stats */
.quick-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #003366;
}

.stat-item i {
    font-size: 24px;
    color: #003366;
}

.stat-number {
    font-size: 24px;
    font-weight: 600;
    color: #003366;
    display: block;
}

.stat-label {
    font-size: 14px;
    color: #666;
}

/* Action Buttons */
.action-buttons-vertical {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-btn-vertical {
    background-color: white;
    color: #003366;
    border: 1px solid #003366;
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    transition: all 0.3s;
    text-align: left;
    width: 100%;
    text-decoration: none;
}

.action-btn-vertical i {
    margin-right: 10px;
    min-width: 20px;
}

.action-btn-vertical:hover {
    background-color: #003366;
    color: white;
    text-decoration: none;
}

.action-btn-vertical.calculator-btn {
    margin-top: 10px;
}

/* Center Content */
.center-content {
    width: 75%;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.time-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: white;
    padding: 15px 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.datetime {
    font-size: 18px;
    font-weight: 600;
    color: #003366;
}

.search-box {
    display: flex;
    width: 300px;
}

.search-box input {
    flex: 1;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 4px 0 0 4px;
    font-size: 16px;
}

.search-box button {
    background-color: #003366;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    font-size: 16px;
}

/* Achievement Section */
.achievement-section {
    display: flex;
    gap: 20px;
}

.achievement-box {
    flex: 1;
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.achievement-box h3 {
    color: #003366;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.achievement-box h3 i {
    margin-right: 10px;
}

.placeholder-box {
    height: 200px;
    background-color: #f8f9fa;
    border: 2px dashed #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #777;
    font-style: italic;
}

.placeholder-box i {
    margin-bottom: 15px;
    color: #003366;
}

.achievement-content {
    min-height: 200px;
}

.achievement-display {
    padding: 10px;
}

.achievement-badge {
    display: inline-block;
    padding: 3px 10px;
    background-color: #ffc107;
    color: #212529;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Content Sections */
.content-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.content-item-full {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.content-header h3 {
    color: #003366;
    display: flex;
    align-items: center;
    margin: 0;
}

.content-header h3 i {
    margin-right: 10px;
}

.view-all-btn {
    background-color: #003366;
    color: white;
    border: none;
    padding: 5px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.view-all-btn:hover {
    background-color: #00509e;
    text-decoration: none;
    color: white;
}

.content-item-full ul {
    list-style: none;
}

.content-item-full li {
    padding: 12px 15px;
    margin-bottom: 10px;
    background-color: #f8f9fa;
    border-radius: 4px;
    border-left: 4px solid #003366;
    cursor: pointer;
    transition: background-color 0.3s;
}

.content-item-full li:hover {
    background-color: #e9ecef;
}

.notice-meta-small {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}

.post-stats {
    display: flex;
    gap: 15px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #ddd;
}

.like-btn,
.comment-btn {
    cursor: pointer;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Footer */
.footer {
    background-color: #003366;
    color: white;
    text-align: center;
    padding: 20px;
    width: 100%;
    margin-top: 30px;
    /* Space from content */
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.footer-info {
    margin-top: 10px;
    font-size: 14px;
    opacity: 0.8;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 8px;
    width: 600px;
    max-width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background-color: #003366;
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.modal-header h2 {
    font-size: 24px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.modal-header.success {
    background-color: #28a745;
}

.modal-header.warning {
    background-color: #b33030;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}

.modal-body {
    padding: 20px;
}

.success-icon {
    text-align: center;
    margin-bottom: 20px;
}

.success-icon i {
    font-size: 64px;
    color: #28a745;
}

.modal-actions {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    justify-content: center;
}

.btn-primary {
    background: #003366;
    color: white;
}

.btn-primary:hover {
    background: #00509e;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

/* Badge Styles */
.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: bold;
    margin-right: 5px;
}

.badge.urgent {
    background-color: #1f3e78;
    color: white;
}

.badge.general {
    background-color: #6c757d;
    color: white;
}

.badge.meeting {
    background-color: #17a2b8;
    color: white;
}

.badge.maintenance {
    background-color: #ffc107;
    color: #212529;
}

.badge.holiday {
    background-color: #20c997;
    color: white;
}

.badge.training {
    background-color: #6f42c1;
    color: white;
}

.notice-badge {
    display: inline-block;
    padding: 5px 15px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: bold;
    margin-bottom: 15px;
}

.notice-badge.urgent {
    background-color: #21238b;
    color: white;
}

.notice-badge.general {
    background-color: #6c757d;
    color: white;
}

.notice-badge.meeting {
    background-color: #17a2b8;
    color: white;
}

.notice-badge.maintenance {
    background-color: #ffc107;
    color: #212529;
}

/* Form Styles */
.form-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.form-header h2 {
    color: #003366;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.back-btn {
    background: #6c757d;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.back-btn:hover {
    background: #5a6268;
    color: white;
    text-decoration: none;
}

.form-card {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group {
    flex: 1;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #003366;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5eb;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #003366;
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-hint {
    display: block;
    margin-top: 5px;
    color: #666;
    font-size: 13px;
}

.file-upload {
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-info {
    flex: 1;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e1e5eb;
    border-radius: 6px;
    font-size: 14px;
}

.browse-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.browse-btn:hover {
    background: #5a6268;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: auto;
    margin: 0;
}

.form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.submit-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 2;
}

.submit-btn:hover {
    background: #218838;
}

.preview-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.preview-btn:hover {
    background: #138496;
}

.reset-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.reset-btn:hover {
    background: #c82333;
}

.draft-btn {
    background: #6c757d;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.draft-btn:hover {
    background: #5a6268;
}

/* Approval Dashboard Styles */
.approval-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eaeaea;
}

.dashboard-header h2 {
    color: #003366;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-badge {
    background: #28a745;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-top: 4px solid #003366;
}

.stat-card.pending {
    border-top-color: #ffc107;
}

.stat-card.notices {
    border-top-color: #17a2b8;
}

.stat-card.knowledge {
    border-top-color: #28a745;
}

.stat-card.achievements {
    border-top-color: #6f42c1;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: #003366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.stat-card.pending .stat-icon {
    background: #ffc107;
}

.stat-card.notices .stat-icon {
    background: #17a2b8;
}

.stat-card.knowledge .stat-icon {
    background: #28a745;
}

.stat-card.achievements .stat-icon {
    background: #6f42c1;
}

.stat-content h3 {
    color: #666;
    font-size: 16px;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 36px;
    font-weight: 700;
    color: #003366;
}

.approval-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 0;
    overflow-x: auto;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 25px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn.active {
    color: #003366;
    border-bottom-color: #003366;
    font-weight: 500;
}

.tab-badge {
    background: #dc3545;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 500;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.tab-header h3 {
    color: #003366;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.refresh-btn {
    background: #17a2b8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.refresh-btn:hover {
    background: #138496;
}

.approval-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.approval-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.item-header h4 {
    color: #003366;
    margin: 0;
    font-size: 20px;
}

.item-type {
    background: #6c757d;
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.item-type.urgent {
    background: #3578dc;
}

.item-type.meeting {
    background: #17a2b8;
}

.item-type.maintenance {
    background: #ffc107;
    color: #212529;
}

.item-content {
    color: #666;
    line-height: 1.6;
    margin-bottom: 15px;
}

.item-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 14px;
    margin-bottom: 20px;
}

.item-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.item-actions {
    display: flex;
    gap: 15px;
}

.view-btn,
.quick-approve-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-btn {
    background: #17a2b8;
    color: white;
}

.view-btn:hover {
    background: #138496;
}

.quick-approve-btn {
    background: #28a745;
    color: white;
}

.quick-approve-btn:hover {
    background: #218838;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.empty-state i {
    font-size: 64px;
    color: #adb5bd;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: #495057;
    margin-bottom: 10px;
}

.empty-state p {
    color: #6c757d;
}

.history-filters {
    display: flex;
    gap: 15px;
    align-items: center;
}

.history-filters select,
.history-filters input {
    padding: 8px 15px;
    border: 2px solid #e1e5eb;
    border-radius: 6px;
    font-size: 14px;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.history-item {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #28a745;
}

.history-item.rejected {
    border-left-color: #dc3545;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.history-header h4 {
    color: #003366;
    margin: 0;
    font-size: 18px;
}

.history-status {
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 12px;
    font-weight: 500;
}

.history-status.approved {
    background: #d4edda;
    color: #155724;
}

.history-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.history-content {
    color: #666;
    margin-bottom: 15px;
}

.history-meta {
    display: flex;
    gap: 20px;
    color: #888;
    font-size: 13px;
    margin-bottom: 10px;
}

.history-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.rejection-reason {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 6px;
    border-left: 4px solid #dc3545;
    font-size: 14px;
    color: #666;
}

.review-modal {
    max-width: 800px;
}

.review-content {
    margin-bottom: 30px;
}

.review-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.review-section h4 {
    color: #003366;
    margin-bottom: 10px;
}

.review-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.review-meta {
    background: #e9ecef;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.review-actions {
    display: flex;
    gap: 15px;
}

.approve-btn,
.reject-btn {
    padding: 12px 25px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.approve-btn {
    background: #28a745;
    color: white;
}

.approve-btn:hover {
    background: #218838;
}

.reject-btn {
    background: #dc3545;
    color: white;
}

.reject-btn:hover {
    background: #c82333;
}

.reject-confirm-btn {
    background: #dc3545;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.reject-confirm-btn:hover {
    background: #c82333;
}

/* Employee Directory Table Styles */
.department-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.department-table th {
    background: #003366;
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

.department-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #eaeaea;
}

.department-table tr:last-child td {
    border-bottom: none;
}

.department-table tr:hover {
    background: #f8f9fa;
}

.employee-avatar-small {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #003366;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
}

.action-cell {
    display: flex;
    gap: 8px;
}

.table-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.table-btn.view {
    background: #17a2b8;
    color: white;
}

.table-btn.view:hover {
    background: #138496;
}

.table-btn.print {
    background: #28a745;
    color: white;
}

.table-btn.print:hover {
    background: #218838;
}

.department-header-row {
    background: #f8f9fa !important;
}

.department-header-cell {
    background: #00509e;
    color: white;
    padding: 15px;
    font-size: 18px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Emergency Help Section Redesign */
.emergency-section {
    margin-top: 20px;
}

.emergency-section h3 {
    color: #dc3545;
    font-size: 16px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #ffccd2;
    display: flex;
    align-items: center;
    gap: 8px;
}

.emergency-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.emergency-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 15px;
    background: #fff;
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border: 1px solid #eee;
}

.emergency-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
    border-color: #dc3545;
}

.emergency-card.phone {
    border-left: 4px solid #28a745;
}

.emergency-card.email {
    border-left: 4px solid #0056b3;
}

.emergency-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.emergency-card.phone .emergency-icon {
    color: #28a745;
    background: #e8f5e9;
}

.emergency-card.email .emergency-icon {
    color: #0056b3;
    background: #e3f2fd;
}

.emergency-info {
    display: flex;
    flex-direction: column;
}

.emergency-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #888;
    font-weight: 700;
}

.emergency-value {
    font-size: 14px;
    font-weight: 600;
    color: #003366;
    word-break: break-all;
}


/* Responsive Design */
@media (max-width: 1200px) {
    .main-content {
        flex-direction: column;
    }

    .left-sidebar,
    .center-content {
        width: 100%;
    }

    .achievement-section {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .nav-list {
        flex-direction: column;
        align-items: center;
    }

    .nav-item {
        margin: 5px 0;
        width: 100%;
        text-align: center;
    }

    .nav-item.login {
        margin-left: 0;
    }

    .time-search {
        flex-direction: column;
        gap: 15px;
    }

    .search-box {
        width: 100%;
    }

    .form-row {
        flex-direction: column;
        gap: 0;
    }

    .form-actions {
        flex-direction: column;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .approval-tabs {
        flex-wrap: wrap;
    }

    .tab-btn {
        flex: 1;
        justify-content: center;
    }

    .history-filters {
        flex-direction: column;
        align-items: stretch;
    }

    .department-table {
        display: block;
        overflow-x: auto;
    }
}

/* =========================================
   Portal Services GearOn Theme Dashboard
========================================= */
.services-dashboard {
    background-color: #ffffff; /* White background */
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    border: 1px solid #eaeaea;
}

.services-header {
    background: #09094e; /* Navy Blue header from logo */
    padding: 20px;
    color: white;
}

.user-profile-widget {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-avatar {
    width: 60px;
    height: 60px;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #c02026; /* Red icon from logo */
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.user-details-widget h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.user-details-widget p {
    margin: 0;
    font-size: 14px;
    opacity: 0.9;
}

.services-grid-container {
    padding: 20px;
}

.services-title {
    color: #09094e;
    font-size: 18px;
    margin-bottom: 20px;
    border-bottom: 2px solid #eaeaea;
    padding-bottom: 10px;
    font-weight: 600;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.service-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #333;
    transition: transform 0.2s ease, filter 0.2s;
}

.service-item:hover {
    transform: translateY(-5px);
    filter: brightness(0.9);
}

.service-icon-bg {
    width: 60px;
    height: 60px;
    background-color: #f5f7fa; /* Light background */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid #eaeaea;
}

.service-icon {
    font-size: 24px;
    color: #c02026; /* Red icon */
}

.service-item span {
    font-size: 14px;
    text-align: center;
    font-weight: 500;
}

/* Base styles for GearOn theme modules */
.dark-module {
    background-color: #f5f7fa; /* Light background */
    color: #333; /* Dark text */
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.dark-module .header {
    background-color: #09094e; /* Navy */
    border-bottom: none;
}

.dark-module .main-nav .nav-item a {
    color: #ddd;
}

.dark-module .main-nav .nav-item.active a {
    background-color: #c02026; /* Red */
    color: #fff;
}

.dark-module .main-nav .nav-item a:hover {
    background-color: rgba(255,255,255,0.1);
    color: #fff;
}

.dark-module .main-content {
    background-color: #f5f7fa;
}

.dark-module-title {
    color: #09094e;
    border-bottom: 2px solid #09094e;
    padding-bottom: 10px;
    margin-bottom: 20px;
    font-weight: 600;
}

/* Forms & Modals for Light Theme */
.dark-modal .modal-content {
    background-color: #ffffff;
    color: #333;
    border: 1px solid #eaeaea;
}

.dark-modal .modal-header {
    background-color: #09094e;
    color: white;
}

.dark-modal label {
    color: #333 !important;
    font-weight: 500;
}

.dark-modal input, .dark-modal textarea, .dark-modal select {
    background-color: #fff !important;
    color: #333 !important;
    border: 1px solid #ccc !important;
}

.dark-modal .btn-primary {
    background-color: #c02026 !important;
}

.dark-modal .btn-primary:hover {
    background-color: #a01a20 !important;
}