:root {
    --turkcell-blue: #002c5f;
    --turkcell-yellow: #ffc900;
    --turkcell-dark-bg: #0b1120;
    --turkcell-card-bg: #151e32;
    --turkcell-text-main: #ffffff;
    --turkcell-text-secondary: #b0c7e0;
    --turkcell-accent-glow: 0 0 15px rgba(255, 201, 0, 0.4);
    --turkcell-border-radius: 12px;
}

body.turkcell-mode {
    background-color: var(--turkcell-dark-bg) !important;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
}

/* Header Styling - Mobile Optimized */
.turkcell-mode #header {
    background: linear-gradient(90deg, var(--turkcell-blue) 0%, #000 100%);
    border-bottom: 2px solid var(--turkcell-yellow);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
    padding: 10px 5px;
    height: auto !important;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.turkcell-mode #logoname span {
    color: white;
    font-weight: 800;
    letter-spacing: 1px;
    font-size: 1.1rem;
}

.turkcell-mode #logoname span#qos {
    color: var(--turkcell-yellow);
}

/* Mobile First - Card/Container Reset */
/* On mobile, we want full width, no "box" look */
@media (max-width: 768px) {
    .turkcell-mode .column {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 0 20px 0 !important;
        border-radius: 0 !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border: none !important;
        padding: 10px !important;
    }

    /* Target specific containers to look like app "Pages" */
    .turkcell-mode #container-1,
    .turkcell-mode #container-4 {
        background: linear-gradient(180deg, var(--turkcell-card-bg) 0%, var(--turkcell-dark-bg) 100%) !important;
        border-radius: 20px !important;
        margin: 15px 10px !important;
        width: calc(100% - 20px) !important;
        padding: 20px !important;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.05) !important;
    }

    .turkcell-mode .column h2 {
        font-size: 1.5rem !important;
        text-align: center;
        margin-bottom: 25px !important;
        border-bottom: none !important;
        color: white !important;
        text-shadow: 0 0 10px rgba(255, 201, 0, 0.3);
    }

    .turkcell-mode .turkcell-5g-badge {
        display: block !important;
        width: fit-content;
        margin: 5px auto !important;
        font-size: 0.9rem !important;
    }

    /* Input Fields - Bigger for touch */
    .turkcell-mode input[type="text"],
    .turkcell-mode input[type="password"],
    .turkcell-mode select {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        font-size: 1.1rem !important;
        margin-bottom: 15px !important;
        background-color: rgba(0, 0, 0, 0.4) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-radius: 12px !important;
    }

    .turkcell-mode input:focus,
    .turkcell-mode select:focus {
        border-color: var(--turkcell-yellow) !important;
        background-color: rgba(0, 0, 0, 0.6) !important;
    }

    /* Buttons - Full Width Bottom Action */
    .turkcell-mode button.gobutton {
        width: 100% !important;
        padding: 18px !important;
        font-size: 1.1rem !important;
        border-radius: 12px !important;
        margin-top: 20px !important;
        background: var(--turkcell-yellow) !important;
        color: #000 !important;
        box-shadow: 0 4px 15px rgba(255, 201, 0, 0.4) !important;
    }

    .turkcell-mode #container-1 table {
        display: block;
        width: 100%;
        margin: 0;
        padding: 0;
    }

    .turkcell-mode #container-1 tbody,
    .turkcell-mode #container-1 tr,
    .turkcell-mode #container-1 th {
        display: block;
        width: 100%;
        text-align: left !important;
        padding: 0 !important;
    }

    .turkcell-mode #container-1 th.labelLarge,
    .turkcell-mode #container-1 div.labelSmall {
        margin-bottom: 5px;
        color: var(--turkcell-text-secondary);
        font-size: 0.9rem;
    }

    .turkcell-mode #container-1 tr {
        margin-bottom: 20px;
    }

    .turkcell-mode input[type="checkbox"] {
        transform: scale(1.5);
        margin-right: 10px;
    }

    .turkcell-mode label {
        font-size: 1rem;
        line-height: 1.5;
    }

    .turkcell-mode .roomnotes {
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Desktop Styles */
@media (min-width: 769px) {
    .turkcell-mode .column {
        background-color: var(--turkcell-card-bg) !important;
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: var(--turkcell-border-radius);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
        backdrop-filter: blur(10px);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .turkcell-mode .column:hover {
        transform: translateY(-2px);
        border-color: var(--turkcell-yellow);
        box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), var(--turkcell-accent-glow);
    }

    .turkcell-mode button.gobutton {
        background: linear-gradient(135deg, var(--turkcell-yellow) 0%, #ffaa00 100%) !important;
        color: #000 !important;
        font-weight: 800 !important;
        border: none !important;
        border-radius: 8px !important;
        text-transform: uppercase;
        padding: 15px !important;
    }

    .turkcell-mode input[type="text"],
    .turkcell-mode input[type="password"],
    .turkcell-mode select {
        padding: 10px !important;
        border-radius: 6px !important;
        background-color: rgba(0, 0, 0, 0.3) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: white !important;
    }
}

/* Helper Classes */
.turkcell-speed-indicator {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, var(--turkcell-blue), var(--turkcell-yellow));
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0.8;
}

.turkcell-5g-badge {
    background: #000;
    border: 1px solid var(--turkcell-yellow);
    color: var(--turkcell-yellow);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 900;
    font-style: italic;
    box-shadow: 0 0 10px rgba(255, 201, 0, 0.2);
    display: inline-block;
    vertical-align: middle;
}

/* ------------------------------------------------ */
/* MOBILE LANDING PAGE OVERLAY (Splash Screen)      */
/* ------------------------------------------------ */

#mobile-landing-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background-color: #001a3d;
    /* Use the actual 5G background image */
    background-image: url('./5g teme.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: none;
    /* Hidden by default on desktop */
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 30px 20px 50px 20px;
    overflow: hidden;
    min-height: 100vh;
    min-height: -webkit-fill-available;
}

/* Show only on Mobile */
@media (max-width: 768px) {
    #mobile-landing-overlay {
        display: flex !important;
    }

    /* Hide main content when overlay is active */
    body.turkcell-mode.landing-active {
        overflow: hidden;
    }

    body.turkcell-mode.landing-active #mainmenu,
    body.turkcell-mode.landing-active #header {
        display: none !important;
    }
}

/* Landing Logo Area */
.landing-logo {
    text-align: center;
    margin-top: 80px;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.landing-logo .turkcell-logo-text {
    font-size: 2rem;
    font-weight: 800;
    color: white;
    letter-spacing: 1.5px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.landing-logo .turkcell-icon {
    width: 35px;
    height: 35px;
    background: var(--turkcell-yellow);
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.landing-logo .turkcell-icon::after {
    content: '';
    position: absolute;
    top: 6px;
    left: 9px;
    width: 11px;
    height: 16px;
    border-radius: 50% 0 0 50%;
    border: 2px solid #000;
    border-right: none;
}

.landing-5g-text {
    font-size: 7rem;
    font-weight: 900;
    font-style: italic;
    color: white;
    line-height: 1;
    margin-top: 20px;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.6),
                 0 4px 10px rgba(0, 0, 0, 0.5);
    background: linear-gradient(180deg, #fff 30%, #e0e0e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.landing-5g-text::after {
    content: '(( ▶ ))';
    font-size: 1.8rem;
    position: absolute;
    top: 25px;
    right: -50px;
    color: white;
    -webkit-text-fill-color: white;
    font-style: normal;
    animation: signal-pulse 2s infinite;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

/* Landing Buttons */
.landing-buttons {
    width: 100%;
    max-width: 400px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 0 20px;
    margin-bottom: 20px;
}

.landing-btn {
    width: 100%;
    padding: 22px;
    border-radius: 50px;
    /* Pill shape */
    border: none;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    cursor: pointer;
    background: linear-gradient(90deg, #40c4ba 0%, #2ea89e 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(64, 196, 186, 0.3);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.8px;
    transition: all 0.2s ease;
}

.landing-btn:active {
    transform: scale(0.96);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3), 0 0 15px rgba(64, 196, 186, 0.2);
}

.landing-btn:hover {
    background: linear-gradient(90deg, #4dd4ca 0%, #35b8ae 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(64, 196, 186, 0.4);
    transform: translateY(-2px);
}

.landing-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
    border-radius: 50px 50px 0 0;
}

.landing-btn-secondary {
    background: linear-gradient(90deg, #36b0a6 0%, #298a82 100%);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4), 0 0 20px rgba(54, 176, 166, 0.3);
}

.landing-btn-secondary:hover {
    background: linear-gradient(90deg, #42c0b6 0%, #349a92 100%);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(54, 176, 166, 0.4);
}

@keyframes signal-pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
        text-shadow: 0 0 10px white;
    }

    100% {
        opacity: 0.5;
    }
}