/* Bootstrap Icons */
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.10.0/font/bootstrap-icons.css");

:root {
    --primary-color: #3498db;
    --success-color: #2ecc71;
    --warning-color: #f39c12;
    --danger-color: #e74c3c;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --gray-color: #7f8c8d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
    margin: 0;
    padding: 0;
    color: #333;
    line-height: 1.6;
}




/* ===== ENHANCED NAVBAR STYLING ===== */
.navbar {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.navbar.scrolled {
    padding: 8px 0;
    backdrop-filter: blur(10px);
    background: rgba(22, 33, 62, 0.95) !important;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    background: linear-gradient(90deg, #00dbff, #0084ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: translateX(3px);
}

.nav-link {
    position: relative;
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 500;
    margin: 0 10px;
    padding: 8px 12px !important;
    transition: all 0.3s ease;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #00dbff, #0084ff);
    transition: width 0.3s ease;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-2px);
}

.nav-link:hover::before {
    width: 70%;
}

.nav-link.active {
    color: white !important;
}

.nav-link.active::before {
    width: 70%;
}

.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 2px rgba(0, 132, 255, 0.5);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%280, 219, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.main-container {
    max-width: 900px;
    margin: 30px auto;
    padding: 20px;
}

h1, h2, h3, h4 {
    color: var(--dark-color);
}

h1 {
    font-weight: 700;
    margin-bottom: 10px;
}

h2 {
    font-weight: 400;
    font-size: 1.4rem;
    color: var(--gray-color);
    margin-bottom: 30px;
    text-align:center;
}

.permission-note {
    background: #fff8e1;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 25px;
    font-size: 14px;
    border-left: 4px solid #ffc107;
}

.main-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    margin-bottom: 30px;
}

.card-body {
    padding: 30px;
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.form-select, .form-control {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 16px;
}

.form-select:focus, .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

.voice-options {
    margin: 10px 0;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.char-count {
    text-align: right;
    font-size: 0.9rem;
    color: var(--gray-color);
    margin-top: 5px;
}

.btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn:active {
    transform: translateY(0);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background-color: #2980b9;
    border-color: #2980b9;
}

.btn-warning {
    background-color: var(--warning-color);
    border-color: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background-color: #e67e22;
    border-color: #e67e22;
    color: white;
}

.btn-danger {
    background-color: var(--danger-color);
    border-color: var(--danger-color);
}

.btn-danger:hover {
    background-color: #c0392b;
    border-color: #c0392b;
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #27ae60;
    border-color: #27ae60;
}

.form-range::-webkit-slider-thumb {
    background: var(--primary-color);
}

.form-range::-moz-range-thumb {
    background: var(--primary-color);
}

.form-range::-ms-thumb {
    background: var(--primary-color);
}

.alert {
    border-radius: 8px;
    padding: 15px;
}

.audio-preview {
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.info-section {
    margin: 50px 0;
    padding: 30px 0;
    border-top: 1px solid #eee;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.feature {
    text-align: center;
    padding: 25px 20px;
    background: #f8f9fa;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.feature:hover {
    transform: translateY(-5px);
}

.feature i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.feature h4 {
    margin: 15px 0;
    color: var(--dark-color);
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.footer {
    background: var(--dark-color);
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-container {
        padding: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .controls .d-flex {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .feature-grid {
        grid-template-columns: 1fr;
    }
}

/* Animation for status messages */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.alert {
    animation: fadeIn 0.3s ease;
}

/* Custom styling for range inputs */
.form-range {
    height: 20px;
}

.form-range:focus {
    outline: none;
}

.form-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
}

.form-range::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}



/* FAQ Accordion Styles */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
}

.faq-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.1);
}

.faq-question {
    padding: 18px 20px;
    background: #f8f9fa;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.faq-question:hover {
    background: #e9ecef;
}

.faq-question::after {
    content: '+';
    font-size: 1.5rem;
    font-weight: 300;
    transition: all 0.3s ease;
    color: var(--primary-color);
    min-width: 20px;
    text-align: center;
}

.faq-question.active::after {
    content: '-';
    transform: rotate(0deg);
}

.faq-question.active {
    background: var(--primary-color);
    color: white;
}

.faq-question.active::after {
    color: white;
}

.faq-answer {
    padding: 0 20px;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    line-height: 1.6;
}

.faq-answer.show {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 15px;
    color: #555;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin-left: 20px;
    margin-bottom: 15px;
    padding-left: 0;
}

.faq-answer li {
    margin-bottom: 8px;
    line-height: 1.6;
    position: relative;
    padding-left: 10px;
    color: #555;
}

.faq-answer li:before {
    content: "•";
    color: var(--primary-color);
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* FAQ Section Specific Styles */
#faq {
    background: #f8f9fa;
    padding: 40px;
    border-radius: 12px;
    margin: 40px 0;
}

#faq h2 {
    text-align: center;
    margin-bottom: 30px;
    color: var(--dark-color);
    font-weight: 700;
}

/* Responsive FAQ Styles */
@media (max-width: 768px) {
    .faq-question {
        padding: 15px;
        font-size: 1rem;
    }
    
    .faq-answer {
        padding: 0 15px;
    }
    
    .faq-answer.show {
        padding: 15px;
    }
    
    #faq {
        padding: 25px 20px;
        margin: 30px 0;
    }
}

/* Animation for FAQ items */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-answer.show {
    animation: slideDown 0.3s ease;
}

/* FAQ item focus states for accessibility */
.faq-question:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* FAQ numbering style (if needed) */
.faq-question::before {
    content: 'Q: ';
    font-weight: 600;
    color: var(--primary-color);
    margin-right: 5px;
}

.faq-question.active::before {
    color: white;
}

/* Alternative FAQ Style (Compact) */
.faq-compact .faq-item {
    margin-bottom: 10px;
    border-radius: 6px;
}

.faq-compact .faq-question {
    padding: 12px 15px;
    font-size: 1rem;
}

.faq-compact .faq-answer {
    padding: 0 15px;
}

.faq-compact .faq-answer.show {
    padding: 15px;
}

/* FAQ with Icons */
.faq-with-icons .faq-question::before {
    content: '❓';
    margin-right: 10px;
    font-size: 1.2rem;
}

.faq-with-icons .faq-question.active::before {
    content: '💡';
}

/* Dark Theme Support */
@media (prefers-color-scheme: dark) {
    .faq-item {
        border-color: #444;
        background: #2d3748;
    }
    
    .faq-question {
        background: #4a5568;
        color: #e2e8f0;
    }
    
    .faq-question:hover {
        background: #718096;
    }
    
    .faq-answer {
        background: #2d3748;
        color: #e2e8f0;
    }
    
    .faq-answer p,
    .faq-answer li {
        color: #e2e8f0;
    }
}


