/* 
 * Aviar Background and Transparency Styles
 * Default Image Background Implementation
 */

/* Video Background */
body {
    position: relative;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

#background-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: -2;
    object-fit: cover;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.92);
    z-index: -1;
    pointer-events: none;
}

/* Transparent DataTable and Cards */
.table-responsive {
    background-color: transparent !important;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

.dataTables_wrapper {
    background-color: transparent !important;
    padding: 15px;
    border-radius: 8px;
    backdrop-filter: blur(3px);
}

table.dataTable {
    background-color: transparent !important;
}

table.dataTable tbody tr {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

table.dataTable tbody tr:hover {
    background-color: rgba(230, 247, 255, 0.4) !important;
}

table.dataTable tbody tr.odd {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

table.dataTable tbody tr.even {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

table.dataTable thead th {
    background-color: rgba(240, 240, 240, 0.3) !important;
}

/* Override Bootstrap table striped */
.table-striped > tbody > tr:nth-of-type(odd) {
    background-color: rgba(255, 255, 255, 0.15) !important;
}

.table-striped > tbody > tr:nth-of-type(even) {
    background-color: rgba(255, 255, 255, 0.25) !important;
}

/* DataTables specific overrides */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_paginate {
    background-color: transparent !important;
}

div.dataTables_wrapper div.dataTables_length select,
div.dataTables_wrapper div.dataTables_filter input {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

.card {
    background-color: transparent !important;
    backdrop-filter: blur(3px);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.card-body {
    background-color: transparent !important;
}

.card-header {
    background-color: rgba(13, 110, 253, 0.7) !important;
    backdrop-filter: blur(5px);
}

.chart-container {
    background-color: transparent !important;
    border-radius: 8px;
    padding: 15px;
    backdrop-filter: blur(3px);
}

canvas {
    background-color: transparent !important;
}

/* Modal transparency */
.modal-content {
    background-color: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.modal-body {
    background-color: rgba(255, 255, 255, 0.85) !important;
}

/* Container and sections */
.container {
    background-color: transparent !important;
}

/* Additional transparent elements */
.bg-light {
    background-color: rgba(248, 249, 250, 0.7) !important;
}

.bg-white {
    background-color: rgba(255, 255, 255, 0.7) !important;
}

/* Form controls transparency */
.form-control, .form-select {
    background-color: rgba(255, 255, 255, 0.8) !important;
}

/* Alert boxes */
.alert {
    background-color: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(5px);
}

/* Full Screen Hero Section */
.hero-fullscreen {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.hero-fullscreen #hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    z-index: 0;
    object-fit: cover;
}

.hero-fullscreen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.hero-fullscreen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(0, 0, 0, 0.3) 100%);
    z-index: 2;
}

/* Navigation Buttons at Top */
.hero-nav {
    position: absolute;
    top: 30px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    padding: 0 50px;
}

/* Hero Content - Centered */
.hero-content {
    position: relative;
    z-index: 5;
    text-align: center;
    animation: fadeInUp 1s ease-out;
}

.hero-logo-container {
    text-align: center;
}

.hero-logo-large {
    height: 150px;
    width: auto;
    max-width: 700px;
    object-fit: contain;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
    animation: logoFloat 3s ease-in-out infinite;
}

.hero-title {
    color: white;
    font-size: 42px;
    font-weight: 700;
    margin-top: 30px;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    letter-spacing: 1px;
}

.hero-subtitle {
    color: rgba(255, 255, 255, 0.95);
    font-size: 20px;
    font-weight: 300;
    margin-top: 15px;
    letter-spacing: 1px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
    animation: bounce 2s infinite;
    cursor: pointer;
}

.scroll-indicator i {
    font-size: 24px;
    margin-bottom: 8px;
}

.scroll-indicator span {
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-btn {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    color: white;
    padding: 12px 24px;
    font-size: 15px;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.hero-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    color: white;
}

.hero-btn i {
    font-size: 16px;
}

.hero-btn-text {
    display: inline-block;
}

/* Hero Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Responsive Full Screen Hero */
@media (max-width: 1024px) {
    .hero-logo-large {
        height: 120px;
        max-width: 500px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
}

@media (max-width: 768px) {
    .hero-nav {
        padding: 0 30px;
    }
    
    .hero-logo-large {
        height: 100px;
        max-width: 400px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .hero-btn-text {
        display: none;
    }
    
    .hero-btn i {
        margin: 0 !important;
    }
    
    .scroll-indicator span {
        font-size: 12px;
    }
}

@media (max-width: 576px) {
    .hero-nav {
        padding: 0 20px;
    }
    
    .hero-logo-large {
        height: 80px;
        max-width: 300px;
    }
    
    .hero-title {
        font-size: 24px;
    }
    
    .hero-subtitle {
        font-size: 14px;
    }
    
    .hero-btn {
        padding: 8px 12px;
    }
    
    .scroll-indicator {
        bottom: 30px;
    }
}

