.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 8px;
    position: relative;
    z-index: 10000;
}

.modal-header {
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.modal-title {
    margin: 0;
    font-size: 1.25rem;
    color: var(--dark-grey);
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
}

.modal-close:hover {
    color: var(--dark-grey);
}

.modal-body {
    margin-bottom: 1rem;
    position: relative;
}

.modal-footer {
    padding-top: 1rem;
    border-top: 1px solid #eee;
    text-align: right;
}

/* Loading Modal Specific Styles */
.loading-container {
    text-align: center;
    padding: 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 5px solid #f3f3f3;
    border-top: 5px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.progress-container {
    width: 100%;
    height: 20px;
    background-color: #f3f3f3;
    border-radius: 10px;
    margin: 20px 0;
    overflow: hidden;
}

.progress-bar {
    width: 0%;
    height: 100%;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

#loadingMessage {
    margin-bottom: 10px;
    color: var(--dark-grey);
}

#progressText {
    color: var(--dark-grey);
    font-size: 0.9rem;
}

/* Pulse Modal Specific Styles */
.pulse-modal .modal-content {
    max-height: 90vh;
    overflow-y: auto;
}

.pulse-modal .form-group {
    margin-bottom: 0.75rem;
}

.pulse-modal .form-group label {
    display: block;
    margin-bottom: 0.25rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.pulse-modal .form-group input[type="text"],
.pulse-modal .form-group input[type="number"],
.pulse-modal .form-group textarea {
    width: 100%;
    padding: 0.4rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
}

.pulse-modal .form-group textarea {
    min-height: 80px;
    resize: vertical;
}

.pulse-modal .form-group label[for^="checkbox"] {
    margin-left: 0.5rem;
}

.pulse-modal .modal-content h2 {
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: 1.2rem;
} 