/* Dark Glass Theme Styles */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

body {
    min-height: 100vh;
    background: linear-gradient(135deg, #0a1929 0%, #1a2332 25%, #0f1b2e 50%, #1e3a5f 75%, #0d1b2a 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    padding-bottom: 40px;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(30, 58, 95, 0.3) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(26, 35, 50, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(15, 27, 46, 0.2) 0%, transparent 70%);
    background-size: 100% 100%, 100% 100%, 100% 100%;
    pointer-events: none;
    z-index: 0;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

body.public-page {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

body > * {
    position: relative;
    z-index: 1;
}

.logo-background {
    position: fixed;
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 0;
    opacity: 0.4;
    pointer-events: none;
    width: 100%;
    max-width: 700px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-background .logo-image {
    max-width: 100%;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.bottom-right-image {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    pointer-events: none;
}

.bottom-right-image .placeholder-image {
    max-width: 500px;
    width: auto;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.4));
    opacity: 0.9;
}

@media (max-width: 768px) {
    .bottom-right-image {
        bottom: 10px;
        right: 10px;
    }
    
    .bottom-right-image .placeholder-image {
        max-width: 500px;
    }
}

.navbar {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px 0 rgba(31, 38, 135, 0.2);
}

.navbar-brand, .navbar-nav .nav-link, .navbar-text {
    color: #ffffff !important;
}

.navbar-brand:hover, .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.8) !important;
}

.navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}

.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%28255, 255, 255, 1%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    padding: 40px;
    margin-top: 20px;
    color: #ffffff;
}

.glass-container.public-container {
    width: 100%;
    max-width: 1200px;
    margin-top: 0;
}

.glass-container h2, .glass-container h4 {
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.glass-container .form-control,
.glass-container .form-select {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(5px);
}

.glass-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.glass-container .form-control:focus,
.glass-container .form-select:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.glass-container .form-label {
    color: #ffffff;
}

.glass-container .btn-primary {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.glass-container .btn-primary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: #ffffff;
}

.glass-container .btn-outline-primary {
    border-color: rgba(100, 150, 255, 0.9);
    color: rgba(150, 200, 255, 1);
    background: rgba(100, 150, 255, 0.25);
    font-weight: 500;
}

.glass-container .btn-outline-primary:hover {
    background: rgba(100, 150, 255, 0.5);
    border-color: rgba(100, 150, 255, 1);
    color: #ffffff;
}

.glass-container .btn-outline-secondary {
    border-color: rgba(255, 255, 255, 0.6);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.15);
}

.glass-container .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.glass-container .btn-outline-danger {
    border-color: rgba(220, 53, 69, 1);
    color: rgba(255, 180, 180, 1);
    background: rgba(220, 53, 69, 0.35);
    font-weight: 500;
}

.glass-container .btn-outline-danger:hover {
    background: rgba(220, 53, 69, 0.6);
    border-color: rgba(220, 53, 69, 1);
    color: #ffffff;
}

.glass-container .btn-danger {
    background: rgba(220, 53, 69, 0.3);
    border-color: rgba(220, 53, 69, 0.5);
    color: #ffffff;
}

.glass-container .btn-danger:hover {
    background: rgba(220, 53, 69, 0.5);
    border-color: rgba(220, 53, 69, 0.7);
}

.glass-container .table {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    border-bottom: none;
    font-size: clamp(1rem, 2vw, 1.25rem);
    width: 100%;
}

.glass-container .table-responsive {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.glass-container .table-responsive {
    border-bottom: none;
}

.glass-container .table tbody td.table-cell {
    color: #ffffff;
    font-size: clamp(1rem, 2.5vw, 1.4rem);
    line-height: 1.6;
    padding: 24px 16px;
}

.glass-container .table thead {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.4) 0%, rgba(15, 27, 46, 0.4) 100%);
    backdrop-filter: blur(8px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.glass-container .table thead th.table-header {
    border-bottom: none;
    color: #a8d5ff;
    font-weight: 600;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    text-transform: none;
    letter-spacing: 0.3px;
    padding: 24px 16px;
    text-align: left;
    background: transparent;
    position: relative;
}

.glass-container .table thead th.table-header::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 12px;
    right: 12px;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(168, 213, 255, 0.5), transparent);
}

.glass-container .table tbody tr.table-row {
    transition: all 0.2s ease;
}

.glass-container .table tbody tr.table-row:not(:last-child) {
    border-bottom: 2px solid rgba(255, 255, 255, 0.08);
}

.glass-container .table tbody tr.table-row:last-child {
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.glass-container .table tbody tr.table-row:hover {
    transform: translateX(2px);
}

.glass-container .table tbody td.table-cell {
    border-right: 1px solid rgba(255, 255, 255, 0.3);
    border-left: 1px solid rgba(255, 255, 255, 0.3);
    padding: 16px 12px;
    vertical-align: middle;
    background: rgba(255, 255, 255, 0.1);
}

.glass-container .table tbody td.table-cell:first-child {
    border-left: none;
}

.glass-container .table tbody td.table-cell:last-child {
    border-right: none;
}

.glass-container .table thead th.table-header {
    border-right: 1px solid rgba(168, 213, 255, 0.4);
    border-left: 1px solid rgba(168, 213, 255, 0.4);
}

.glass-container .table thead th.table-header:first-child {
    border-left: none;
}

.glass-container .table thead th.table-header:last-child {
    border-right: none;
}

.glass-container .table tbody tr.table-row:hover td.table-cell {
    background: rgba(255, 255, 255, 0.15);
}

.glass-container .card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
}

.glass-container .card-header {
    background: rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.glass-container .alert {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: #ffffff;
    backdrop-filter: blur(5px);
}

.glass-container .alert-danger {
    background: rgba(220, 53, 69, 0.2);
    border-color: rgba(220, 53, 69, 0.4);
}

.glass-container .alert-success {
    background: rgba(25, 135, 84, 0.2);
    border-color: rgba(25, 135, 84, 0.4);
}

.glass-container .alert-warning {
    background: rgba(255, 193, 7, 0.2);
    border-color: rgba(255, 193, 7, 0.4);
}

.glass-container .alert-info {
    background: rgba(13, 202, 240, 0.2);
    border-color: rgba(13, 202, 240, 0.4);
}

.glass-container .badge {
    color: #ffffff;
}

.glass-container .badge.bg-danger {
    background-color: rgba(220, 53, 69, 0.6) !important;
}

.glass-container .badge.bg-secondary {
    background-color: rgba(108, 117, 125, 0.6) !important;
}

.glass-container .badge.bg-info {
    background-color: rgba(13, 202, 240, 0.6) !important;
}
