/* ═══════════════════════════════════════════════
   MüşteriPro — Modern Premium Design System
   ═══════════════════════════════════════════════ */

:root {
    /* Colors - Azure Theme */
    --primary: #0078d4;
    --primary-hover: #106ebe;
    --primary-light: #eff6fc;
    --primary-50: rgba(0, 120, 212, 0.08);
    --primary-glow: rgba(0, 120, 212, 0.4);

    --accent: #0078d4;
    --accent-light: #eff6fc;

    --text-main: #201f1e;
    --text-secondary: #323130;
    --text-muted: #605e5c;
    --text-faint: #a19f9d;

    --bg-body: #faf9f8;
    --bg-elevated: #ffffff;
    --border: #edebe9;
    --border-light: #f3f2f1;

    --error: #d13438;
    --error-light: #fdf3f4;
    --success: #107c10;
    --success-light: #dff6dd;
    --warning-bg: #fff4ce;
    --warning-text: #797775;
    --info-bg: #f3f2f1;
    --info-text: #323130;

    /* Glass */
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-bg-strong: rgba(255, 255, 255, 0.98);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-blur: 8px;

    /* Shadows - Flat / Microsoft Style */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 8px 16px rgba(0, 0, 0, 0.05);
    --shadow-glow: none;
    --shadow-card: 0 1px 3px rgba(0, 0, 0, 0.05);

    /* Radius - Sharp / Azure Style */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 4px;
    --radius-xl: 6px;
    --radius-2xl: 8px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --duration-fast: 0.15s;
    --duration-normal: 0.25s;
    --duration-slow: 0.4s;
}

/* ─── Reset & Base ─── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    background: var(--bg-body);
    color: var(--text-main);
    line-height: 1.6;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.hidden {
    display: none !important;
}

::selection {
    background: hsla(var(--primary-h), 75%, 59%, 0.15);
    color: var(--primary-hover);
}

/* ─── Shared Accordion System ─── */
.accordion {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.accordion-item {
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    background: white;
    transition: all 0.3s var(--ease-smooth);
}

.accordion-item.active {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
}

.accordion-header {
    padding: 18px 24px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    transition: background 0.2s;
}

.accordion-header:hover {
    background: #f1f5f9;
}

.accordion-item.active .accordion-header {
    background: var(--primary-light);
    border-bottom: 1px solid var(--primary-50);
}

.accordion-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--text-main);
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.accordion-title i {
    font-size: 1.25rem;
    color: var(--primary);
}

.accordion-icon {
    transition: transform 0.3s;
    color: var(--text-muted);
    font-size: 1.2rem;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.accordion-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s;
    padding: 0 24px;
}

.accordion-item.active .accordion-content {
    max-height: 1200px; 
    padding: 24px;
}

/* ─── Modern Toast Notification System ─── */
#toast-container {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    min-width: 320px;
    background: white;
    padding: 16px 20px;
    border-radius: 16px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid #f1f5f9;
    animation: toastSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    position: relative;
    overflow: hidden;
}

.toast::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
}

.toast.success { border-left: 0; }
.toast.success::before { background: #10b981; }
.toast.success i { color: #10b981; font-size: 1.5rem; }

.toast.error { border-left: 0; }
.toast.error::before { background: #ef4444; }
.toast.error i { color: #ef4444; font-size: 1.5rem; }

.toast.info { border-left: 0; }
.toast.info::before { background: #3b82f6; }
.toast.info i { color: #3b82f6; font-size: 1.5rem; }

.toast-content {
    flex: 1;
}

.toast-message {
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
}

@keyframes toastSlideIn {
    from { transform: translateX(100%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}

@keyframes toastFadeOut {
    to { transform: translateX(20px); opacity: 0; }
}

/* ─── Gradient Text ─── */
.gradient-text {
    background: linear-gradient(135deg, hsl(243, 80%, 62%) 0%, hsl(280, 85%, 55%) 50%, hsl(330, 85%, 60%) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ─── Background Shapes ─── */
.bg-shape,
.hero-shape {
    position: fixed;
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
    filter: blur(100px);
    opacity: 0.45;
    animation: morph 25s infinite alternate ease-in-out;
}

.shape-1,
.shape-a {
    width: 550px;
    height: 550px;
    background: linear-gradient(135deg, hsl(220, 80%, 75%) 0%, hsl(260, 70%, 45%) 100%);
    top: -180px;
    left: -180px;
}

.shape-2,
.shape-b {
    width: 650px;
    height: 650px;
    background: linear-gradient(135deg, hsl(330, 80%, 80%) 0%, hsl(260, 60%, 70%) 100%);
    bottom: -250px;
    right: -180px;
    animation-delay: -12s;
}

.shape-c {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, hsl(280, 70%, 70%) 0%, hsl(200, 80%, 65%) 100%);
    top: 45%;
    right: 8%;
    opacity: 0.25;
    animation-delay: -6s;
}

/* ─── App Topbar Custom Styles ─── */
.topbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
}

.topbar-left {
    display: flex;
    align-items: center;
}

.app-nav-links {
    display: flex;
    gap: 1.5rem;
    margin-left: 2rem;
}

.app-nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--duration-fast);
}

.app-nav-links a:hover,
.app-nav-links a.active {
    color: var(--primary);
}

@keyframes morph {
    0% {
        transform: translate(0, 0) scale(1) rotate(0deg);
        border-radius: 50%;
    }

    33% {
        transform: translate(30px, -20px) scale(1.05) rotate(5deg);
        border-radius: 45% 55% 50% 50%;
    }

    66% {
        transform: translate(-20px, 40px) scale(0.97) rotate(-3deg);
        border-radius: 50% 45% 55% 50%;
    }

    100% {
        transform: translate(50px, 30px) scale(1.08) rotate(7deg);
        border-radius: 48% 52% 47% 53%;
    }
}

/* ─── Animations ─── */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.96) translateY(12px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatCard {

    0%,
    100% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-18px) rotate(1deg);
    }
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-10px);
    }

    40% {
        transform: translateX(10px);
    }

    60% {
        transform: translateX(-6px);
    }

    80% {
        transform: translateX(6px);
    }
}

@keyframes pulse {

    0%,
    100% {
        box-shadow: 0 0 0 0 var(--primary-glow);
    }

    50% {
        box-shadow: 0 0 0 12px transparent;
    }
}

/* ═══════════════════════════════════════════════
   SHARED COMPONENTS
   ═══════════════════════════════════════════════ */

/* ─── Buttons ─── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 0.925rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-smooth);
    border: none;
    font-family: inherit;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    letter-spacing: -0.01em;
}

.btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15) 0%, transparent 50%);
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn:hover::after {
    opacity: 1;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    border-radius: var(--radius-sm);
}

.btn-lg {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: var(--radius-lg);
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    box-shadow: 0 2px 8px -2px var(--primary-glow), var(--shadow-sm);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -4px var(--primary-glow), var(--shadow-md);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: #CBD5E1;
    cursor: not-allowed;
    transform: none;
    box-shadow: var(--shadow-xs);
}

.btn-secondary {
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border-light);
    color: var(--text-main);
    border-color: #CBD5E1;
}

.btn-danger {
    background: transparent;
    color: var(--error);
}

.btn-danger:hover {
    background: var(--error-light);
}

.btn-block {
    width: 100%;
}

/* ─── Inputs ─── */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.01em;
}

.required {
    color: var(--error);
    margin-left: 0.2rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper.textarea-wrapper {
    align-items: flex-start;
}

.input-wrapper .icon {
    position: absolute;
    left: 1rem;
    color: var(--text-faint);
    font-size: 1.1rem;
    transition: color var(--duration-normal) var(--ease-smooth);
    pointer-events: none;
    z-index: 1;
}

.input-wrapper.textarea-wrapper .icon {
    top: 1rem;
}

input,
select,
textarea {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.85rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.92rem;
    color: var(--text-main);
    background: var(--bg-elevated);
    transition: all var(--duration-normal) var(--ease-smooth);
    outline: none;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-faint);
}

select {
    appearance: none;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='20' height='20'%3E%3Cpath d='M12 13.172l4.95-4.95 1.414 1.414L12 16 5.636 9.636 7.05 8.222z' fill='%2394A3B8'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
}

select:invalid {
    color: var(--text-faint);
}

select option {
    color: var(--text-main);
}

textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.7;
}

input:hover,
select:hover,
textarea:hover {
    border-color: #CBD5E1;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--primary-50), var(--shadow-xs);
}

.input-wrapper:focus-within .icon {
    color: var(--primary);
}

/* ─── Toast ─── */
.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-xl);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    transform: translateX(130%) scale(0.9);
    transition: transform var(--duration-slow) var(--ease-spring);
    z-index: 200;
    border-left: 4px solid var(--success);
    min-width: 300px;
    backdrop-filter: blur(12px);
}

.toast.show {
    transform: translateX(0) scale(1);
}

/* Search Autocomplete Styling */
.transaction-grid .table-responsive {
    overflow: visible !important; /* Tablo dışına taşmaya izin ver */
}

.modern-table td {
    position: relative;
    overflow: visible !important; /* Hücre dışına taşmaya izin ver */
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    width: 350px; /* Biraz daha genişletelim */
    background: #fff;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3); /* Gölgeyi belirginleştir */
    z-index: 99999 !important; 
    max-height: 250px;
    overflow-y: auto;
    margin-top: 5px;
    display: none;
    animation: slideDown 0.2s ease-out;
}

.search-item {
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    border-bottom: 1px solid #f8fafc;
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #f1f5f9;
    padding-left: 20px;
    color: var(--primary);
}

.search-item strong {
    color: #1e293b;
}

.search-item span {
    font-size: 11px;
    color: var(--text-muted);
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.toast>i {
    color: var(--success);
    font-size: 1.5rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.toast-content h4 {
    margin: 0 0 0.15rem;
    font-weight: 700;
    font-size: 0.9rem;
}

.toast-content p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
}


/* ═══════════════════════════════════════════════
   LANDING PAGE
   ═══════════════════════════════════════════════ */

/* ─── Navbar ─── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(248, 250, 252, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.5);
    transition: box-shadow var(--duration-normal);
}

.nav-container {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    box-shadow: 0 2px 8px -2px var(--primary-glow);
}

.brand-icon.small {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    font-size: 15px;
}

.brand-icon.large {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-lg);
    font-size: 30px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    transition: color var(--duration-fast);
    position: relative;
}

.nav-links a:not(.btn-nav):hover {
    color: var(--text-main);
}

.nav-links a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    border-radius: 1px;
    background: var(--primary);
    transition: width var(--duration-normal) var(--ease-out);
}

.nav-links a:not(.btn-nav):hover::after {
    width: 100%;
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary), var(--accent)) !important;
    color: #fff !important;
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem !important;
    box-shadow: 0 2px 8px -2px var(--primary-glow);
    transition: all var(--duration-normal) var(--ease-smooth) !important;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px -4px var(--primary-glow) !important;
}

.btn-nav::after {
    display: none !important;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    color: var(--text-main);
    padding: 0.25rem;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    padding: 11rem 2rem 6rem;
    overflow: hidden;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
}

.hero-container {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.4rem 1rem;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 1.75rem;
    border: 1px solid hsla(var(--primary-h), 80%, 80%, 0.3);
    animation: fadeIn 0.6s var(--ease-out) 0.1s both;
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    animation: fadeIn 0.6s var(--ease-out) 0.2s both;
}

.hero-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    line-height: 1.75;
    max-width: 480px;
    margin-bottom: 2.25rem;
    animation: fadeIn 0.6s var(--ease-out) 0.3s both;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeIn 0.6s var(--ease-out) 0.4s both;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 2rem;
    animation: fadeIn 0.6s var(--ease-out) 0.5s both;
}

.stat strong {
    display: block;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.stat span {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 500;
}

.stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border);
}

/* Hero floating cards */
.hero-visual {
    position: relative;
    height: 380px;
}

.hero-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    padding: 1.15rem 1.5rem;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    animation: floatCard 7s ease-in-out infinite;
    transition: transform var(--duration-normal) var(--ease-smooth);
}

.hero-card:hover {
    transform: translateY(-6px) scale(1.03) !important;
}

.hero-card strong {
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-card small {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.card-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.card-icon.blue {
    background: var(--info-bg);
    color: var(--info-text);
}

.card-icon.purple {
    background: var(--accent-light);
    color: hsl(280, 70%, 50%);
}

.card-icon.green {
    background: var(--success-light);
    color: #059669;
}

.card-1 {
    top: 8%;
    left: 3%;
    animation-delay: 0s;
}

.card-2 {
    top: 42%;
    right: 3%;
    animation-delay: -2.3s;
}

.card-3 {
    bottom: 3%;
    left: 12%;
    animation-delay: -4.6s;
}

/* ─── Features ─── */
.features {
    padding: 5rem 2rem;
    position: relative;
    z-index: 1;
}

.section-container {
    max-width: 1120px;
    margin: 0 auto;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3.5rem;
    font-size: 1.05rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
}

.feature-card {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    transition: all var(--duration-normal) var(--ease-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(90deg, transparent, transparent);
    transition: background var(--duration-normal);
}

.feature-card:nth-child(1):hover::before {
    background: linear-gradient(90deg, hsl(220, 80%, 55%), hsl(240, 70%, 60%));
}

.feature-card:nth-child(2):hover::before {
    background: linear-gradient(90deg, hsl(260, 70%, 55%), hsl(280, 80%, 60%));
}

.feature-card:nth-child(3):hover::before {
    background: linear-gradient(90deg, hsl(150, 70%, 40%), hsl(170, 80%, 45%));
}

.feature-card:nth-child(4):hover::before {
    background: linear-gradient(90deg, hsl(35, 90%, 55%), hsl(25, 85%, 50%));
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 1.25rem;
    transition: transform var(--duration-normal) var(--ease-spring);
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(-5deg);
}

.feature-icon.blue {
    background: var(--info-bg);
    color: var(--info-text);
}

.feature-icon.purple {
    background: var(--accent-light);
    color: hsl(280, 70%, 50%);
}

.feature-icon.green {
    background: var(--success-light);
    color: #059669;
}

.feature-icon.orange {
    background: var(--warning-bg);
    color: #D97706;
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: -0.01em;
}

.feature-card p {
    color: var(--text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
}

/* ─── CTA ─── */
.about {
    padding: 2rem 2rem 5rem;
    position: relative;
    z-index: 1;
}

.cta-card {
    background: linear-gradient(135deg, hsl(243, 75%, 55%) 0%, hsl(280, 80%, 50%) 100%);
    border-radius: var(--radius-2xl);
    padding: 4.5rem 3rem;
    text-align: center;
    color: #fff;
    box-shadow: 0 20px 50px -12px hsla(260, 80%, 40%, 0.35);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 30% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 60%);
    pointer-events: none;
}

.cta-card h2 {
    font-size: 2.1rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    position: relative;
}

.cta-card p {
    opacity: 0.88;
    font-size: 1.05rem;
    margin-bottom: 2rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.cta-card .btn-primary {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
}

.cta-card .btn-primary:hover {
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* ─── Footer ─── */
.footer {
    padding: 1.75rem 2rem;
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1120px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 0.92rem;
}

.footer p {
    color: var(--text-faint);
    font-size: 0.78rem;
}


/* ═══════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════ */

.login-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var(--bg-body);
}

.login-bg-shapes {
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.login-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    min-height: 80vh;
    margin: auto;
    position: relative;
    z-index: 1;
    background: var(--bg-elevated);
    border-radius: var(--radius-2xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.login-branding {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    position: relative;
    background: linear-gradient(160deg, hsl(243, 75%, 50%) 0%, hsl(280, 80%, 45%) 100%);
    color: #fff;
    overflow: hidden;
}

.login-branding::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.brand-back {
    position: absolute;
    top: 2rem;
    left: 2rem;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    transition: color var(--duration-fast);
}

.brand-back:hover {
    color: #fff;
}

.branding-content {
    max-width: 360px;
    margin: 0 auto;
    position: relative;
}

.branding-content h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 1.25rem 0 1rem;
    letter-spacing: -0.03em;
}

.branding-content p {
    opacity: 0.82;
    font-size: 1rem;
    line-height: 1.75;
    margin-bottom: 2.5rem;
}

.branding-features {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.bf-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.88rem;
    opacity: 0.9;
    font-weight: 500;
}

.bf-item i {
    font-size: 1.15rem;
    color: hsl(180, 80%, 75%);
}

.login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    background: var(--bg-body);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 2.5rem;
    box-shadow: var(--shadow-card);
    animation: fadeInScale 0.5s var(--ease-out) forwards;
}

.login-header {
    margin-bottom: 2rem;
}

.login-header h2 {
    font-size: 1.65rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.login-header p {
    color: var(--text-muted);
    font-size: 0.92rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.82rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    color: var(--text-muted);
    font-weight: 500;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
    cursor: pointer;
    border-radius: 4px;
}

.forgot-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    transition: opacity var(--duration-fast);
}

.forgot-link:hover {
    opacity: 0.8;
}

.toggle-password {
    position: absolute;
    right: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-faint);
    font-size: 1.1rem;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    transition: color var(--duration-fast);
}

.toggle-password:hover {
    color: var(--primary);
}

.login-error {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    background: var(--error-light);
    color: var(--error);
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.85rem;
    font-weight: 500;
    border: 1px solid hsla(0, 85%, 60%, 0.15);
}

.login-error i {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.login-hint {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: var(--primary);
    padding: 0.6rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.78rem;
    font-weight: 500;
    margin-top: 0.35rem;
    border: 1px solid hsla(var(--primary-h), 80%, 80%, 0.25);
}

.login-hint i {
    font-size: 0.95rem;
}


/* ═══════════════════════════════════════════════
   APP PAGE (Customer List / Form)
   ═══════════════════════════════════════════════ */

.app-body {
    padding-top: 0;
}

/* ─── APP WRAPPER (Side Menu Layout) ─── */
.app-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ─── Sidebar ─── */
.sidebar {
    width: 280px;
    flex-shrink: 0;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border-right: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    transition: all var(--duration-normal) var(--ease-spring);
    position: sticky;
    top: 0;
    height: 100vh;
    z-index: 100;
}

.sidebar.collapsed {
    width: 64px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
}

.sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-main);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.sidebar-toggle {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
}

.sidebar-toggle:hover {
    color: var(--primary);
    background: var(--primary-50);
}

.sidebar-nav {
    padding: 1.5rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    flex: 1;
    overflow-y: auto; /* Kaydırma özelliğini açtık */
    overflow-x: hidden;
}

/* ─── Custom Scrollbar for Sidebar ─── */
.sidebar-nav::-webkit-scrollbar {
    width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
    background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.1);
    border-radius: 10px;
}

.sidebar-nav:hover::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 12px;
    transition: all 0.2s var(--ease-smooth);
    position: relative;
}

.sidebar-nav a i {
    font-size: 1.35rem;
    color: #94a3b8;
}

.sidebar-nav a:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
}

.sidebar-nav a.active {
    background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
    color: #fff;
    box-shadow: 0 8px 20px -6px rgba(99, 102, 241, 0.5);
}

.sidebar-nav a.active i {
    color: #fff;
}

/* ─── Activity Bar Mode (Collapsed) ─── */
.sidebar.collapsed .sidebar-header {
    padding: 1.5rem 0;
    justify-content: center;
}

.sidebar.collapsed .sidebar-nav {
    padding: 1rem 0.4rem;
    align-items: center;
}

.sidebar.collapsed .sidebar-nav a {
    width: 44px;
    height: 44px;
    padding: 0;
    justify-content: center;
    margin-bottom: 8px;
}

.sidebar.collapsed .sidebar-nav a span,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-brand-text {
    display: none;
}

.sidebar.collapsed .sidebar-nav a.active {
    background: #f1f5f9;
    color: var(--primary);
    box-shadow: none;
    border: 1px solid var(--border);
}

.sidebar.collapsed .sidebar-nav a.active i {
    color: var(--primary);
}

/* ─── Submenu Styles ─── */
.submenu-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.submenu-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    cursor: pointer;
    color: #64748b;
    font-weight: 600;
    font-size: 0.92rem;
    border-radius: 12px;
    transition: all 0.2s;
    user-select: none;
}

.submenu-toggle i:not(.arrow) {
    font-size: 1.35rem;
    color: #94a3b8;
}

.submenu-toggle .arrow {
    margin-left: auto;
    font-size: 1rem;
    transition: transform 0.3s var(--ease-spring);
    opacity: 0.5;
}

.submenu-toggle:hover {
    background: rgba(99, 102, 241, 0.06);
    color: #4f46e5;
}

.submenu-toggle.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.submenu-toggle.open .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.submenu-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--duration-slow) var(--ease-smooth), opacity var(--duration-normal);
    opacity: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 1rem;
}

.submenu-content.expanded {
    max-height: 2000px; /* Adjust as needed */
    opacity: 1;
    padding-top: 0.2rem;
    padding-bottom: 0.4rem;
}

.submenu-content a {
    font-size: 0.88rem !important;
    padding: 0.55rem 0.85rem !important;
}

.submenu-content a.active {
    background: var(--primary) !important;
    color: #fff !important;
    box-shadow: 0 2px 8px var(--primary-glow) !important;
}

.submenu-content a.active i {
    color: #fff !important;
}

/* Collapsed Sidebar Adjustments */
.sidebar.collapsed .sidebar-nav a {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.collapsed .sidebar-nav a span {
    display: none;
}

.sidebar.collapsed .submenu-toggle span,
.sidebar.collapsed .submenu-toggle .arrow {
    display: none;
}

.sidebar.collapsed .submenu-toggle {
    justify-content: center;
    padding: 12px 0;
}

.sidebar.collapsed .submenu-content {
    display: none; /* Hide submenus entirely when sidebar is collapsed for simplicity, or use tooltips */
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
    background: rgba(248, 250, 252, 0.4);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 20px 10px;
    align-items: center;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    line-height: 1.3;
}

.sidebar.collapsed .user-profile-info {
    display: none;
}

.user-profile-info strong {
    font-size: 0.88rem;
    color: var(--text-main);
}

.user-profile-info span {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #e0e7ff 0%, #f5f3ff 100%);
    color: #6366f1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 700;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(99, 102, 241, 0.1);
}

.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: transparent;
    color: var(--text-muted);
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.6rem;
    border-radius: var(--radius-md);
    transition: all var(--duration-fast);
}

.btn-logout:hover {
    background: var(--error-light);
    color: var(--error);
    border-color: hsla(0, 85%, 60%, 0.2);
}

.sidebar.collapsed .btn-logout span {
    display: none;
}

.sidebar.collapsed .btn-logout {
    padding: 0.6rem;
}

.sidebar.collapsed .btn-logout i {
    margin: 0;
}

/* ─── Main Content Area ─── */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0; /* prevent flex blowout */
}

.app-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2.5rem 2rem;
    width: 100%;
}

/* ─── Panels ─── */
.view-panel {
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    -webkit-backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: 2.25rem;
    box-shadow: var(--shadow-card);
    animation: fadeInScale 0.4s var(--ease-out) forwards;
    position: relative;
    z-index: 1;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.75rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.panel-header.compact {
    justify-content: flex-start;
    gap: 1rem;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.header-icon {
    width: 48px;
    height: 48px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: var(--shadow-xs);
    transition: transform var(--duration-normal) var(--ease-spring);
    flex-shrink: 0;
}

.panel-header:hover .header-icon {
    transform: scale(1.1) rotate(5deg);
}

.panel-header h1,
.panel-header h2 {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.panel-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
}

#formTitle {
    font-size: 1.2rem;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    padding: 0.45rem 0.7rem;
    border-radius: var(--radius-sm);
    transition: background var(--duration-fast);
}

.btn-back:hover {
    background: var(--primary-light);
}

/* ─── Search ─── */
.search-bar {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input-wrapper>i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
    font-size: 1.05rem;
    pointer-events: none;
}

.search-input-wrapper input {
    width: 100%;
    padding: 0.8rem 1rem 0.8rem 2.65rem;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-family: inherit;
    font-size: 0.88rem;
    outline: none;
    background: var(--bg-elevated);
    transition: all var(--duration-normal);
}

.search-input-wrapper input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.customer-count {
    font-size: 0.82rem;
    color: var(--text-muted);
    white-space: nowrap;
}

.customer-count span {
    display: inline-block;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: #fff;
    border-radius: var(--radius-sm);
    padding: 0.15rem 0.55rem;
    font-weight: 700;
    font-size: 0.78rem;
    min-width: 26px;
    text-align: center;
}

/* ─── Table ─── */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.86rem;
}

thead th {
    text-align: left;
    font-weight: 600;
    color: var(--text-faint);
    padding: 0.65rem 1rem;
    border-bottom: 2px solid var(--border);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.col-actions {
    width: 56px;
}

tbody tr {
    cursor: pointer;
    transition: all var(--duration-fast) var(--ease-smooth);
}

tbody tr:hover {
    background: var(--primary-50);
}

tbody tr:active {
    transform: scale(0.998);
}

tbody td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.td-code {
    font-weight: 700;
    color: var(--primary);
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
    font-size: 0.85rem;
}

.td-name {
    font-weight: 600;
}

.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-kurumsal {
    background: var(--info-bg);
    color: var(--info-text);
}

.badge-bireysel {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.row-action-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-faint);
    font-size: 1.15rem;
    padding: 0.3rem;
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast);
}

.row-action-btn:hover {
    background: var(--primary-light);
    color: var(--primary);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state i {
    font-size: 2.5rem;
    color: #CBD5E1;
    margin-bottom: 0.75rem;
    display: block;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 1rem;
    font-size: 0.92rem;
}

/* ─── Form ─── */
.customer-form {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.35rem;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 1.75rem;
    border-top: 1px solid var(--border);
}

.form-actions-right {
    display: flex;
    gap: 0.75rem;
}

/* ─── Grid Table Data Entry ─── */
.line-items-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
}

.grid-table {
    width: 100%;
    border-collapse: collapse;
}

.grid-table th {
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-align: left;
    padding: 0.85rem 1rem;
    border-bottom: 2px solid var(--border);
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.grid-table td {
    padding: 0.5rem 0.2rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.grid-input {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: var(--radius-sm);
    font-size: 0.92rem;
    transition: all var(--duration-fast);
}

.grid-input:hover {
    background: var(--bg-body);
    border-color: var(--border);
}

.grid-input:focus {
    background: #fff;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-50);
}

.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    border: none;
    background: transparent;
    cursor: pointer;
    transition: all var(--duration-fast);
}

.btn-icon-danger {
    color: var(--text-faint);
}

.btn-icon-danger:hover {
    background: var(--error-light);
    color: var(--error);
}
/* ═══════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════ */

@media (max-width: 900px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual {
        display: none;
    }

    .features-grid {
        grid-template-columns: 1fr 1fr;
    }

    .login-page {
        grid-template-columns: 1fr;
    }

    .login-branding {
        display: none;
    }
}

@media (max-width: 640px) {
    .nav-container {
        padding: 0.7rem 1rem;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(248, 250, 252, 0.95);
        backdrop-filter: blur(16px);
        padding: 1rem;
        border-bottom: 1px solid var(--border);
        gap: 0.5rem;
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a:not(.btn-nav)::after {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .hero {
        padding: 7rem 1rem 3rem;
    }

    .hero-content h1 {
        font-size: 2.2rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .cta-card {
        padding: 2.5rem 1.5rem;
    }

    .cta-card h2 {
        font-size: 1.5rem;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }

    .app-page,
    .page-container {
        padding: 1rem;
    }

    .view-panel {
        padding: 1.5rem;
        border-radius: var(--radius-xl);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .panel-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .login-card {
        padding: 2rem 1.5rem;
    }

    .toast {
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
        min-width: unset;
    }

    .topbar-inner {
        padding: 0.6rem 1rem;
    }
}

/* ─── Belge Türü Badge ─── */
.badge-type {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
    background: var(--primary-light);
    color: var(--primary);
    border: 1px solid hsla(var(--primary-h), 80%, 80%, 0.3);
}

/* Türe göre renk varyantları */
.badge-type[data-type="Fatura"],
span.badge-type:not([data-type]) {
    background: #EFF6FF;
    color: #1D4ED8;
    border-color: #BFDBFE;
}

tr:has(.badge-type) td:first-child span[class="badge-type"] {
    /* gerçek "Fatura" durumunda yukarıdan override gelir */
}

/* ═══════════════════════════════════════════════
   MODERN APP COMPONENTS
   ═══════════════════════════════════════════════ */

.view-panel {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 0 4px 20px rgba(0,0,0,0.02);
}

.stat-card {
    background: #fff !important;
    border-radius: 20px !important;
    padding: 24px !important;
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
    border: 1px solid #f1f5f9 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

.stat-card:hover {
    transform: translateY(-5px) !important;
    box-shadow: 0 15px 30px -10px rgba(0,0,0,0.1) !important;
    border-color: #e2e8f0 !important;
}

.stat-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.stat-card-icon.blue { background: #eff6ff !important; color: #3b82f6 !important; }
.stat-card-icon.green { background: #f0fdf4 !important; color: #10b981 !important; }
.stat-card-icon.orange { background: #fff7ed !important; color: #f59e0b !important; }
.stat-card-icon.purple { background: #faf5ff !important; color: #8b5cf6 !important; }

.stat-card-info label {
    font-size: 0.7rem !important;
    font-weight: 800 !important;
    color: #94a3b8 !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 4px !important;
    display: block !important;
}

.stat-card-info h3 {
    font-size: 1.4rem !important;
    font-weight: 800 !important;
    color: #1e293b !important;
    margin: 0 !important;
    letter-spacing: -0.02em !important;
}

.stat-card-info span {
    font-size: 0.75rem !important;
    color: #64748b !important;
    font-weight: 500 !important;
}

.chart-section {
    background: #fff !important;
    border-radius: 24px !important;
    padding: 32px !important;
    border: 1px solid #f1f5f9 !important;
    margin-top: 32px !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* ─── Modern Table ─── */
.table-wrapper table {
    border-spacing: 0 8px !important;
    border-collapse: separate !important;
}

.table-wrapper tbody tr {
    background: #fff !important;
    border: 1px solid #f1f5f9 !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.01) !important;
    transition: all 0.2s ease !important;
}

.table-wrapper tbody td {
    border: none !important;
    padding: 16px !important;
}

.table-wrapper tbody td:first-child { border-radius: 12px 0 0 12px !important; border-left: 1px solid #f1f5f9 !important; }
.table-wrapper tbody td:last-child { border-radius: 0 12px 12px 0 !important; border-right: 1px solid #f1f5f9 !important; }

.table-wrapper tbody tr:hover {
    background: #f8fafc !important;
    transform: scale(1.005) translateY(-2px) !important;
    box-shadow: 0 10px 20px -5px rgba(0,0,0,0.05) !important;

}

/* ═══════════════════════════════════════════════
   3-PANE IDE LAYOUT EXTENSION
   ═══════════════════════════════════════════════ */

.app-wrapper.three-pane {
    display: flex;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
    background: var(--bg-body);
}

.three-pane .sidebar {
    height: 100vh;
    position: relative;
    z-index: 100;
}

.three-pane .main-content {
    flex: 1;
    min-width: 0; /* İçeriğin genişleyip scrollbar'ı ekrandan dışarı itmesini engeller */
    height: 100vh;
    overflow-y: scroll;
    overflow-x: hidden;
    background: transparent;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.three-pane .app-page {
    max-width: 100% !important;
    padding: 1.5rem;
    margin: 0;
}

.right-panel {
    width: 350px;
    height: 100vh;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(var(--glass-blur));
    border-left: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    z-index: 90;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.right-panel.collapsed {
    width: 44px; /* Çok daha ince bir sağ şerit */
}

.right-panel.collapsed .right-panel-content,
.right-panel.collapsed .right-panel-header h3 {
    display: none;
}

.right-panel.collapsed .right-panel-header {
    padding: 1.5rem 0;
    justify-content: center;
    border-bottom: none;
}

.right-panel.collapsed .right-panel-header .sidebar-toggle {
    transform: rotate(180deg);
}

/* ─── Resizer Styles ─── */
.resizer {
    width: 4px; /* Daha ince görsel */
    height: 100vh;
    cursor: col-resize;
    position: relative;
    z-index: 50; /* Scrollbar'ın (z-index'siz veya düşük) üzerine binmesin */
    transition: background 0.2s;
    flex-shrink: 0;
}

.resizer:hover, .resizer.dragging {
    background: var(--primary);
    opacity: 0.5;
}

.resizer::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 2px;
    height: 30px;
    background: var(--border);
    border-radius: 1px;
}

.right-panel-content {
    flex: 1;
    overflow-y: scroll; /* Her zaman göster */
    padding: 1.25rem;
}

/* ─── Modern Scrollbar for Main Content & Right Panel ─── */
.three-pane .main-content::-webkit-scrollbar,
.right-panel-content::-webkit-scrollbar {
    width: 12px;
}

.three-pane .main-content::-webkit-scrollbar-track,
.right-panel-content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.three-pane .main-content::-webkit-scrollbar-thumb,
.right-panel-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
    border: 2px solid #f1f1f1;
}

.three-pane .main-content::-webkit-scrollbar-thumb:hover,
.right-panel-content::-webkit-scrollbar-thumb:hover {
    background: #a6a6a6;
}

.agent-bubble {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border-light);
    margin-bottom: 1rem;
    font-size: 0.88rem;
    line-height: 1.5;
}

.agent-bubble.ai {
    background: var(--primary-light);
    border-color: hsla(var(--primary-h), 80%, 80%, 0.3);
}

@media (max-width: 900px) {
    .right-panel, #resizer-right {
        display: none;
    }
}

/* Hide number input spinners globally to prevent overlapping text */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
    display: none !important;
}
input[type="number"] {
    -moz-appearance: textfield !important;
}





/* AZURE SIDEBAR ACTIVE STYLE */
.nav-item.active {
    background-color: var(--primary-light) !important;
    border-left: 4px solid var(--primary) !important;
    color: var(--primary) !important;
    border-radius: 0 4px 4px 0 !important; /* Flat left side */
}
.nav-item {
    border-left: 4px solid transparent; /* default placeholder for layout */
    border-radius: 0 4px 4px 0;
}
.sidebar {
    background-color: #faf9f8 !important;
    border-right: 1px solid #edebe9 !important;
}
.sidebar .nav-item {
    color: #323130 !important;
}
.sidebar .nav-item i {
    color: #605e5c !important;
}
.sidebar .nav-item.active i {
    color: var(--primary) !important;
}
.branding {
    border-bottom: 1px solid #edebe9 !important;
}


/* =========================================
   AZURE DUAL SIDEBAR ARCHITECTURE 
========================================= */

/* Override old sidebar */
.app-wrapper.three-pane .sidebar,
.app-wrapper .sidebar {
    width: 320px !important; /* 70px + 250px */
    max-width: 320px !important;
    min-width: 320px !important;
    display: flex !important;
    flex-direction: row !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-right: none !important;
    background: #ffffff !important;
    z-index: 1000;
}

/* 1. Global Nav (Primary) */
.global-nav {
    width: 70px;
    min-width: 70px;
    background: #f3f2f1;
    border-right: 1px solid #edebe9;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 10px;
    z-index: 1001;
    overflow-y: auto;
    overflow-x: hidden;
}

.global-nav::-webkit-scrollbar { width: 0px; }

.global-nav-item {
    width: 60px;
    height: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #605e5c;
    border-radius: 4px;
    margin-bottom: 6px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
    padding: 4px 2px;
    box-sizing: border-box;
}

.global-nav-item i {
    font-size: 1.5rem;
    margin-bottom: 3px;
    line-height: 1;
}

.global-nav-item span {
    font-size: 0.65rem;
    display: block;
    width: 100%;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1;
}

.global-nav-item:hover {
    background: #ffffff;
    color: #323130;
}

.global-nav-item.active {
    background: #ffffff;
    color: var(--primary);
    border-left: 3px solid var(--primary);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* 2. Context Nav (Secondary) */
.context-nav {
    width: 250px;
    min-width: 250px;
    background: #ffffff;
    border-right: 1px solid #edebe9;
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.context-nav-header {
    padding: 20px;
    border-bottom: 1px solid #edebe9;
    font-weight: 600;
    color: #323130;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 65px;
    box-sizing: border-box;
}

.context-nav-header i {
    font-size: 1.4rem;
    color: var(--primary);
}

.context-nav-content {
    flex: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Context Nav Items & Accordions */
.context-nav-content .accordion-item {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin-bottom: 0;
    background: transparent;
}

.context-nav-content .accordion-header {
    background: transparent;
    padding: 12px 20px;
    font-size: 0.9rem;
    color: #323130;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    border: none;
}

.context-nav-content .accordion-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.context-nav-content .accordion-title i {
    font-size: 1.2rem;
    color: #605e5c;
}

.context-nav-content .accordion-header:hover {
    background: #f3f2f1;
}

.context-nav-content .accordion-item.active .accordion-header {
    background: transparent;
}

.context-nav-content .accordion-content {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.context-nav-content a.nav-item {
    display: flex !important;
    align-items: center;
    gap: 10px;
    padding: 10px 20px 10px 45px;
    font-size: 0.85rem;
    margin: 2px 10px;
    border-radius: 4px;
    color: #605e5c !important;
    text-decoration: none;
    transition: background 0.2s;
    line-height: 1.2;
}

.context-nav-content a.nav-item i {
    font-size: 1.1rem;
}

.context-nav-content a.nav-item:hover {
    background: #f3f2f1;
    color: #323130 !important;
}

.context-nav-content a.nav-item.active {
    background: #eff6fc !important;
    color: var(--primary) !important;
    border-left: none !important;
    font-weight: 600;
}

/* Top Header */
.top-azure-header {
    height: 50px;
    min-height: 50px;
    background: #ffffff;
    border-bottom: 1px solid #edebe9;
    display: flex;
    align-items: center;
    padding: 0 24px;
    font-weight: 600;
    font-size: 1rem;
    color: #323130;
    width: 100%;
    box-sizing: border-box;
}

.main-content {
    background: #faf9f8;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

/* Content Area fix */
.main-content > .container,
.main-content > .content-wrapper {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* AZURE PORTAL LAYOUT CSS EXTRACTED FROM PORTAL.HTML */

        /* Exact layout overrides for Portal */
        body { margin: 0; padding: 0; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; background: #ffffff; color: #323130; overflow: hidden; }
        
        .azure-layout { display: flex; height: 100vh; width: 100vw; }
        
        /* OUTER SIDEBAR */
        .azure-outer-sidebar { width: 250px; min-width: 250px; background: #ffffff; border-right: 1px solid #edebe9; display: flex; flex-direction: column; }
        .outer-search-box { padding: 15px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid transparent; }
        .outer-search-box input { flex: 1; min-width: 0; padding: 6px 10px; border: 1px solid #8a8886; border-radius: 2px; font-size: 0.85rem; outline: none; }
        .outer-search-box input:focus { border-color: #0078d4; }
        .outer-search-box .collapse-btn { cursor: pointer; color: #605e5c; padding: 4px; font-size: 1.1rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
        .outer-search-box .collapse-btn:hover { background: #f3f2f1; color: #0078d4; }
        
        .outer-menu { flex: 1; overflow-y: auto; padding-top: 10px; }
        .outer-nav-item { display: flex; align-items: center; padding: 8px 16px; color: #323130; text-decoration: none; font-size: 0.85rem; cursor: pointer; border-left: 3px solid transparent; gap: 12px; }
        .outer-nav-item i { font-size: 1.1rem; color: #0078d4; width: 20px; text-align: center; }
        .outer-nav-item:hover { background: #f3f2f1; }
        .outer-nav-item.active { background: #f3f2f1; border-left-color: #0078d4; font-weight: 600; }
        
        .outer-nav-group { margin-top: 15px; }
        .outer-nav-group-title { padding: 8px 16px; font-size: 0.8rem; font-weight: 600; color: #323130; display: flex; align-items: center; cursor: pointer; gap: 8px; }
        .outer-nav-group-title i { font-size: 0.9rem; color: #605e5c; transition: transform 0.2s; }
        .outer-nav-group-title:hover { background: #f3f2f1; }
        
        .outer-footer { padding: 15px; border-top: 1px solid #edebe9; }
        .outer-footer a { display: flex; align-items: center; gap: 10px; color: #605e5c; text-decoration: none; font-size: 0.85rem; cursor: pointer; }
        .outer-footer a:hover { color: #323130; }

        /* RIGHT SIDE (Top Bar + Inner Sidebar + Main Content) */
        .right-side { flex: 1; display: flex; flex-direction: column; overflow: hidden; }

        /* TOP BAR */
        .main-top-bar { height: 48px; min-height: 48px; border-bottom: 1px solid #edebe9; display: flex; background: #faf9f8; align-items: center; justify-content: space-between; padding: 0 20px; }
        .breadcrumb { font-size: 0.85rem; color: #605e5c; display: flex; align-items: center; gap: 8px; }
        .breadcrumb span { color: #323130; font-weight: 600; }
        
        .top-bar-right { display: flex; align-items: center; gap: 15px; }
        .top-btn { background: transparent; border: none; color: #0078d4; font-size: 0.85rem; cursor: pointer; padding: 4px 8px; border-radius: 2px; }
        .top-btn:hover { background: #f3f2f1; }
        .company-badge { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: #0078d4; }
        .company-badge .dot { width: 6px; height: 6px; background: #0078d4; border-radius: 50%; }
        .icon-btn { cursor: pointer; font-size: 1.2rem; color: #323130; }
        .profile-block { display: flex; align-items: center; gap: 10px; margin-left: 10px; cursor: pointer; }
        .profile-text { display: flex; flex-direction: column; text-align: right; }
        .profile-name { font-size: 0.85rem; font-weight: 600; color: #323130; }
        .profile-status { font-size: 0.7rem; color: #d13438; font-weight: 600; text-transform: uppercase; }
        .profile-avatar { width: 32px; height: 32px; border-radius: 50%; border: 1px solid #0078d4; display: flex; align-items: center; justify-content: center; color: #0078d4; font-weight: 600; font-size: 0.85rem; }

        /* CONTENT ROW */
        .content-row { flex: 1; display: flex; overflow: hidden; }

        /* INNER SIDEBAR */
        .azure-inner-sidebar { width: 300px; min-width: 300px; background: #faf9f8; border-right: 1px solid #edebe9; display: flex; flex-direction: column; }
        .inner-header { padding: 20px; display: flex; justify-content: space-between; align-items: flex-start; }
        .inner-header-text h2 { margin: 0; font-size: 1.1rem; font-weight: 600; color: #323130; line-height: 1.2; }
        .inner-header-text p { margin: 4px 0 0 0; font-size: 0.75rem; color: #605e5c; }
        .inner-header .collapse-btn { cursor: pointer; color: #605e5c; padding: 4px; font-size: 1.2rem; border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: color 0.2s, background 0.2s, transform 0.3s; }
        .inner-header .collapse-btn:hover { background: #edebe9; color: #0078d4; }
        
        .inner-menu { flex: 1; overflow-y: auto; }
        .inner-nav-item { display: flex; align-items: center; padding: 8px 20px 8px 40px; color: #323130; text-decoration: none; font-size: 0.85rem; cursor: pointer; border-left: 3px solid transparent; gap: 10px; }
        .inner-nav-item i { font-size: 1rem; color: #0078d4; }
        .inner-nav-item:hover { background: #f3f2f1; }
        .inner-nav-item.active { background: #eff6fc; border-left-color: #0078d4; font-weight: 600; color: #0078d4; }
        
        .inner-nav-group-title { padding: 8px 20px; font-size: 0.85rem; font-weight: 600; color: #323130; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
        .inner-nav-group-title:hover { background: #f3f2f1; }
        .inner-nav-group-title .left { display: flex; align-items: center; gap: 10px; }
        .inner-nav-group-title .left i { font-size: 1rem; color: #605e5c; }
        .inner-nav-group-title .chevron { font-size: 1rem; color: #605e5c; }
        
        /* SCROLLBAR CUSTOMIZATION (Azure Style) */
        ::-webkit-scrollbar { width: 8px; height: 8px; }
        ::-webkit-scrollbar-track { background: transparent; }
        ::-webkit-scrollbar-thumb { background: #c8c6c4; border-radius: 4px; }
        ::-webkit-scrollbar-thumb:hover { background: #a19f9d; }

        /* MAIN CONTENT */
        .azure-main-content { flex: 1; display: flex; flex-direction: column; background: #ffffff; overflow: hidden; }
        
        /* RESOURCE HEADER */
        .resource-header { display: flex; align-items: center; padding: 20px 30px; gap: 15px; }
        .resource-header i { font-size: 3rem; color: #0078d4; }
        .resource-header h1 { margin: 0; font-size: 1.7rem; font-weight: 400; color: #323130; }
        .resource-header h1 strong { font-weight: 600; }

        /* CONTENT AREA */
        .content-scroll { flex: 1; overflow-y: auto; padding: 0 30px 40px 30px; }
        .page-title { font-size: 1.3rem; font-weight: 400; color: #323130; margin: 0 0 5px 0; }
        .page-subtitle { font-size: 0.85rem; color: #605e5c; margin: 0 0 25px 0; }
        
        /* GRID CARDS */
        .portal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
        .portal-card { background: #ffffff; border: 1px solid #edebe9; border-radius: 6px; padding: 24px; gap: 10px; text-decoration: none; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; text-align: left; transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s; min-height: 140px; box-sizing: border-box; }
        .portal-card:hover { box-shadow: 0 4px 12px rgba(0,0,0,0.15); transform: translateY(-2px); border-color: #0078d4; }
        .card-icon-box { width: 36px; height: 36px; border-radius: 6px; display: flex; align-items: center; justify-content: center; margin-bottom: 5px; }
        .card-title { font-size: 1.05rem; font-weight: 600; color: #323130; margin-bottom: 2px; }
        .card-desc { font-size: 0.85rem; color: #605e5c; line-height: 1.5; }
        
        /* Icon Colors */
        .bg-blue { background: #eff6fc; color: #0078d4; }
        .bg-purple { background: #f3f0f7; color: #5c2d91; }
        .bg-green { background: #eafbe4; color: #107c41; }
        .bg-orange { background: #fdf3e8; color: #d83b01; }
        .bg-teal { background: #e6f6f4; color: #008272; }

        /* COLLAPSE TRANSITIONS */
        .azure-outer-sidebar { transition: width 0.3s ease, min-width 0.3s ease; overflow-x: hidden; }
        .azure-inner-sidebar { transition: width 0.3s ease, min-width 0.3s ease; overflow-x: hidden; }
        
        .azure-outer-sidebar.collapsed { width: 50px !important; min-width: 50px !important; }
        .azure-outer-sidebar.collapsed .outer-search-box input, 
        .azure-outer-sidebar.collapsed .outer-search-box .ri-filter-3-line,
        .azure-outer-sidebar.collapsed .outer-nav-item span,
        .azure-outer-sidebar.collapsed .outer-nav-group-title,
        .azure-outer-sidebar.collapsed .outer-footer span { display: none !important; }
        
        .azure-outer-sidebar.collapsed .outer-nav-item { justify-content: center; padding: 12px 0; border-left: none; }
        .azure-outer-sidebar.collapsed .outer-nav-item i { margin: 0; font-size: 1.3rem; }
        .azure-outer-sidebar.collapsed .outer-footer { padding: 15px 0; justify-content: center; }
        .azure-outer-sidebar.collapsed .outer-search-box { justify-content: center; padding: 15px 0; }
        .azure-outer-sidebar.collapsed .outer-search-box .collapse-btn { margin: 0 !important; transform: rotate(180deg); }

        .azure-inner-sidebar.collapsed { width: 50px !important; min-width: 50px !important; }
        .azure-inner-sidebar.collapsed .inner-header-text,
        .azure-inner-sidebar.collapsed .inner-nav-item span,
        .azure-inner-sidebar.collapsed .inner-nav-group-title,
        .azure-inner-sidebar.collapsed .inner-nav-group-content { display: none !important; }
        
        .azure-inner-sidebar.collapsed .inner-header { padding: 20px 0; justify-content: center; }
        .azure-inner-sidebar.collapsed .inner-header .collapse-btn { transform: rotate(180deg); }
        .azure-inner-sidebar.collapsed .inner-nav-item { justify-content: center; padding: 12px 0; }
        .azure-inner-sidebar.collapsed .inner-nav-item i { margin: 0; font-size: 1.3rem; }
    

/* AZURE LAYOUT OVERRIDES FOR LEGACY PAGES */
.azure-main-content .app-page, 
.azure-main-content .page-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 1rem !important; /* give it some breathing room but don't limit width */
    width: 100% !important;
}

.azure-main-content .view-panel {
    max-width: 100% !important;
}

/* AZURE INNER SIDEBAR COLLAPSE FIXES */
.azure-inner-sidebar.collapsed {
    width: 50px !important;
    min-width: 50px !important;
}

.azure-inner-sidebar.collapsed .inner-header-text,
.azure-inner-sidebar.collapsed .inner-nav-item span,
.azure-inner-sidebar.collapsed .inner-nav-group-title span,
.azure-inner-sidebar.collapsed .inner-nav-subgroup-title span,
.azure-inner-sidebar.collapsed .inner-nav-subitem-title span,
.azure-inner-sidebar.collapsed .accordion-icon {
    display: none !important;
}

.azure-inner-sidebar.collapsed .inner-nav-group-title,
.azure-inner-sidebar.collapsed .inner-nav-subgroup-title,
.azure-inner-sidebar.collapsed .inner-nav-subitem-title {
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: center !important;
}

.azure-inner-sidebar.collapsed .left {
    gap: 0 !important;
    justify-content: center !important;
    width: 100%;
}

.azure-inner-sidebar.collapsed .inner-nav-subgroup-container,
.azure-inner-sidebar.collapsed .inner-nav-subitem-container {
    padding-left: 0 !important;
}

/* FIX INLINE PADDING OVERRIDE FOR INNER NAV ITEM */
.azure-inner-sidebar.collapsed .inner-nav-item {
    padding: 12px 0 !important;
}

/* ==========================================================================
   AZURE DESIGN SYSTEM - GLOBAL TYPOGRAPHY UNIFICATION (ZORUNLU KURAL)
   ========================================================================== */
html, body, .azure-layout, .azure-main-content,
input, select, textarea, button, table, th, td, h1, h2, h3, h4, h5, h6, p, span, a, label, div {
    font-family: 'Segoe UI', 'Segoe UI Web (West European)', -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif !important;
}

/* Exceptions for RemixIcon */
[class^="ri-"], [class*=" ri-"], .remixicon, i[class*="ri-"], .ri {
    font-family: 'remixicon' !important;
}

/* Exceptions for Monospace code/numbers */
code, pre, kbd, samp, .monospace, .font-mono {
    font-family: Consolas, 'Courier New', monospace !important;
}


/* ==========================================================================
   GLOBAL PRINT SUPPRESSION FOR AZURE NAVIGATION & SIDEBARS
   ========================================================================== */
@media print {
    #azure-app-layout > .azure-outer-sidebar,
    .azure-outer-sidebar,
    .azure-inner-sidebar,
    .main-layout > .top-bar,
    .azure-topbar,
    .top-bar,
    .inner-header,
    .collapse-btn,
    .no-print {
        display: none !important;
        visibility: hidden !important;
        width: 0 !important;
        height: 0 !important;
        position: absolute !important;
        left: -9999px !important;
        overflow: hidden !important;
    }

    body, html, #azure-app-layout, .main-layout, .content-row,
    .azure-main-content, #azureMainContentWrapper {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        left: 0 !important;
        top: 0 !important;
        background: #ffffff !important;
        overflow: visible !important;
        display: block !important;
    }
}
