/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg-color);
    border-radius: 16px;
    padding: 24px;
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.modal.show .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

.modal-title {
    font-family: 'Unbounded', sans-serif;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-color);
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color);
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.modal-close:hover {
    background: var(--border-color);
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.modal-form .input-group {
    margin-bottom: 0;
}

.modal-form input,
.modal-form select,
.modal-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    background: var(--bg-color);
    color: var(--text-color);
    transition: border-color 0.3s ease;
}

.modal-form input:focus,
.modal-form select:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.modal-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

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

.modal-btn.primary:hover {
    background: #2980b9;
}

.modal-btn.secondary {
    background: var(--border-color);
    color: var(--text-color);
}

.modal-btn.secondary:hover {
    background: #95a5a6;
}

/* Modal action buttons */
.custom-alert-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.custom-alert-btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    background: var(--primary-color);
    color: white;
}

.custom-alert-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

.custom-alert-btn.cancel {
    background: #95a5a6;
}

.custom-alert-btn.primary {
    background: var(--primary-color);
}

/* Modal form styles */
.modal-form-group {
    margin-bottom: 15px;
}

.modal-form-group.last {
    margin-bottom: 20px;
}

.modal-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: var(--text-color);
}

.modal-input {
    width: 100%;
    margin: 0;
}

.modal-textarea {
    width: 100%;
    margin: 0;
    min-height: 80px;
    resize: vertical;
}

/* Statistics section styles */
.stats-section-title {
    margin-bottom: 15px;
    font-family: 'Unbounded', sans-serif;
    color: var(--text-color);
}

.export-section {
    text-align: center;
    margin-top: 30px;
}

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