/* E-voucher Modal Styles */

.evoucher-btn {
    color: #c4c4c4;
}

.evoucher-btn:hover {
    color: #212529;
}


/* Modal overrides for mobile full-screen */
@media (max-width: 768px) {
    #evoucherModal .modal-dialog,
    .evoucher-style-modal .modal-dialog {
        margin: 0.5rem;
        max-width: calc(100% - 1rem);
        height: calc(100vh - 1rem);
    }
    
    #evoucherModal .modal-content,
    .evoucher-style-modal .modal-content {
        height: 100%;
        display: flex;
        flex-direction: column;
    }
    
    #evoucherModal .modal-body,
    .evoucher-style-modal .modal-body {
        flex: 1;
        overflow-y: auto;
    }
}

/* Modal content styling */
.evoucher-modal-content {
    border: none;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* Header with Colegia branding */
.evoucher-header {
    background: linear-gradient(135deg, #007bff, #0056b3);
    border-bottom: none;
    padding: 1rem 1.5rem;
    position: relative;
}

.evoucher-logo {
    display: flex;
    align-items: center;
}

.evoucher-logo-img {
    height: 30px;
    width: auto;
}

/* Body styling */
.evoucher-body {
    padding: 2rem;
    background: #fff;
    min-height: 400px;
}

/* Loading state */
.evoucher-loading {
    padding: 3rem 0;
}

/* Controls section */
.evoucher-controls {
    margin-bottom: 1.5rem;
    text-align: right;
}

.evoucher-toggle-all {
    border-color: #007bff;
    color: #007bff;
    transition: all 0.2s ease;
    font-size: 0.875rem;
    padding: 0.375rem 0.75rem;
}

.evoucher-toggle-all:hover {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.evoucher-toggle-all:focus {
    box-shadow: 0 0 0 0.2rem rgba(26, 124, 196, 0.25);
}

.evoucher-toggle-all i {
    margin-right: 0.375rem;
}

/* Activity header */
.evoucher-activity-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.evoucher-activity-icon {
    margin-right: 1rem;
    min-width: 50px;
}

.evoucher-icon {
    font-size: 2.5rem;
    color: #007bff;
}

.evoucher-activity-title {
    flex: 1;
}

.evoucher-activity-name {
    margin: 0;
    color: #333;
    font-weight: 600;
    font-size: 1.5rem;
}

.evoucher-activity-type {
    color: #666;
    font-size: 0.9rem;
    margin-top: 0.25rem;
}

/* Date and time */
.evoucher-datetime {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.evoucher-date {
    font-weight: 600;
    color: #007bff;
    font-size: 1.1rem;
}

.evoucher-time {
    color: #666;
    font-size: 1.1rem;
}

/* Section styling */
.evoucher-contact-section,
.evoucher-description-section,
.evoucher-notes-section,
.evoucher-teacher-notes-section,
.evoucher-registered-notes-section,
.evoucher-documents-section {
    margin-bottom: 1rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.evoucher-section-title {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Accordion header styling */
.evoucher-accordion-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.2s ease;
}

.evoucher-accordion-header:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
}

.evoucher-section-title-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.evoucher-accordion-toggle {
    transition: transform 0.3s ease;
    font-size: 0.9rem;
}

.evoucher-accordion-header.active .evoucher-accordion-toggle {
    transform: rotate(180deg);
}

.evoucher-accordion-content {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Contact information */
.evoucher-contact-info {
    padding: 1.5rem;
}

.evoucher-contact-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    gap: 0.75rem;
}

.evoucher-contact-item:last-child {
    margin-bottom: 0;
}

.evoucher-contact-item i {
    width: 18px;
    color: #007bff;
    text-align: center;
}

.evoucher-contact-link {
    color: #333;
    text-decoration: none;
}

.evoucher-contact-link:hover {
    color: #007bff;
    text-decoration: underline;
}

.evoucher-contact-text {
    color: #333;
}

/* Content sections */
.evoucher-description-content,
.evoucher-notes-content,
.evoucher-teacher-notes-content,
.evoucher-registered-notes-content {
    padding: 1.5rem;
    color: #333;
    line-height: 1.6;
}

/* Documents list */
.evoucher-documents-list {
    padding: 1rem 1.5rem;
}

.evoucher-document-item {
    display: flex;
    justify-content: between;
    align-items: center;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.evoucher-document-item:last-child {
    margin-bottom: 0;
}

.evoucher-document-info {
    flex: 1;
}

.evoucher-document-name {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.25rem;
}

.evoucher-document-type {
    font-size: 0.875rem;
    color: #666;
}

.evoucher-document-download {
    margin-left: 1rem;
}

.evoucher-document-link {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-size: 0.875rem;
    transition: background-color 0.2s;
}

.evoucher-document-link:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    color: white;
}


/* Footer */
.evoucher-footer {
    background: #fff;
    border-top: 1px solid #dee2e6;
    padding: 1rem 1.5rem;
}

.evoucher-footer-branding {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    color: #007bff;
}

.evoucher-footer-logo {
    opacity: 0.8;
}

.evoucher-footer-text {
    font-size: 1.1rem;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .evoucher-body {
        padding: 1rem;
    }
    
    .evoucher-activity-header {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }
    
    .evoucher-activity-icon {
        margin-right: 0;
        margin-bottom: 0.5rem;
    }
    
    .evoucher-datetime {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .evoucher-contact-info,
    .evoucher-description-content,
    .evoucher-notes-content,
    .evoucher-teacher-notes-content,
    .evoucher-registered-notes-content {
        padding: 1rem;
    }
    
    .evoucher-document-item {
        align-items: stretch;
        gap: 0.5rem;
    }
    
    .evoucher-document-download {
        margin-left: 0;
    }
    
    .evoucher-document-link {
        justify-content: center;
    }
    
    .evoucher-controls {
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .evoucher-toggle-all {
        font-size: 0.8rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Activity type color integration */
.evoucher-activity-header.has-color {
    border-left: 5px solid var(--activity-color);
}

.evoucher-activity-header.has-color .evoucher-icon {
    color: var(--activity-color);
}

.evoucher-activity-header.has-color .evoucher-activity-name {
    color: var(--activity-color);
} 