/* Arkema Occupational Health Portal - Shared Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --arkema-navy: #2c4875;
    --arkema-teal: #4a9b8e;
    --light-gray: #f8f9fa;
    --border-color: #e1e5e9;
    --text-primary: #333;
    --text-secondary: #555;
    --text-muted: #888;
    --white: #ffffff;
    --shadow-light: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-medium: 0 4px 20px rgba(0, 0, 0, 0.15);
    --border-radius: 8px;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--text-primary);
    line-height: 1.6;
}

/* =====================================
   LOGIN PAGE STYLES
   ===================================== */
.login-body {
    background: linear-gradient(135deg, var(--arkema-navy) 0%, var(--arkema-teal) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    text-align: center;
}

.logo {
    margin-bottom: 30px;
}

.logo img {
    max-width: 200px;
    height: auto;
}

.app-title {
    color: var(--arkema-navy);
    font-size: 18px;
    font-weight: 300;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

.form-group input:focus {
    outline: none;
    border-color: var(--arkema-teal);
    box-shadow: 0 0 0 3px rgba(74, 155, 142, 0.1);
}

.login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--arkema-navy) 0%, var(--arkema-teal) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--border-radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 155, 142, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.footer {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 12px;
}

.forgot-password {
    margin-top: 15px;
}

.forgot-password a {
    color: var(--arkema-teal);
    text-decoration: none;
    font-size: 14px;
}

.forgot-password a:hover {
    text-decoration: underline;
}

.loading {
    display: none;
    margin-left: 10px;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--white);
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* =====================================
   DASHBOARD LAYOUT
   ===================================== */
.dashboard-body {
    background-color: var(--light-gray);
}

.dashboard-container {
    display: flex;
    height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 250px;
    background: var(--white);
    box-shadow: var(--shadow-light);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    text-align: center;
}

.sidebar-header img {
    max-width: 150px;
    height: auto;
}

.sidebar-title {
    color: var(--arkema-navy);
    font-size: 14px;
    font-weight: 300;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px;
}

.sidebar-footer {
    padding: 15px 20px;
    text-align: center;
    border-top: 0px solid var(--border-color);
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    border-radius: var(--border-radius);
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 500;
}

.nav-link:hover {
    background: rgba(74, 155, 142, 0.1);
    color: var(--arkema-teal);
}

.nav-link.active {
    background: linear-gradient(135deg, var(--arkema-navy) 0%, var(--arkema-teal) 100%);
    color: var(--white);
}

.nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 12px;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-left: 1px solid var(--border-color);
}

.main-header {
    background: var(--white);
    padding: 20px 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    color: var(--arkema-navy);
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.main-body {
    flex: 1;
    overflow-y: auto;
    background: var(--white);
}

/* =====================================
   USER MENU
   ===================================== */
.user-menu {
    position: relative;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--arkema-navy) 0%, var(--arkema-teal) 100%);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: var(--transition);
}

.user-avatar:hover {
    transform: scale(1.05);
}

.user-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-medium);
    min-width: 180px;
    z-index: 1000;
    display: none;
}

.user-dropdown.show {
    display: block;
}

.dropdown-item {
    padding: 12px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    display: block;
    transition: var(--transition);
    border-bottom: 0px solid var(--border-color);
}

.dropdown-item:last-child {
    border-bottom: none;
}

.dropdown-item:hover {
    background: var(--light-gray);
    color: var(--arkema-teal);
}

.dropdown-item i {
    margin-right: 8px;
    width: 16px;
}

/* =====================================
   LOADING OVERLAY
   ===================================== */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.loading-overlay.show {
    opacity: 1;
    visibility: visible;
}

.loading-spinner {
    text-align: center;
    color: #ffffff;
}

.loading-spinner i {
    font-size: 48px;
    color: #7dd3c0;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
    display: block;
}

.loading-text {
    font-size: 16px;
    font-weight: 500;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* =====================================
   CALENDAR STYLES
   ===================================== */
.calendar-container {
    padding: 30px;
    height: 100%;
}

#calendar {
    height: calc(100vh - 140px);
}

/* FullCalendar custom styling */
.fc {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.fc-toolbar-title {
    color: var(--arkema-navy) !important;
    font-weight: 600 !important;
}

.fc-button-primary {
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    color: var(--text-secondary) !important;
    border-radius: var(--border-radius) !important;
    box-shadow: none !important;
}

.fc-button-primary:hover {
    background: var(--light-gray) !important;
    border-color: var(--arkema-teal) !important;
    color: var(--arkema-teal) !important;
}

.fc-button-primary:focus {
    box-shadow: none !important;
}

.fc-button-active {
    background: var(--arkema-teal) !important;
    border-color: var(--arkema-teal) !important;
    color: var(--white) !important;
}

.fc-button {
    margin: 0 2px !important;
}

.fc-event {
    border-radius: 4px !important;
    border: none !important;
    padding: 2px 6px !important;
}

.fc-event-title {
    font-weight: 500 !important;
}

/* =====================================
   EMPLOYEES PAGE
   ===================================== */
.employee-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    max-width: 350px;
}

.search-box {
    flex: 1;
    position: relative;
	max-width:240px;
}

.search-box input {
    width: 100%;
    padding: 10px 40px 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 14px;
}

.search-box i {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
}

.search-clear {
    position: absolute;
    right: 2px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    padding: 4px;
}

.search-clear:hover {
    color: var(--text-primary);
}

.add-btn {
    background: linear-gradient(135deg, var(--arkema-navy) 0%, var(--arkema-teal) 100%);
    color: var(--white);
    border: none;
    padding: 10px 20px;
    border-radius: var(--border-radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.add-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(74, 155, 142, 0.3);
}

.employee-table {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-light);
}

.table {
    width: 100%;
    border-collapse: collapse;
}

.table th {
    background: var(--light-gray);
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: var(--arkema-navy);
    border-bottom: 1px solid var(--border-color);
}

.table td {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table tbody tr:hover {
    background: var(--light-gray);
}

.table tbody tr:last-child td {
    border-bottom: none;
}

.table th.actions {
    width: 100px;
}

.action-btns {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-view {
    background: var(--arkema-navy);
    color: var(--white) !important;
}

.btn-view:hover {
    background: var(--arkema-teal);
    color: var(--white) !important;
}

.btn-edit {
    background: var(--arkema-teal);
    color: var(--white);
}

.btn-edit:hover {
    background: var(--arkema-navy);
}

.no-results {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

/* =====================================
   PAGINATION
   ===================================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    gap: 5px;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--text-secondary);
    transition: var(--transition);
    cursor: pointer;
}

.pagination a:hover {
    background: var(--arkema-teal);
    color: var(--white);
    border-color: var(--arkema-teal);
}

.pagination .current {
    background: var(--arkema-teal);
    color: var(--white);
    border-color: var(--arkema-teal);
}

.pagination .disabled {
    opacity: 0.5;
    pointer-events: none;
}

/* =====================================
   MODAL
   ===================================== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 30px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.modal-title {
    color: var(--arkema-navy);
    font-size: 20px;
    font-weight: 600;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    color: var(--text-primary);
}

.form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
    margin-bottom: 0;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 30px;
}

.btn-cancel {
    background: var(--white);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    padding: 10px 20px;
    border-radius: var(--border-radius);
    cursor: pointer;
    transition: var(--transition);
}

.btn-cancel:hover {
    background: var(--light-gray);
}

.checkbox-field {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding: 8px 0;
}

.checkbox-field input[type="checkbox"] {
    margin: 0;
    width: 22px;
    height: 22px;
    cursor: pointer;
}

.checkbox-field label {
    margin: 0;
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
}

/* =====================================
   ANIMATIONS
   ===================================== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* =====================================
   RESPONSIVE DESIGN
   ===================================== */
@media (max-width: 768px) {
    .login-container {
        padding: 30px 20px;
    }
    
    .sidebar {
        width: 200px;
    }
    
    .main-header {
        padding: 15px 20px;
    }
    
    .page-title {
        font-size: 20px;
    }

    .employee-header {
        flex-direction: column;
        align-items: stretch;
    }

    .search-container {
        max-width: none;
    }

    .table {
        font-size: 14px;
    }

    .table th, .table td {
        padding: 12px 8px;
    }

    .form-row {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .sidebar {
        width: 60px;
    }
    
    .nav-link span {
        display: none;
    }
    
    .sidebar-title {
        display: none;
    }
    
    .sidebar-header img {
        max-width: 40px;
    }
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 9999;
    max-width: 400px;
}

.notification-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.notification-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
/* Add this CSS */
.date-dropdowns {
    display: inline-block;
    gap: 10px;
}

.date-dropdowns select {
    flex: 1;
	padding:8px;
}

.pagination {
    display: block;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
	max-width:1000px;
}

.pagination a,
.pagination span {
    padding: 8px 12px;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.pagination a:hover {
    background-color: #f5f5f5;
    border-color: #999;
}

.pagination .current {
    background-color: #007cba;
    color: white;
    border-color: #007cba;
    font-weight: bold;
}

.pagination .disabled {
    color: #999;
    cursor: not-allowed;
    background-color: #f9f9f9;
}

.pagination .ellipsis {
    border: none;
    background: none;
    padding: 8px 4px;
    color: #666;
    cursor: default;
}

.form-control textarea,
textarea.form-control {
	width:100%;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    resize: vertical; /* Allow only vertical resize */
    min-height: 80px; /* Set a reasonable minimum height */
    font-family: inherit; /* Match the input font */
    line-height: 1.4; /* Better line spacing for readability */
	padding:10px;
	font-size:16px;
}
.fas.fa-search {
    cursor: pointer;
}