/* Tool Modal Styles - Isolated */
#tool-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(5px);
    font-family: 'Inter', sans-serif;
}

#tool-modal.active {
    display: flex;
}

.tool-container {
    width: 95%;
    max-width: 900px;
    height: 90vh;
    position: relative;
    background: transparent;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 10001;
}

.glass-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 2rem;
    height: 100%;
    overflow-y: auto;
    color: #242f4c;
    /* brand-dark-blue */
}

/* Typography & Colors */
.tool-title {
    color: #242f4c;
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1rem;
    text-align: center;
}

.tool-subtitle {
    color: #464c63;
    text-align: center;
    margin-bottom: 2rem;
}

.btn-primary {
    background-color: #242f4c;
    /* brand-dark-blue */
    color: #b59b69;
    /* brand-gold */
    border: 2px solid #b59b69;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    text-align: center;
}

.btn-primary:hover {
    background-color: #b59b69;
    color: #242f4c;
}

.btn-secondary {
    background-color: transparent;
    color: #242f4c;
    border: 2px solid #242f4c;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 10px;
    display: inline-block;
}

.btn-secondary:hover {
    background-color: #242f4c;
    color: white;
}

/* Quiz Styles */
.quiz-option {
    display: block;
    width: 100%;
    padding: 15px;
    margin-bottom: 10px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: all 0.2s;
    color: #242f4c;
    font-weight: 500;
}

.quiz-option:hover {
    border-color: #b59b69;
    background: #fffbf2;
}

.quiz-option.selected {
    background-color: #242f4c;
    color: #b59b69;
    border-color: #b59b69;
}

.quiz-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 20px;
}

/* Wizard Styles */
.wizard-steps {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
    position: relative;
}

.wizard-steps::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #e9ecef;
    z-index: 1;
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    border: 2px solid #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    position: relative;
    z-index: 2;
    color: #adb5bd;
}

.step-indicator.active {
    border-color: #b59b69;
    color: #242f4c;
    background: #fffbf2;
}

.step-indicator.completed {
    background: #242f4c;
    border-color: #242f4c;
    color: #b59b69;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #242f4c;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 1rem;
}

.form-control:focus {
    border-color: #b59b69;
    outline: none;
    box-shadow: 0 0 0 3px rgba(181, 155, 105, 0.2);
}

/* Upload Grid */
.upload-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.upload-card {
    border: 2px dashed #ced4da;
    border-radius: 8px;
    padding: 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.upload-card:hover {
    border-color: #b59b69;
    background: #fffbf2;
}

.upload-icon {
    font-size: 2rem;
    color: #b59b69;
    margin-bottom: 1rem;
}

.upload-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    display: block;
    font-size: 0.9rem;
}

.upload-desc {
    font-size: 0.8rem;
    color: #6c757d;
}

.section-title {
    font-size: 1.2rem;
    font-weight: bold;
    color: #242f4c;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #b59b69;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 10px;
}

.checkbox-wrapper input[type="checkbox"] {
    margin-top: 4px;
}

.hidden {
    display: none;
}