/* BBB 40th Anniversary Theme */

/* Default dark background to prevent white flash during load */
html, body {
    background: #0a0a0a !important;
}

/* Admin/login pages get white background via MudLayout */
.mud-layout {
    background: #ffffff !important;
    min-height: 100vh;
}

.mud-main-content {
    background: #ffffff !important;
}

/* Public pages with clanstvo-background use transparent layout */
body:has(.clanstvo-background) .mud-layout,
body:has(.clanstvo-background) .mud-main-content {
    background: transparent !important;
}

/* Font Faces */
@font-face {
    font-family: 'NTF Grand';
    src: url('../fonts/NTF-Grand-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue Pro';
    src: url('../fonts/BebasNeuePro-SemiExpBold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Bebas Neue Pro';
    src: url('../fonts/BebasNeuePro-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Background Container */
.clanstvo-background {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    min-height: 100vh;
    width: 100%;
    background-image: url('../images/mobile_bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow-y: auto;
}

@media (min-width: 768px) {
    .clanstvo-background {
        background-image: url('../images/desktop_bg.jpg');
    }
}

/* Main Container */
.clanstvo-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px 100px;
    box-sizing: border-box;
}

/* Logo */
.clanstvo-logo {
    width: 200px;
    height: auto;
    margin-bottom: -70px;
    position: relative;
    z-index: 10;
}

@media (min-width: 768px) {
    .clanstvo-logo {
        width: 260px;
        margin-bottom: -90px;
    }
}

/* Language Switcher */
.clanstvo-language-switcher {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
    z-index: 100;
}

.clanstvo-lang-btn {
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, transform 0.2s;
    border: none;
    background: none;
    padding: 0;
}

.clanstvo-lang-btn:hover,
.clanstvo-lang-btn.active {
    opacity: 1;
    transform: scale(1.1);
}

.clanstvo-lang-btn img {
    width: 32px;
    height: 22px;
    border-radius: 2px;
    display: block;
}

/* Card */
.clanstvo-card {
    background: rgba(10, 25, 47, 0.85);
    border-radius: 16px;
    padding: 50px 20px 32px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    outline: none;
}

@media (min-width: 768px) {
    .clanstvo-card {
        padding: 60px 40px 40px;
    }
}

/* Compact card for success page */
.clanstvo-card.clanstvo-card-compact {
    padding: 20px 16px 24px;
}

@media (min-width: 768px) {
    .clanstvo-card.clanstvo-card-compact {
        padding: 24px 32px 28px;
    }
}

/* Title */
.clanstvo-title {
    font-family: 'NTF Grand', sans-serif;
    font-weight: 900;
    font-size: 28px;
    color: white;
    text-align: center;
    margin: 0 0 24px 0;
    letter-spacing: 1px;
    text-transform: uppercase;
    outline: none;
    border: none;
}

@media (min-width: 768px) {
    .clanstvo-title {
        font-size: 32px;
        margin-bottom: 28px;
    }
}

/* Form Row */
.clanstvo-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    gap: 12px;
}

.clanstvo-label {
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    min-width: 130px;
    flex-shrink: 0;
}

@media (min-width: 768px) {
    .clanstvo-label {
        font-size: 18px;
        min-width: 150px;
    }
}

/* Input Fields */
.clanstvo-input-wrapper {
    flex: 1;
}

.clanstvo-input,
.clanstvo-select {
    width: 100%;
    padding: 10px 14px;
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    outline: none;
    box-sizing: border-box;
}

.clanstvo-input:focus,
.clanstvo-select:focus {
    box-shadow: 0 0 0 2px #1976d2;
}

.clanstvo-input::placeholder {
    color: #999;
}

.clanstvo-input.error,
.clanstvo-select.error {
    box-shadow: 0 0 0 2px #f44336;
}

.clanstvo-error-text {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 4px;
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 400;
}

/* Select styling */
.clanstvo-select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

/* Captcha Container */
.clanstvo-captcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Submit Button */
.clanstvo-submit-btn {
    display: block;
    width: 200px;
    margin: 24px auto 0;
    padding: 12px 24px;
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: white;
    background: #1976d2;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s, transform 0.1s;
}

.clanstvo-submit-btn:hover:not(:disabled) {
    background: #1565c0;
}

.clanstvo-submit-btn:active:not(:disabled) {
    transform: scale(0.98);
}

.clanstvo-submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
    opacity: 0.7;
}

.clanstvo-submit-btn .loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Success Page Specific Styles */
.clanstvo-success-alert {
    background: rgba(46, 125, 50, 0.9);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
}

.clanstvo-success-alert.clanstvo-success-alert-header {
    margin: -20px -16px 20px -16px;
    border-radius: 16px 16px 0 0;
}

@media (min-width: 768px) {
    .clanstvo-success-alert.clanstvo-success-alert-header {
        margin: -24px -32px 20px -32px;
    }
}

.clanstvo-error-alert {
    background: rgba(211, 47, 47, 0.9);
    color: white;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 400;
    font-size: 16px;
}

/* Data Table */
.clanstvo-data-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
}

.clanstvo-data-table tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.clanstvo-data-table tr:last-child {
    border-bottom: none;
}

.clanstvo-data-table td {
    padding: 10px 0;
    font-family: 'Bebas Neue Pro', sans-serif;
    font-size: 15px;
    color: white;
}

.clanstvo-data-table td:first-child {
    font-weight: 700;
    width: 45%;
    padding-right: 12px;
}

.clanstvo-data-table td:last-child {
    font-weight: 400;
}

/* Subtitle */
.clanstvo-subtitle {
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: white;
    text-align: center;
    margin: 24px 0 16px;
}

/* Payment Info */
.clanstvo-payment-text {
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 400;
    font-size: 15px;
    color: white;
    text-align: center;
    margin-bottom: 8px;
}

.clanstvo-payment-text strong {
    font-weight: 700;
}

.clanstvo-price-badge {
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 700;
    font-size: 18px;
    color: #64b5f6;
    text-align: center;
    margin: 16px 0;
}

/* Barcode Container */
.clanstvo-barcode-container {
    display: flex;
    justify-content: center;
    padding: 16px;
    background: white;
    border-radius: 8px;
    margin: 16px 0;
}

.clanstvo-barcode-container img {
    max-width: 100%;
    height: auto;
}

/* Divider */
.clanstvo-divider {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin: 20px 0;
}

/* Important Note */
.clanstvo-note {
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #ffeb3b;
    text-align: center;
    margin: 16px 0;
}

/* Secondary Button */
.clanstvo-secondary-btn {
    display: block;
    width: 200px;
    margin: 20px auto 0;
    padding: 10px 20px;
    font-family: 'Bebas Neue Pro', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: white;
    background: transparent;
    border: 2px solid #1976d2;
    border-radius: 8px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
    text-decoration: none;
    text-align: center;
}

.clanstvo-secondary-btn:hover {
    background: rgba(25, 118, 210, 0.2);
}

/* Loading Spinner (full page) */
.clanstvo-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
}

/* App Loading Screen (for auth transitions) */
.app-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-image: url('../images/mobile_bg.jpg');
    background-size: cover;
    background-position: center;
    background-color: #0a0a0a;
}

@media (min-width: 768px) {
    .app-loading {
        background-image: url('../images/desktop_bg.jpg');
    }
}

.app-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.clanstvo-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid rgba(255,255,255,0.2);
    border-top-color: #1976d2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* MudAutocomplete styling for clanstvo theme */
.clanstvo-mud-autocomplete {
    width: 100%;
}

.clanstvo-mud-autocomplete .mud-input-outlined {
    border-radius: 8px !important;
    background: white !important;
}

.clanstvo-mud-autocomplete .mud-input-slot {
    padding: 10px 14px !important;
    font-family: 'Bebas Neue Pro', sans-serif !important;
    font-weight: 400 !important;
    font-size: 16px !important;
    color: #333 !important;
}

.clanstvo-mud-autocomplete .mud-input {
    font-family: 'Bebas Neue Pro', sans-serif !important;
}

.clanstvo-mud-autocomplete .mud-input-control {
    margin-top: 0 !important;
}

.clanstvo-mud-autocomplete .mud-input-outlined-border {
    border-radius: 8px !important;
    border-color: transparent !important;
}

.clanstvo-mud-autocomplete .mud-input-error .mud-input-outlined-border {
    border-color: #f44336 !important;
    border-width: 2px !important;
}

.clanstvo-mud-autocomplete .mud-input-helper-text {
    color: #ff6b6b !important;
    font-size: 12px !important;
    font-family: 'Bebas Neue Pro', sans-serif !important;
}

/* Icons inside the white input area */
.clanstvo-mud-autocomplete .mud-input-adornment,
.clanstvo-mud-autocomplete .mud-icon-button,
.clanstvo-mud-autocomplete .mud-icon-root {
    color: #666 !important;
}
