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

:root {
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
    --bg-color: #f8fafc;
    --bg-primary: #f8fafc;
    --bg-secondary: #ffffff;
    --bg-tertiary: #f1f5f9;
    --card-bg: #ffffff;
    
    --text-main: #0f172a;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
    
    --border-color: #e2e8f0;
    --primary: #6366f1;
    --primary-hover: #4f46e5;
    --primary-text: #4338ca;
    --primary-light: rgba(99, 102, 241, 0.1);
    
    --link-color: #4338ca;
    --link-hover: #3730a3;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-premium: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05);
    --card-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.05), 0 4px 6px -4px rgb(0 0 0 / 0.05);
    
    --glass-bg: rgba(255, 255, 255, 0.78);
    --glass-border: rgba(226, 232, 240, 0.8);
    
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

[data-theme="dark"] {
    --bg-color: #090d16;
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --bg-tertiary: #1e293b;
    --card-bg: #0f172a;
    
    --text-main: #f8fafc;
    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    --border-color: #334155;
    --primary: #818cf8;
    --primary-hover: #6366f1;
    --primary-text: #a5b4fc;
    --primary-light: rgba(129, 140, 248, 0.15);
    
    --link-color: #a5b4fc;
    --link-hover: #c7d2fe;
    --accent: #22d3ee;
    --success: #34d399;
    --warning: #fbbf24;
    --danger: #f87171;

    --shadow-premium: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --card-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
    --card-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
    
    --glass-bg: rgba(15, 23, 42, 0.78);
    --glass-border: rgba(51, 65, 85, 0.8);
}

/* Global Reset & Layout */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

a {
    color: var(--link-color);
    transition: color 0.2s ease;
}
a:hover {
    color: var(--link-hover);
}

/* Main Wrapper */
.iss-main-wrapper {
    flex: 1 0 auto;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 110px 20px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Header (Navigasyon Menüsü) */
.iss-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: var(--glass-bg);
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    border-bottom: 1px solid var(--glass-border);
    z-index: 1000;
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 8px 30px rgba(15, 23, 42, .035);
}

.iss-header-container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo brand mark */
.site-brand {
    order: 1;
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    margin-right: .5rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}
.site-brand:hover {
    transform: translateY(-1px);
    opacity: 0.95;
}
.site-brand-mark {
    display: grid;
    place-items: center;
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 auto;
    border-radius: .8rem;
    color: #fff !important;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    box-shadow: 0 8px 20px rgba(99, 102, 241, .24);
}
.site-brand-mark i {
    font-size: 1.25rem;
}
.site-brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.08;
    text-align: left;
}
.site-brand-copy strong {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -.02em;
    color: var(--text-primary);
}
.site-brand-copy small {
    margin-top: .28rem;
    font-size: .64rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text-muted);
}

.iss-nav {
    order: 2;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 6px;
}

.iss-nav-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
    padding: 8px 14px;
    border-radius: var(--radius-md);
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.iss-nav-link:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.iss-nav-link.active {
    color: var(--primary-text);
    background: var(--primary-light);
}

.iss-nav-link.external-link {
    color: var(--primary-text);
    font-weight: 700;
}
.iss-nav-link.external-link:hover {
    background: var(--primary-light);
    color: var(--primary-hover);
}

/* Theme toggle button styling */
.theme-toggle-btn {
    order: 3;
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border-color);
    border-radius: 0.55rem;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    margin-left: 12px;
    margin-right: 0;
}
.theme-toggle-btn:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    color: var(--primary);
}

/* Mobil Hamburger Menü */
.iss-nav-toggle {
    order: 4;
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: 0.55rem;
    cursor: pointer;
    padding: 8px;
    width: 2.15rem;
    height: 2.15rem;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: var(--transition);
}
.iss-nav-toggle:hover {
    background-color: var(--bg-tertiary);
}

.iss-nav-toggle-icon {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--text-primary);
    position: relative;
    transition: var(--transition);
}

.iss-nav-toggle-icon::before,
.iss-nav-toggle-icon::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 2px;
    background: var(--text-primary);
    left: 0;
    transition: var(--transition);
}

.iss-nav-toggle-icon::before {
    top: -5px;
}

.iss-nav-toggle-icon::after {
    bottom: -5px;
}

.iss-header.menu-open .iss-nav-toggle-icon {
    background: transparent;
}

.iss-header.menu-open .iss-nav-toggle-icon::before {
    transform: rotate(45deg);
    top: 0;
}

.iss-header.menu-open .iss-nav-toggle-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

@media (max-width: 1024px) {
    .iss-nav-toggle {
        display: flex;
    }
    .iss-nav {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        gap: 6px;
        padding: 16px;
        transform: translateY(-120%);
        opacity: 0;
        pointer-events: none;
        transition: var(--transition);
        box-shadow: var(--shadow-lg);
    }
    .iss-header.menu-open .iss-nav {
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }
    .iss-nav-link {
        width: 100%;
        text-align: center;
        padding: 12px;
        justify-content: center;
    }
}

/* Premium Kart & Konteyner */
.iss-card, .card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--card-shadow);
    padding: 35px;
    transition: var(--transition);
    text-align: center;
}

.iss-card:hover, .card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-lg);
    border-color: var(--primary);
}

.iss-title, .card-title {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.03em;
    margin: 10px 0;
}

.iss-subtitle, .card-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 25px;
}

/* Form elementleri ve sorgu alanları */
.form-control, .form-select, .bbk-input, .ts-control {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
    padding: 0.65rem 1rem !important;
    transition: background-color 0.3s, border-color 0.3s, box-shadow 0.2s !important;
}

.form-control:focus, .form-select:focus, .bbk-input:focus, .ts-wrapper.focus .ts-control {
    background-color: var(--bg-secondary) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 0.25rem rgba(99, 102, 241, 0.25) !important;
    color: var(--text-primary) !important;
    outline: none !important;
}

.form-label, label {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
}

.tab-switcher {
    background: var(--bg-tertiary) !important;
    border-radius: 10px;
    padding: 0.3rem;
    display: flex;
    gap: 0.35rem;
}
.tab-btn {
    flex: 1;
    border: none;
    background: transparent;
    border-radius: 7px;
    padding: 0.48rem 0.5rem;
    font-size: 0.82rem;
    font-weight: 650;
    color: var(--text-secondary) !important;
    cursor: pointer;
    transition: background .15s, color .15s;
}
.tab-btn.active {
    background: var(--bg-secondary) !important;
    color: var(--primary-text) !important;
    box-shadow: 0 1px 5px rgba(0, 0, 0, 0.15) !important;
}

.btn-query, .btn-primary {
    background: var(--primary) !important;
    border-color: var(--primary) !important;
    color: #fff !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    padding: 0.68rem 1rem !important;
    transition: all 0.25s ease !important;
}
.btn-query:hover, .btn-primary:hover {
    background: var(--primary-hover) !important;
    border-color: var(--primary-hover) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.25) !important;
}
.btn-query:disabled, .btn-primary:disabled {
    background: var(--bg-tertiary) !important;
    color: var(--text-muted) !important;
    border-color: var(--border-color) !important;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

/* Tablolar */
.table, .infra-table {
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
.infra-table td {
    padding: .48rem .9rem;
    border-bottom: 1px solid var(--border-color) !important;
}
.infra-table td:first-child {
    color: var(--text-secondary) !important;
    font-weight: 500;
}
.infra-table td:last-child {
    color: var(--text-primary) !important;
    font-weight: 700;
}
.infra-block {
    border: 1.5px solid var(--border-color) !important;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: .8rem;
    background-color: var(--bg-primary) !important;
}
.infra-header {
    display: flex;
    align-items: center;
    gap: .45rem;
    padding: .6rem .9rem;
    font-weight: 750;
    font-size: .83rem;
    border-bottom: 1.5px solid var(--border-color) !important;
}
.infra-header.fiber {
    background: rgba(99, 102, 241, 0.12) !important;
    color: var(--primary-text) !important;
}
.infra-header.vdsl {
    background: rgba(245, 158, 11, 0.12) !important;
    color: var(--warning) !important;
}
.infra-header.adsl {
    background: rgba(16, 185, 129, 0.12) !important;
    color: var(--success) !important;
}

.bbk-result-bar {
    background: var(--bg-tertiary) !important;
    border: 1.5px solid var(--border-color) !important;
    border-radius: 8px;
    padding: .45rem .9rem;
    font-size: .78rem;
    color: var(--text-secondary) !important;
    margin-top: .7rem;
    text-align: center;
}

.result-error {
    border-radius: 9px;
    padding: .75rem 1rem;
    font-size: .87rem;
    margin-top: 1rem;
    background: rgba(239, 68, 68, 0.12) !important;
    color: var(--danger) !important;
    border: 1px solid rgba(239, 68, 68, 0.25) !important;
}

/* Footer (Ortak Alt Bilgi Alanı) */
.iss-footer {
    flex-shrink: 0;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
    transition: var(--transition);
}

.iss-footer-container {
    max-width: 1300px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.iss-footer-links {
    display: flex;
    gap: 20px;
    margin-bottom: 5px;
    flex-wrap: wrap;
    justify-content: center;
}

.iss-footer-link {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 600;
    transition: var(--transition);
}

.iss-footer-link:hover {
    color: var(--primary);
}

.iss-footer-motto {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: normal;
    max-width: 600px;
    line-height: 1.5;
}

.iss-footer-copyright {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 600;
    letter-spacing: 0.02em;
}
.iss-footer-copyright a {
    color: var(--text-secondary);
}
.iss-footer-copyright a:hover {
    color: var(--primary);
}

/* Tom Select dynamic list background sync */
.ts-dropdown {
    background-color: var(--bg-secondary) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-color) !important;
}
.ts-dropdown .active {
    background-color: var(--primary-light) !important;
    color: var(--primary-text) !important;
}
.ts-dropdown .option {
    color: var(--text-primary) !important;
}
.ts-dropdown .option:hover {
    background-color: var(--bg-tertiary) !important;
}

/* Card Icon Wrapper and Actions styling */
.card-icon-wrapper {
    width: 3.2rem;
    height: 3.2rem;
    border-radius: 12px;
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 15px;
    transition: var(--transition);
    border: 1px solid var(--border-color);
}
.iss-card:hover .card-icon-wrapper {
    background: var(--primary-light);
    border-color: var(--primary);
    transform: scale(1.05);
}
.card-action {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    transition: var(--transition);
}
.iss-card:hover .card-action {
    color: var(--primary-hover);
    gap: 0.4rem;
}

/* Operator Card styling for planned outage list */
.operator-card {
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}
.operator-card:hover {
    border-color: var(--primary);
    transform: translateY(-3px);
}
.operator-card .logo-text {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: -0.01em;
}
.operator-card .action-text {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--primary);
    transition: var(--transition);
}
.operator-card:hover .action-text {
    color: var(--primary-hover);
}

/* Skeleton Loader (Shimmer effect) */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--border-color) 50%, var(--bg-tertiary) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.4s infinite linear;
    border-radius: 6px;
    display: inline-block;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 24px;
    width: 100%;
    max-width: 500px;
    margin-top: 1rem;
    box-shadow: var(--card-shadow);
    text-align: left;
    animation: fadeIn 0.3s ease-out;
}

.skeleton-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
}

.skeleton-icon {
    width: 36px;
    height: 36px;
    border-radius: 9px;
    flex-shrink: 0;
}

.skeleton-title {
    width: 160px;
    height: 20px;
}

.skeleton-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border-color);
}
.skeleton-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.skeleton-label {
    width: 130px;
    height: 16px;
}

.skeleton-value {
    width: 90px;
    height: 16px;
}

.skeleton-bar {
    width: 100%;
    height: 34px;
    border-radius: 8px;
    margin-top: 16px;
}


