/* ZeroCreations Maintenance Report Widget Styles */

.zc-maintenance-report-widget {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
}

/* Title Styles */
.zc-report-title {
    font-size: 2rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
}

/* Meta Information */
.zc-report-meta {
    margin-bottom: 2rem;
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #3498db;
}

.zc-report-meta p {
    margin: 0.5rem 0;
    font-size: 0.95rem;
}

/* Summary Section */
.zc-summary-section {
    margin-bottom: 2.5rem;
}

.zc-summary-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #2c3e50;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.zc-summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.zc-summary-item {
    flex: 1;
    min-width: 200px;
    padding: 1rem;
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.zc-summary-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Maintenance Logs Section */
.zc-logs-section {
    margin-bottom: 2.5rem;
}

.zc-logs-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    border-bottom: 2px solid #e74c3c;
    padding-bottom: 0.5rem;
}

.zc-month-section {
    margin-bottom: 2rem;
}

.zc-month-heading {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    color: #34495e;
    background-color: #ecf0f1;
    padding: 0.75rem 1rem;
    border-radius: 6px;
}

/* Logs Header */
.zc-logs-header {
    display: flex;
    background-color: #34495e;
    color: white;
    font-weight: 600;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}

.zc-log-header-item {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    font-size: 0.9rem;
    border-right: 1px solid #2c3e50;
}

.zc-log-header-item:last-child {
    border-right: none;
    flex: 2; /* Notes column gets more space */
}

/* Log Items */
.zc-log-item {
    display: flex;
    border: 1px solid #e1e8ed;
    border-top: none;
    background-color: #ffffff;
    transition: background-color 0.2s ease;
}

.zc-log-item:hover {
    background-color: #f8f9fa;
}

.zc-log-item:last-child {
    border-radius: 0 0 6px 6px;
}

.zc-log-field {
    flex: 1;
    padding: 0.75rem 0.5rem;
    text-align: center;
    border-right: 1px solid #e1e8ed;
    font-size: 0.9rem;
}

.zc-log-field:last-child {
    border-right: none;
}

.zc-log-notes {
    flex: 2; /* Notes column gets more space */
    text-align: left;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Services Section */
.zc-services-section {
    margin-bottom: 2rem;
}

.zc-services-heading {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0 0 1.5rem 0;
    color: #2c3e50;
    border-bottom: 2px solid #27ae60;
    padding-bottom: 0.5rem;
}

.zc-service-item {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background-color: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.2s ease;
}

.zc-service-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.zc-service-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0 0 0.75rem 0;
    color: #27ae60;
}

.zc-service-description {
    color: #555;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .zc-summary-grid {
        flex-direction: column;
    }
    
    .zc-summary-item {
        min-width: auto;
    }
    
    .zc-logs-header,
    .zc-log-item {
        flex-direction: column;
    }
    
    .zc-log-header-item,
    .zc-log-field {
        flex: none;
        border-right: none;
        border-bottom: 1px solid #e1e8ed;
        text-align: left;
    }
    
    .zc-log-header-item:last-child,
    .zc-log-field:last-child {
        border-bottom: none;
    }
    
    .zc-logs-header {
        display: none; /* Hide header on mobile, use labels instead */
    }
    
    .zc-log-field::before {
        content: attr(data-label) ': ';
        font-weight: 600;
        color: #34495e;
    }
    
    .zc-report-title {
        font-size: 1.5rem;
    }
    
    .zc-summary-heading,
    .zc-logs-heading,
    .zc-services-heading {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .zc-maintenance-report-widget {
        font-size: 0.9rem;
    }
    
    .zc-report-meta,
    .zc-summary-item,
    .zc-service-item {
        padding: 0.75rem;
    }
    
    .zc-month-heading {
        padding: 0.5rem 0.75rem;
        font-size: 1.1rem;
    }
}

/* Print Styles */
@media print {
    .zc-maintenance-report-widget {
        color: #000;
        background: #fff;
    }
    
    .zc-summary-item,
    .zc-service-item {
        box-shadow: none;
        border: 1px solid #ccc;
    }
    
    .zc-log-item:hover,
    .zc-summary-item:hover,
    .zc-service-item:hover {
        background-color: transparent;
        box-shadow: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .zc-maintenance-report-widget {
        color: #e1e8ed;
    }
    
    .zc-report-title,
    .zc-summary-heading,
    .zc-logs-heading,
    .zc-services-heading {
        color: #ffffff;
    }
    
    .zc-report-meta {
        background-color: #2c3e50;
        border-left-color: #3498db;
    }
    
    .zc-summary-item,
    .zc-service-item,
    .zc-log-item {
        background-color: #34495e;
        border-color: #4a5f7a;
        color: #e1e8ed;
    }
    
    .zc-month-heading {
        background-color: #2c3e50;
        color: #e1e8ed;
    }
    
    .zc-logs-header {
        background-color: #2c3e50;
    }
    
    .zc-log-header-item {
        border-right-color: #34495e;
    }
    
    .zc-log-field {
        border-right-color: #4a5f7a;
    }
    
    .zc-log-item:hover {
        background-color: #3d566e;
    }
}