/* Custom styles for EVA Voice Assistant */

/* Modern color scheme for EVA - based on logo gradient */
:root {
    --eva-primary: #4a6cf7; /* Blue from logo */
    --eva-primary-dark: #3a56d6;
    --eva-secondary: #6c757d;
    --eva-success: #28a745;
    --eva-info: #17a2b8;
    --eva-warning: #ffc107;
    --eva-danger: #dc3545;
    --eva-dark: #343a40;
    --eva-light: #f8f9fa;
    --eva-gradient: linear-gradient(135deg, #4a6cf7, #6a11cb); /* Blue to purple gradient from logo */
    --eva-logo-gradient: linear-gradient(135deg, #5e17eb, #4a6cf7); /* Purple to blue for logo elements */
    --eva-microphone-color: #c8c8c8; /* Microphone icon color */
    --eva-microphone-highlight: #e0e0e0; /* Microphone highlight color */
}

body {
    background: var(--eva-gradient);
    background-attachment: fixed;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    padding-bottom: 60px;
    color: white;
}

.container {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* Ensure dropdowns are not clipped */
    overflow: visible;
    position: relative;
}

.navbar {
    background: var(--eva-gradient) !important;
    border-radius: 0 0 10px 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    z-index: 1050; /* Ensure navbar stays above other elements */
}

.navbar-nav {
    align-items: center; /* Align all nav items properly */
    flex-wrap: wrap; /* Allow wrapping for longer text */
}

.nav-item {
    padding: 0.5rem 0.5rem; /* Add consistent padding */
    white-space: nowrap; /* Prevent text wrapping within nav items */
    flex-shrink: 0; /* Prevent shrinking of nav items */
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap; /* Prevent wrapping */
}

.nav-link {
    color: white !important;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    padding: 0.5rem 0.75rem; /* Add consistent padding */
    white-space: nowrap; /* Prevent text wrapping */
}

.nav-link:hover {
    text-decoration: underline;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--eva-primary);
    border-color: var(--eva-primary);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: var(--eva-primary-dark);
    border-color: var(--eva-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    background-color: var(--eva-secondary);
    border-color: var(--eva-secondary);
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #5a6268;
    border-color: #545b62;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.card-body {
    color: #333;
}

.card-title {
    color: #333;
}

.card-header {
    background: var(--eva-gradient);
    color: white;
    font-weight: 600;
    border: none;
    padding: 15px 20px;
}

.jumbotron {
    padding: 3rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, #6a11cb 0%, #4a6cf7 100%);
    color: white;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.eva-header {
    background: var(--eva-logo-gradient);
    padding: 30px 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.jumbotron h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.form-control {
    border-radius: 8px;
    padding: 10px 15px;
    border: 2px solid #e1e5f2;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-control:focus {
    border-color: var(--eva-primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 108, 247, 0.25);
    color: #333;
}

.table {
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(5px);
}

.table th {
    background-color: var(--eva-primary);
    color: white;
    font-weight: 600;
    border: none;
}

.table td {
    border-top: 1px solid #e1e5f2;
    color: #333;
}

.table th {
    color: white;
}

footer {
    background: var(--eva-gradient);
    color: white;
    padding: 20px 0;
    margin-top: auto;
    border-radius: 10px 10px 0 0;
    text-align: center;
    position: relative;
    bottom: 0;
    width: 100%;
}

footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

footer a:hover {
    color: white;
    text-decoration: underline;
}

/* Custom styling for admin panel */
.admin-panel {
    background: linear-gradient(135deg, #6a11cb 0%, #4a6cf7 100%);
    padding: 25px;
    border-radius: 15px;
    color: white;
}

/* Animation for page elements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animated {
    animation: fadeInUp 0.6s ease forwards;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        margin: 10px;
    }
    
    .jumbotron {
        padding: 2rem 1rem;
    }
    
    .navbar-brand {
        font-size: 1.2rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    /* Ensure dropdowns work properly on mobile */
    .dropdown-menu {
        position: absolute !important;
        max-height: 200px;
        overflow-y: auto;
    }
}

/* Additional EVA-specific styling */
.eva-logo {
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.eva-badge {
    background: var(--eva-gradient);
    color: white;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

/* Microphone-inspired styling */
.microphone-icon {
    display: inline-block;
    width: 20px;
    height: 25px;
    background: var(--eva-microphone-color);
    border-radius: 50% 50% 0 0;
    position: relative;
    margin-right: 5px;
}

.microphone-icon::before {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 8px;
    height: 12px;
    background: var(--eva-microphone-color);
    border-radius: 4px;
}

.microphone-icon::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 12px;
    height: 4px;
    background: var(--eva-microphone-highlight);
    border-radius: 2px;
}

/* EVA Logo-inspired cards */
.eva-card {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.05), rgba(106, 17, 203, 0.05));
    border: 1px solid rgba(74, 108, 247, 0.1);
    transition: all 0.3s ease;
}

.eva-card:hover {
    background: linear-gradient(135deg, rgba(74, 108, 247, 0.1), rgba(106, 17, 203, 0.1));
    border: 1px solid rgba(74, 108, 247, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

/* EVA Logo-inspired buttons */
.btn-eve {
    background: var(--eva-logo-gradient);
    border: none;
    color: white;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-eve:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(74, 108, 247, 0.4);
    color: white;
}

.btn-eve:active {
    transform: translateY(-1px);
}

/* EVA Logo-inspired header */
.eva-header {
    background: var(--eva-logo-gradient);
    padding: 30px 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.eva-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    animation: rotate 10s linear infinite;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Dropdown menu fixes */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-height: 300px;
    overflow-y: auto;
    z-index: 1060; /* Ensure dropdown appears above other elements */
    position: absolute !important; /* Override Bootstrap's positioning */
    min-width: 12rem; /* Ensure minimum width for longer text */
}

.dropdown-item {
    color: #333;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: var(--eva-primary);
    color: white;
}

/* About page styling */
.about-content {
    line-height: 1.8;
    font-size: 1.1rem;
}

.about-content h2 {
    color: white;
    margin-top: 2rem;
    border-bottom: 2px solid var(--eva-primary);
    padding-bottom: 0.5rem;
}

.about-content h3 {
    color: white;
    margin-top: 1.5rem;
}

.about-content ul {
    padding-left: 1.5rem;
}

.about-content li {
    margin-bottom: 0.5rem;
}

/* License key styling for better readability */
.license-key {
    font-family: monospace;
    font-size: 0.85rem;
    word-break: break-all;
    white-space: normal;
    max-width: 200px;
    overflow-wrap: break-word;
}

/* Logo-inspired footer */
.eva-footer {
    background: var(--eva-logo-gradient);
    color: white;
    padding: 30px 0;
    margin-top: auto;
    text-align: center;
    border-radius: 15px 15px 0 0;
}

/* Legal links styling */
.legal-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.legal-link {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.legal-link:hover {
    color: white;
    text-decoration: underline;
}

.divider {
    color: rgba(255, 255, 255, 0.5);
    margin: 0 5px;
}

/* Cookie consent popup styles */
.cookie-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.cookie-popup {
    background: white;
    border-radius: 10px;
    padding: 25px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    color: #333;
}

.cookie-content h3 {
    margin-top: 0;
    color: #4a6cf7;
    font-size: 1.3rem;
}

.cookie-content ul {
    padding-left: 20px;
    margin: 15px 0;
}

.cookie-content li {
    margin-bottom: 8px;
}

.cookie-content a {
    color: #4a6cf7;
    text-decoration: none;
}

.cookie-content a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: 15px;
    margin-top: 20px;
    justify-content: flex-end;
}

.cookie-buttons .btn {
    padding: 8px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: #4a6cf7;
    color: white;
}

.btn-primary:hover {
    background-color: #3a56d6;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
    transform: translateY(-2px);
}