/* Biography Creator - Main Styles */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', sans-serif;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 50%, #F093FB 100%);
    min-height: 100vh;
    padding: 2rem 1rem;
    color: #1E293B;
    position: relative;
    overflow-x: hidden;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

/* Card Hover Effects */
.hover-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.hover-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2) !important;
}

/* Video Preview */
#preview {
    max-width: 100%;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    background-color: #000;
}

/* Recording Indicator Animation */
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.recording {
    animation: pulse 2s infinite;
}

/* Progress Bar Custom */
.progress {
    height: 30px;
    font-size: 14px;
    font-weight: bold;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-lg {
    padding: 15px 30px;
    font-size: 18px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Card Styles */
.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
}

.shadow {
    box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
}

.shadow-lg {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15) !important;
}

/* Form Enhancements */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Navbar */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-size: 24px;
    font-weight: bold;
}

/* Biography Content */
.biography-content {
    font-size: 1.1em;
    line-height: 1.8;
    color: #333;
}

.biography-content p {
    margin-bottom: 1.5em;
}

/* Accordion Enhancements */
.accordion-button {
    font-weight: 500;
    background-color: #f8f9fa;
}

.accordion-button:not(.collapsed) {
    background-color: #667eea;
    color: white;
}

.accordion-body {
    padding: 20px;
}

/* Video Controls */
video {
    max-width: 100%;
    height: auto;
}

/* Table Styling */
.table {
    background-color: white;
}

.table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-top: none;
}

/* Badge Enhancements */
.badge {
    padding: 6px 12px;
    font-weight: 500;
    border-radius: 6px;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Footer */
footer {
    margin-top: auto;
}

/* Alert Styling */
.alert {
    border-radius: 8px;
    border: none;
}

/* Style Selection Cards */
.style-card {
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.style-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.style-card.selected {
    border: 3px solid #0d6efd;
    background-color: #e7f3ff;
}

/* Responsive Video Container */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Recording Indicator */
.recording-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: bold;
    display: none;
    z-index: 10;
}

.recording-indicator.recording {
    display: block;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .hero-section {
        padding: 30px 0 !important;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .btn-lg {
        padding: 12px 24px;
        font-size: 16px;
    }
    
    .card-body {
        padding: 20px;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .accordion-button,
    .no-print {
        display: none !important;
    }
    
    .card {
        border: 1px solid #ddd;
        box-shadow: none !important;
    }
    
    .biography-content {
        font-size: 12pt;
        line-height: 1.6;
    }
    
    video {
        display: none;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Utility Classes */
.text-justify {
    text-align: justify;
}

.cursor-pointer {
    cursor: pointer;
}

.border-dashed {
    border-style: dashed !important;
}

/* Success/Error Messages */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-danger {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffeeba;
    color: #856404;
}