/* Custom styles for the insurance video creator */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary: hsl(263 70% 50%);
    --brand-blue: hsl(219 100% 49%);
    --secondary: hsl(240 4% 16%);
    --accent: hsl(240 4% 16%);
    --destructive: hsl(0 84.2% 60.2%);
    --muted: hsl(240 4% 16%);
    --gradient-primary: linear-gradient(135deg, hsl(263 70% 50%) 0%, hsl(219 100% 49%) 100%);
    --gradient-secondary: linear-gradient(135deg, hsl(240 5% 25%) 0%, hsl(240 4% 16%) 100%);
    --gradient-accent: linear-gradient(135deg, hsl(263 70% 50%) 0%, hsl(280 70% 60%) 100%);
    --gradient-scene: linear-gradient(135deg, hsl(240 4% 20%) 0%, hsl(240 4% 16%) 100%);
    --shadow-card: 0 10px 30px -5px hsla(263, 70%, 50%, 0.3), 0 4px 6px -2px hsla(263, 70%, 50%, 0.1);
    --shadow-scene: 0 4px 15px -3px hsla(240, 4%, 16%, 0.1), 0 2px 4px -1px hsla(240, 4%, 16%, 0.06);
}

body {
    background: #f8f9fa;
    min-height: 100vh;
    color: #333;
    font-family: 'Poppins', sans-serif;
}

.hero-section {
    background: #f8f9fa;
    padding: 3rem 0 1rem 0;
    margin-bottom: 1.5rem;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 2rem;
    font-weight: 400;
    color: #6c757d;
    margin-bottom: 1rem;
}

.hero-title i {
    color: #adb5bd;
}

.hero-subtitle {
    font-size: 1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.upload-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
}

.upload-area {
    position: relative;
    border: 2px dashed #ced4da;
    border-radius: 12px;
    padding: 3rem 2rem;
    text-align: center;
    transition: all 0.3s ease;
    background: #fafbfc;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upload-area:hover {
    border-color: var(--primary);
    background: linear-gradient(135deg, hsl(263 30% 95%) 0%, hsl(219 30% 95%) 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px hsla(263, 70%, 50%, 0.2);
}

.upload-area.dragover {
    border-color: var(--primary);
    background: var(--gradient-accent);
    transform: scale(1.02);
    box-shadow: 0 12px 35px -5px hsla(263, 70%, 50%, 0.3);
}

.upload-area input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-placeholder {
    pointer-events: none;
}

.file-info {
    padding: 1rem;
    background: var(--gradient-scene);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    margin-top: 0.75rem;
    box-shadow: var(--shadow-scene);
    color: white;
}

.logo-preview {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 0.25rem;
    border: 1px solid var(--bs-border-color);
}

.filename {
    font-weight: 600;
    color: white;
}

.filesize {
    font-size: 0.875rem;
    color: hsla(0, 0%, 100%, 0.7);
}

/* Loading animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(var(--bs-primary-rgb), 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
    }
}

.spinner-border {
    animation: pulse 2s infinite;
}

/* Results table styling */
.table th {
    width: 200px;
    font-weight: 600;
    background-color: var(--bs-light-bg-subtle);
}

.table td {
    word-break: break-word;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .hero-section {
        padding: 2.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
    
    .upload-area i {
        font-size: 2rem !important;
    }
    
    .main-card {
        margin: 0 1rem;
    }
}

/* Card shadow enhancement */
.card.shadow {
    box-shadow: var(--shadow-card) !important;
}

.success-card {
    background: var(--gradient-scene);
    color: white;
    border: none;
    margin: 0 auto;
    max-width: 600px;
}

.success-section {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.success-card .alert-info {
    background: linear-gradient(135deg, hsla(219, 100%, 49%, 0.2) 0%, hsla(263, 70%, 50%, 0.2) 100%);
    border: 1px solid hsla(219, 100%, 49%, 0.3);
    color: white;
}

.btn-primary-custom {
    background: #5383ec;
    border: none;
    padding: 14px 32px;
    font-weight: 500;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: white;
    font-size: 14px;
    box-shadow: 0 4px 15px rgba(83, 131, 236, 0.3);
}

.btn-primary-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(83, 131, 236, 0.4);
    background: #4a73d4;
}

.form-control-custom {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 12px 16px;
    transition: all 0.3s ease;
    background: white;
    color: #333;
    font-size: 14px;
}

.form-control-custom:focus {
    border-color: #5383ec;
    box-shadow: 0 0 0 2px rgba(83, 131, 236, 0.1);
    background: white;
    color: #333;
    outline: none;
}

.form-control-custom::placeholder {
    color: hsl(240 5% 50%);
}

.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    font-size: 14px;
}

.form-text {
    color: #6c757d;
    font-size: 13px;
    margin-top: 4px;
}

.upload-header {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 1.5rem;
}

.upload-title {
    color: #333;
    font-weight: 600;
    margin: 0;
    font-size: 1rem;
}

.loading-card {
    background: var(--gradient-scene);
    color: white;
}

.loading-card .card-body {
    padding: 3rem 2rem;
}

.error-card {
    background: linear-gradient(135deg, hsla(0, 84%, 60%, 0.1) 0%, hsla(0, 84%, 60%, 0.05) 100%);
    border: 1px solid hsla(0, 84%, 60%, 0.3);
}

/* Button loading state */
.btn.loading {
    position: relative;
    pointer-events: none;
}

.btn.loading .btn-text {
    opacity: 0.6;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin-top: -8px;
    margin-left: -8px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Status dots for form labels */
.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 8px;
    display: inline-block;
}

.success-dot {
    background-color: #28a745;
}

.danger-dot {
    background-color: #dc3545;
}

/* Upload content area */
.upload-content {
    padding: 2rem;
}

/* Upload placeholder styling */
.upload-placeholder {
    color: #6c757d;
}

.upload-placeholder i {
    color: #adb5bd;
    margin-bottom: 1rem;
}

.upload-placeholder p {
    margin-bottom: 0.5rem;
    color: #6c757d;
    font-size: 14px;
}

.upload-placeholder small {
    color: #adb5bd;
    font-size: 13px;
}
