/* Custom styles for USA Secreta */
:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-color: #f8f9fa;
    --dark-color: #343a40;
    --text-light: #ffffff;
    --text-dark: #212529;
    --bg-dark: #1a1a1a;
    --bg-darker: #0d1117;
    --border-color: #30363d;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: var(--bg-darker);
    color: var(--text-light);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.full-height {
    height: 100vh;
    min-height: 100vh;
}

#door {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    background-size: cover;
    background-position: center;
    background-blend-mode: overlay;
    color: var(--text-light);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 100vh;
}

.door-content {
    z-index: 2;
    position: relative;
    max-width: 600px;
    padding: 2rem;
}

.door-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    background: linear-gradient(45deg, #ff6b6b, #4ecdc4, #45b7d1, #96ceb4);
    background-size: 400% 400%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease-in-out infinite;
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.door-subtitle {
    font-size: 1.5rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.enter-button {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    color: white;
    padding: 15px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.enter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.4);
    background: linear-gradient(45deg, #0056b3, #004085);
}

.enter-button:active {
    transform: translateY(0);
}

#pano {
    height: 100vh;
    width: 100%;
    position: relative;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-color);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    color: var(--text-light);
}

#sidebar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(26, 26, 26, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--border-color);
    z-index: 1000;
    overflow-y: auto;
    padding: 1rem;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

#sidebar.show {
    transform: translateY(0);
    display: block;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-light);
    margin: 0;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.close-btn:hover {
    background-color: var(--border-color);
}

.sidebar-content {
    color: var(--text-light);
}

.sidebar-section {
    margin-bottom: 1rem;
}

.sidebar-section h6 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.sidebar-section h6 i {
    margin-right: 0.5rem;
}

.form-check {
    margin-bottom: 0.75rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.form-check-label:hover {
    opacity: 0.8;
}

.form-select {
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
}

.form-select:focus {
    background-color: var(--bg-dark);
    border-color: var(--primary-color);
    color: var(--text-light);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn-primary {
    background: linear-gradient(45deg, #007bff, #0056b3);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #0056b3, #004085);
    transform: translateY(-1px);
}

.btn-secondary {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(45deg, #28a745, #1e7e34);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-success:hover {
    background: linear-gradient(45deg, #1e7e34, #155724);
    transform: translateY(-1px);
}

.btn-danger {
    background: linear-gradient(45deg, #dc3545, #c82333);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-danger:hover {
    background: linear-gradient(45deg, #c82333, #bd2130);
    transform: translateY(-1px);
}

.btn-warning {
    background: linear-gradient(45deg, #ffc107, #e0a800);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    color: #212529;
}

.btn-warning:hover {
    background: linear-gradient(45deg, #e0a800, #d39e00);
    transform: translateY(-1px);
    color: #212529;
}

.btn-info {
    background: linear-gradient(45deg, #17a2b8, #138496);
    border: none;
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-info:hover {
    background: linear-gradient(45deg, #138496, #117a8b);
    transform: translateY(-1px);
}

.alert {
    border-radius: 8px;
    border: none;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda, #c3e6cb);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da, #f5c6cb);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

.alert-warning {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-info {
    background: linear-gradient(135deg, #d1ecf1, #bee5eb);
    color: #0c5460;
    border-left: 4px solid #17a2b8;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.slide-in-right {
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

.collapse {
    display: none !important;
}

.show {
    display: block !important;
}

/* Language buttons */
.lang-btn {
    background: linear-gradient(45deg, #6c757d, #5a6268);
    border: none;
    color: white;
    padding: 0.5rem 1rem;
    margin: 0.25rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.lang-btn:hover {
    background: linear-gradient(45deg, #5a6268, #495057);
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
}

.lang-btn.active {
    background: linear-gradient(45deg, #007bff, #0056b3);
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* Responsive design */
@media (max-width: 768px) {
    .door-title {
        font-size: 2.5rem;
    }
    
    .door-subtitle {
        font-size: 1.2rem;
    }
    
    .enter-button {
        padding: 12px 24px;
        font-size: 1rem;
    }
    
    #sidebar {
        height: 150px;
    }
    
    .sidebar-section h6 {
        font-size: 1rem;
    }
    
    .sidebar-header {
        margin-bottom: 0.5rem;
    }
    
    .sidebar-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .door-content {
        padding: 1rem;
    }
    
    .door-title {
        font-size: 2rem;
    }
    
    .door-subtitle {
        font-size: 1rem;
    }
    
    .enter-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

/* Modal Styling */
.modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2c3e50 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    overflow: hidden;
}

.modal-header {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #007bff, #17a2b8, #28a745, #ffc107, #dc3545);
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    margin: 0;
}

.modal-title i {
    color: #007bff;
    text-shadow: 0 0 10px rgba(0, 123, 255, 0.3);
}

.btn-close {
    background: rgba(220, 53, 69, 0.2);
    border: 2px solid rgba(220, 53, 69, 0.4);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    opacity: 0.9;
    transition: all 0.3s ease;
    color: #dc3545;
}

.btn-close:hover {
    background: rgba(220, 53, 69, 0.3);
    border-color: #dc3545;
    opacity: 1;
    transform: scale(1.1);
    box-shadow: 0 0 15px rgba(220, 53, 69, 0.4);
}

.btn-close:focus {
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.btn-close::before,
.btn-close::after {
    background-color: #dc3545;
    box-shadow: 0 0 3px rgba(220, 53, 69, 0.5);
}

.modal-body {
    padding: 2rem;
    background: rgba(255, 255, 255, 0.02);
}

.modal-footer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 2rem;
}

/* Section Headers */
.modal-body h6 {
    color: #ffffff;
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.3);
    position: relative;
}

.modal-body h6 i {
    color: #007bff;
    margin-right: 0.5rem;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
}

/* Language Buttons */
.modal-body .btn-outline-primary {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid rgba(0, 123, 255, 0.3);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-body .btn-outline-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.modal-body .btn-outline-primary:hover {
    background: rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
}

.modal-body .btn-outline-primary:hover::before {
    left: 100%;
}

.modal-body .btn-outline-primary img {
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Category Button Styling */
.category-option {
    position: relative;
}

.category-option .form-check-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.category-btn {
    background: rgba(0, 123, 255, 0.1);
    border: 2px solid rgba(0, 123, 255, 0.3);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    text-decoration: none;
    min-width: 120px;
    justify-content: center;
}

.category-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.category-btn:hover {
    background: rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.3);
    text-decoration: none;
}

.category-btn:hover::before {
    left: 100%;
}

.category-btn i {
    color: #007bff;
    text-shadow: 0 0 5px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

/* Selected state */
.category-option .form-check-input:checked + .category-btn {
    background: linear-gradient(45deg, #007bff, #17a2b8);
    border-color: #007bff;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(0, 123, 255, 0.4);
    transform: translateY(-2px);
}

.category-option .form-check-input:checked + .category-btn i {
    color: #ffffff;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

/* Custom color support for categories */
.category-btn[style*="--category-color"] {
    --category-color: #007bff;
    border-color: var(--category-color);
    background: rgba(var(--category-color-rgb, 0, 123, 255), 0.1);
}

.category-btn[style*="--category-color"]:hover {
    background: rgba(var(--category-color-rgb, 0, 123, 255), 0.2);
    border-color: var(--category-color);
    box-shadow: 0 5px 15px rgba(var(--category-color-rgb, 0, 123, 255), 0.3);
}

.category-btn[style*="--category-color"] i {
    color: var(--category-color);
}

.category-option .form-check-input:checked + .category-btn[style*="--category-color"] {
    background: linear-gradient(45deg, var(--category-color), var(--category-color));
    border-color: var(--category-color);
    box-shadow: 0 5px 15px rgba(var(--category-color-rgb, 0, 123, 255), 0.4);
}

/* Focus state */
.category-option .form-check-input:focus + .category-btn {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .category-btn {
        min-width: 100px;
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}

/* Select Dropdown */
.form-select {
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-radius: 12px;
    padding: 0.75rem 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.form-select:focus {
    background: rgba(255, 255, 255, 0.1);
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    color: #ffffff;
}

.form-select option {
    background: #1a1a1a;
    color: #ffffff;
    padding: 0.5rem;
}

/* Info Lists */
.modal-body .list-unstyled li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.modal-body .list-unstyled li:hover {
    background: rgba(255, 255, 255, 0.02);
    padding-left: 1rem;
    border-radius: 8px;
}

.modal-body .list-unstyled li i {
    color: #007bff;
    width: 20px;
    text-align: center;
}

/* Text Content */
.modal-body p {
    color: #b0b0b0;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.modal-body .text-muted {
    color: #888888 !important;
}

/* Footer Buttons */
.modal-footer .btn {
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.modal-footer .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.modal-footer .btn:hover::before {
    left: 100%;
}

.modal-footer .btn-outline-secondary {
    background: rgba(108, 117, 125, 0.1);
    border: 2px solid rgba(108, 117, 125, 0.3);
    color: #ffffff;
}

.modal-footer .btn-outline-secondary:hover {
    background: rgba(108, 117, 125, 0.2);
    border-color: #6c757d;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(108, 117, 125, 0.3);
}

.modal-footer .btn-outline-info {
    background: rgba(23, 162, 184, 0.1);
    border: 2px solid rgba(23, 162, 184, 0.3);
    color: #ffffff;
}

.modal-footer .btn-outline-info:hover {
    background: rgba(23, 162, 184, 0.2);
    border-color: #17a2b8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(23, 162, 184, 0.3);
}

/* Responsive Design */
@media (max-width: 768px) {
    .modal-dialog {
        margin: 1rem;
    }
    
    .modal-header,
    .modal-body,
    .modal-footer {
        padding: 1rem;
    }
    
    .modal-title {
        font-size: 1.25rem;
    }
    
    .modal-body .btn-outline-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
    
    .modal-body .col-md-3 {
        margin-bottom: 1rem;
    }
}

/* Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal.fade .modal-dialog {
    animation: modalSlideIn 0.3s ease-out;
}

/* Help Button Styling */
.btn-outline-warning {
    background: rgba(255, 193, 7, 0.1);
    border: 2px solid rgba(255, 193, 7, 0.3);
    color: #ffc107;
    transition: all 0.3s ease;
}

.btn-outline-warning:hover {
    background: rgba(255, 193, 7, 0.2);
    border-color: #ffc107;
    color: #ffc107;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 193, 7, 0.3);
}

.btn-outline-warning i {
    color: #ffc107;
    text-shadow: 0 0 5px rgba(255, 193, 7, 0.3);
    transition: all 0.3s ease;
}

.btn-outline-warning:hover i {
    color: #ffc107;
    text-shadow: 0 0 8px rgba(255, 193, 7, 0.5);
}
