/* Custom styles for Storyline Accessibility Tool */

:root {
    --primary-color: #67acb0;
    --primary-dark: #539ca0;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --danger-color: #ef4444;
    --info-color: #3b82f6;
}

.upload-area {
    border: 2px dashed #cbd5e1;
    border-radius: 0.5rem;
    padding: 3rem;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--primary-color);
    background-color: #f8fafc;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background-color: #eff6ff;
}

.scan-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.scan-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.issue-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.issue-critical {
    background-color: #fee2e2;
    color: #991b1b;
}

.issue-high {
    background-color: #fef3c7;
    color: #92400e;
}

.issue-medium {
    background-color: #dbeafe;
    color: #1e40af;
}

.issue-low {
    background-color: #e5e7eb;
    color: #374151;
}

.progress-ring {
    transform: rotate(-90deg);
}

.progress-ring-circle {
    transition: stroke-dashoffset 0.35s;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
}

.loading-spinner {
    border: 3px solid #f3f4f6;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

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

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-item {
    padding: 1rem;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.slide-item:hover {
    background-color: #f8fafc;
    border-left-color: var(--primary-color);
}

.slide-item.has-issues {
    border-left-color: var(--danger-color);
}

.slide-item.no-issues {
    border-left-color: var(--success-color);
}

/* Modal Styles - Clean and Visible */
#issuesModal .modal-dialog {
    max-width: 95%;
    margin: 1rem auto;
}

#issuesModal .modal-content {
    border: none;
    box-shadow: 0 0.5rem 2rem rgba(0, 0, 0, 0.25);
    border-radius: 0.5rem;
}

#issuesModal .modal-header {
    border-bottom: 2px solid #dee2e6;
    padding: 1.25rem 1.5rem;
}

#issuesModal .modal-body {
    padding: 1.5rem;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
    overflow-x: hidden;
}

#issuesModal .modal-footer {
    border-top: 2px solid #dee2e6;
    padding: 1rem 1.5rem;
}

#issuesModal .card {
    border: 1px solid #dee2e6;
    transition: box-shadow 0.2s;
}

#issuesModal .card:hover {
    box-shadow: 0 0.25rem 0.75rem rgba(0, 0, 0, 0.1);
}

#issuesModal .card-header {
    font-weight: 600;
}

#issuesModal code {
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.9em;
    color: #d63384;
    word-break: break-all;
}

#issuesModal pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1rem;
    border-radius: 0.375rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

#issuesModal pre code {
    background-color: transparent;
    color: inherit;
    padding: 0;
}

#issuesModal .alert {
    border-width: 2px;
    font-size: 0.95rem;
}

#issuesModal .lead {
    font-size: 1.1rem;
    font-weight: 400;
}

/* Button Styles - Teal Theme */
.btn-primary,
a.btn-primary,
button.btn-primary {
    background: linear-gradient(135deg, #67acb0 0%, #539ca0 100%) !important;
    border: none !important;
    color: white !important;
    box-shadow: 0 4px 15px rgba(103, 172, 176, 0.4) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-weight: 600 !important;
    border-radius: 10px !important;
    position: relative !important;
    overflow: hidden !important;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover,
a.btn-primary:hover,
button.btn-primary:hover {
    background: linear-gradient(135deg, #539ca0 0%, #4a8c90 100%) !important;
    transform: translateY(-3px) scale(1.02) !important;
    box-shadow: 0 8px 25px rgba(103, 172, 176, 0.5) !important;
    color: white !important;
}

.btn-primary:active,
.btn-primary:focus,
a.btn-primary:active,
a.btn-primary:focus,
button.btn-primary:active,
button.btn-primary:focus {
    background: linear-gradient(135deg, #67acb0 0%, #539ca0 100%) !important;
    border: none !important;
    box-shadow: 0 4px 10px rgba(103, 172, 176, 0.4) !important;
    color: white !important;
    transform: translateY(-1px) !important;
    outline: none !important;
}

.btn-primary:disabled {
    background: linear-gradient(135deg, #67acb0 0%, #539ca0 100%) !important;
    opacity: 0.6 !important;
    cursor: not-allowed !important;
    transform: none !important;
}

.btn-primary.btn-lg {
    padding: 0.75rem 2rem !important;
    font-size: 1.125rem !important;
    border-radius: 12px !important;
}

.btn-outline-primary {
    border: 2px solid #67acb0 !important;
    color: #67acb0 !important;
    background: transparent !important;
}

.btn-outline-primary:hover {
    background: #67acb0 !important;
    border-color: #67acb0 !important;
    color: white !important;
}

