/* MAINTENANCE GUIDES COMPONENTS */
.maintenance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.stat-card {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.25);
}

.stat-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: rgba(255,255,255,0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

/* DASHBOARD SECTION */
.maintenance-dashboard {
    padding: 5rem 0;
    background: #f8fafc;
}

.maintenance-dashboard h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.card-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-header h3 {
    color: white;
    margin: 0;
}

.days-counter {
    text-align: center;
    background: rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 1rem;
    min-width: 80px;
}

.days-number {
    display: block;
    font-size: 2rem;
    font-weight: bold;
    color: white;
}

.days-text {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.9);
}

.card-content {
    padding: 2rem;
}

.next-task {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.task-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

.task-name {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.task-detail {
    color: #64748b;
    font-size: 0.9rem;
}

/* COST SAVINGS CARD */
.savings-comparison {
    display: grid;
    gap: 1rem;
}

.cost-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
}

.cost-label {
    color: #64748b;
}

.cost-value {
    font-weight: bold;
    color: var(--primary-color);
}

.cost-high {
    color: #dc2626;
}

.savings-result {
    text-align: center;
    padding: 1.5rem;
    background: #dcfce7;
    border-radius: 8px;
    color: #166534;
    font-size: 1.1rem;
}

/* EMERGENCY CONTACTS */
.emergency-buttons {
    display: grid;
    gap: 1rem;
}

.emergency-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #fef2f2;
    border: 2px solid #fecaca;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.emergency-btn:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    transform: translateY(-2px);
}

.emergency-btn .btn-icon {
    font-size: 1.5rem;
    color: #dc2626;
}

.emergency-btn strong {
    color: #991b1b;
}

.emergency-btn small {
    color: #64748b;
}

/* SYSTEMS GRID */
.maintenance-systems {
    padding: 5rem 0;
}

.maintenance-systems h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.section-intro {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.systems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.system-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
}

.system-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.system-header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 2rem;
    text-align: center;
}

.system-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.system-header h3 {
    color: white;
    margin-bottom: 0.5rem;
}

.system-frequency {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.8rem;
    display: inline-block;
}

.system-preview {
    padding: 1.5rem;
}

.quick-checklist {
    display: grid;
    gap: 0.75rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: #374151;
}

.checklist-item .check {
    color: #16a34a;
    font-weight: bold;
    font-size: 1rem;
}

.system-btn {
    width: 100%;
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.system-btn:hover {
    background: #0369a1;
}

.system-btn.critical {
    background: #dc2626;
}

.system-btn.critical:hover {
    background: #991b1b;
}

/* CALENDAR SECTION */
.maintenance-calendar {
    padding: 5rem 0;
    background: #f8fafc;
}

.maintenance-calendar h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.calendar-intro {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 3rem;
}

.calendar-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.year-selector {
    display: flex;
    gap: 0.5rem;
}

.year-btn {
    background: white;
    border: 2px solid #e5e7eb;
    color: var(--primary-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-btn:hover,
.year-btn.active {
    background: var(--accent-color);
    color: white;
    border-color: var(--accent-color);
}

.calendar-actions {
    display: flex;
    gap: 1rem;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.month-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

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

.month-card h4 {
    background: var(--primary-color);
    color: white;
    margin: 0;
    padding: 1.5rem;
    text-align: center;
}

.month-tasks {
    padding: 1.5rem;
    display: grid;
    gap: 1rem;
}

.task-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
}

.task-date {
    background: var(--accent-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.task-system {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.task-system.cctv { background: #dbeafe; color: #1e40af; }
.task-system.eps { background: #fecaca; color: #991b1b; }
.task-system.mar { background: #d1fae5; color: #065f46; }
.task-system.elektro { background: #fef3c7; color: #92400e; }
.task-system.psn { background: #e0e7ff; color: #3730a3; }

.task-name {
    color: #374151;
    font-size: 0.9rem;
}

.more-months {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
    border: 2px dashed #cbd5e1;
}

.more-text {
    text-align: center;
    color: #64748b;
    margin-bottom: 1rem;
}

.more-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.show-more-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.show-more-btn:hover {
    background: #0369a1;
}

/* QUICK TOOLS */
.quick-tools {
    padding: 5rem 0;
}

.quick-tools h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tool-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
}

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

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    color: var(--accent-color);
}

.tool-card h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.tool-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.tool-demo {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.tool-demo label {
    display: block;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tool-demo select,
.tool-demo input[type="range"] {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.tool-demo input[type="range"] {
    padding: 0;
    height: 6px;
    background: #e5e7eb;
    cursor: pointer;
}

.tool-demo .result {
    background: #dcfce7;
    border: 1px solid #bbf7d0;
    border-radius: 6px;
    padding: 1rem;
    color: #166534;
    font-weight: 500;
}

.checklist-preview {
    background: #f8fafc;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    text-align: left;
}

.checklist-preview .checklist-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    color: #374151;
}

.checklist-preview .checklist-item:last-child {
    margin-bottom: 0;
}

.checklist-preview input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent-color);
}

.tool-btn {
    background: var(--accent-color);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.tool-btn:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

/* FAQ SECTION */
.faq-section {
    padding: 5rem 0;
    background: #f8fafc;
}

.faq-section h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 3rem;
}

.faq-grid {
    display: grid;
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    overflow: hidden;
}

.faq-question {
    padding: 1.5rem 2rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border: none;
    width: 100%;
    text-align: left;
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: #f8fafc;
}

.faq-question h3 {
    color: var(--primary-color);
    margin: 0;
    font-size: 1.1rem;
}

.faq-toggle {
    font-size: 1.5rem;
    color: var(--accent-color);
    font-weight: bold;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #fafbfc;
}

.faq-item.open .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 2rem 1.5rem 2rem;
    margin: 0;
    color: #374151;
    line-height: 1.6;
}

/* CONTACT CTA */
.contact-cta {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

.cta-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.cta-content h2 {
    color: white;
    margin-bottom: 1rem;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.cta-options {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-btn.primary {
    background: var(--accent-color);
    color: white;
}

.cta-btn.primary:hover {
    background: #0369a1;
    transform: translateY(-2px);
}

.cta-btn.secondary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.cta-btn.secondary:hover {
    background: rgba(255,255,255,0.3);
}

.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    opacity: 0.9;
}

.contact-item {
    padding: 1rem;
    background: rgba(255,255,255,0.1);
    border-radius: 8px;
    font-size: 0.9rem;
}

/* MODAL */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.modal-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    color: white;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: rgba(255,255,255,0.2);
}

.modal-body {
    padding: 2rem;
    max-height: 60vh;
    overflow-y: auto;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .maintenance-stats {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-card {
        padding: 1.5rem;
    }
    
    .dashboard-cards {
        grid-template-columns: 1fr;
    }
    
    .systems-grid {
        grid-template-columns: 1fr;
    }
    
    .calendar-controls {
        flex-direction: column;
        text-align: center;
    }
    
    .calendar-grid {
        grid-template-columns: 1fr;
    }
    
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-options {
        flex-direction: column;
        align-items: center;
    }
    
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .emergency-buttons {
        gap: 0.75rem;
    }
    
    .emergency-btn {
        padding: 0.75rem;
    }
    
    .modal-content {
        margin: 1rem;
        max-height: 95vh;
    }
    
    .modal-header {
        padding: 1.5rem;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .maintenance-stats {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    
    .year-selector {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .calendar-actions {
        flex-direction: column;
        width: 100%;
        gap: 0.5rem;
    }
    
    .task-item {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
}

/* PRINT STYLES */
@media print {
    .modal-overlay,
    .cta-options,
    .system-btn,
    .tool-btn,
    .show-more-btn,
    .emergency-btn {
        display: none !important;
    }
    
    .calendar-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    
    .month-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #e5e7eb;
    }
    
    body {
        font-size: 12px;
    }
}
