/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: white;
    border-radius: 5px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-header h3 {
    margin: 0;
    color: var(--secondary);
}

.modal-close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.modal-body {
    padding: 1.5rem;
}

.task-info {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
    font-weight: 500;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.form-input, .form-textarea {
    width: 100%;
    padding: 0.75rem;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-family: inherit;
    font-size: 1rem;
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    padding: 1rem;
    border-top: 1px solid #eee;
    gap: 1rem;
}

.modal-cancel-btn, .modal-save-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
}

.modal-cancel-btn {
    background-color: #f5f5f5;
}

.modal-save-btn {
    background-color: var(--primary);
    color: white;
}/* Progress Tracker Styles */
.progress-tracker {
    background-color: white;
    margin: 0 2rem 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.progress-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 0;
}

.expand-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.expand-btn:hover {
    background-color: #e5e5e5;
}

.overall-progress {
    margin-bottom: 1.5rem;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.progress-stats {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.completed-count {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary);
}

.separator {
    font-size: 1.5rem;
    color: #aaa;
}

.total-count {
    font-size: 1.5rem;
    color: #777;
}

.progress-label {
    margin-left: 0.75rem;
    color: #666;
}

.progress-percentage {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.progress-bar {
    height: 10px;
    background-color: #e9ecef;
    border-radius: 5px;
    overflow: hidden;
}

.progress-bar.overall {
    height: 15px;
}

.progress-fill {
    height: 100%;
    background-color: var(--success);
    border-radius: 5px;
    transition: width 1s ease-out;
}

/* Task Groups */
.task-groups {
    display: none; /* Hidden by default, shown when expanded */
    margin-top: 1.5rem;
    border-top: 1px solid #eee;
    padding-top: 1.5rem;
}

.task-groups.expanded {
    display: block;
    animation: fadeIn 0.5s ease;
}

.task-group {
    margin-bottom: 1.25rem;
}

.task-group:last-child {
    margin-bottom: 0;
}

.task-group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.task-group-header h3 {
    font-size: 1.1rem;
    margin: 0;
    color: var(--secondary);
    border: none;
    padding: 0;
}

.group-progress {
    font-weight: 600;
    color: #666;
}/* FireQual CSS - Main Stylesheet */

/* CSS Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --primary: #f8a15f; /* Light orange */
    --secondary: #1d3557; /* Navy blue */
    --accent: #f4a261; /* Warm orange */
    --light: #f1faee;
    --dark: #1d3557;
    --success: #2a9d8f;
    --warning: #e9c46a;
    --danger: #e76f51;

    /* Typography */
    --font-main: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    --font-heading: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    font-family: var(--font-main);
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

/* App Container */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Header Styles */
header {
    background-color: var(--primary);
    color: white;
    padding: 0.8rem 2rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 0.8rem;
}

.taskbook-section {
    display: flex;
    width: 100%;
    padding-top: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taskbook-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-right: auto;
}

.file-upload-btn {
    margin-left: auto;
}

.logo-icon {
    font-size: 1.8rem;
}

h1 {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.8rem;
}

/* Taskbook Selector Styles */
.taskbook-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.taskbook-selector label {
    font-weight: 600;
    font-size: 0.9rem;
}

.taskbook-dropdown {
    background-color: rgba(255,255,255,0.9);
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    color: var(--secondary);
    font-weight: 500;
    cursor: pointer;
    min-width: 220px;
}

.taskbook-dropdown:focus {
    outline: 2px solid rgba(255,255,255,0.5);
}

/* File Upload Button */
.file-upload-btn {
    background-color: var(--secondary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.file-upload-btn:hover {
    background-color: #152a45; /* Darker shade of secondary */
}

/* Hamburger Menu */
.hamburger-menu {
    position: relative;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.menu-toggle:hover {
    background-color: rgba(255,255,255,0.1);
}

.menu-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 200px;
    z-index: 100;
    overflow: hidden;
    display: none;
}

.menu-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.menu-dropdown ul {
    list-style: none;
}

.menu-dropdown li {
    position: relative;
}

.menu-dropdown a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    color: var(--secondary);
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.menu-dropdown a i {
    margin-right: 0.5rem;
    width: 20px;
    text-align: center;
}

.menu-dropdown a:hover {
    background-color: #f5f5f5;
}

.menu-dropdown a.logout {
    color: var(--danger);
}

.menu-divider {
    height: 1px;
    background-color: #eee;
    margin: 0.5rem 0;
}

/* Submenu for Export */
.dropdown-submenu {
    position: relative;
}

.submenu-toggle {
    justify-content: space-between;
}

.submenu-toggle .fa-chevron-right {
    font-size: 0.8rem;
    margin-left: auto;
}

.submenu {
    display: none;
    position: absolute;
    top: 0;
    left: 100%;
    background-color: white;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    width: 150px;
}

/* Main Content Area */
main {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Task List Styles */
.task-list-container {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 1.5rem;
}

.task-list-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.task-list-header h2 {
    font-size: 1.5rem;
    color: var(--secondary);
    margin: 0;
}

.task-filters {
    display: flex;
    gap: 1rem;
}

.filter-dropdown {
    background-color: #f5f5f5;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.5rem;
    font-size: 0.9rem;
}

.task-list {
    list-style: none;
    padding: 0;
}

.task-item {
    border: 1px solid #eee;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.task-header {
    display: grid;
    grid-template-columns: 80px 1fr auto 40px;
    align-items: center;
    padding: 1rem;
    background-color: #f9f9f9;
    cursor: pointer;
}

.task-code {
    font-weight: 700;
    color: var(--secondary);
}

.task-title {
    font-weight: 500;
    padding-right: 1rem;
}

.task-status {
    padding: 0.25rem 0.75rem;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
}

.task-status.completed {
    background-color: #e3f7eb;
    color: #2a9d8f;
}

.task-status.pending {
    background-color: #fff8e6;
    color: #e9c46a;
}

.expand-task-btn {
    background: none;
    border: none;
    color: #777;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.expand-task-btn.expanded {
    transform: rotate(180deg);
}

/* Task Details */
.task-details {
    display: none;
    padding: 1.5rem;
    border-top: 1px solid #eee;
    background-color: white;
}

.task-details.expanded {
    display: block;
    animation: fadeIn 0.3s ease;
}

.task-attributes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.attribute-label {
    font-weight: 600;
    color: #666;
    margin-right: 0.5rem;
}

.task-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.task-description h4 {
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.completion-records {
    margin-bottom: 1.5rem;
}

.completion-records h4 {
    color: var(--secondary);
    margin-bottom: 1rem;
}

.no-records {
    color: #999;
    font-style: italic;
}

.record {
    background-color: #f9f9f9;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.record-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.record-date {
    font-weight: 600;
}

.record-evaluator {
    color: #666;
}

.record-notes {
    color: #333;
}

.record-actions {
    display: flex;
    justify-content: flex-end;
}

.add-record-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.3s ease;
}

.add-record-btn:hover {
    background-color: #e05f3b;
}

/* Upload Modal Styles */
.upload-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.upload-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #999;
}

.upload-modal-body {
    margin-bottom: 1.5rem;
}

.selected-files-list {
    list-style: none;
    margin-top: 1rem;
    max-height: 200px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 0.5rem;
}

.selected-files-list li {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    border-bottom: 1px solid #f5f5f5;
}

.selected-files-list li:last-child {
    border-bottom: none;
}

.selected-files-list i {
    color: var(--secondary);
    margin-right: 0.5rem;
}

.file-size {
    margin-left: auto;
    color: #666;
    font-size: 0.85rem;
}

.upload-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.cancel-upload-btn {
    background-color: #f5f5f5;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

.confirm-upload-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
}

/* Footer Styles */
footer {
    background-color: var(--secondary);
    color: white;
    text-align: center;
    padding: 1rem;
    margin-top: auto;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    header {
        padding: 1rem;
    }
    
    .taskbook-section {
        flex-direction: column;
        gap: 0.8rem;
        align-items: stretch;
    }
    
    .taskbook-selector {
        margin-right: 0;
    }
    
    .file-upload-btn {
        margin-left: 0;
    }
    
    .taskbook-dropdown {
        width: 100%;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    main {
        padding: 1rem;
    }
    
    .stat-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-box {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .renew-btn {
        margin-top: 0.5rem;
        align-self: flex-end;
    }
}