/* ACR Lisans & Web Yazılımları - Modern CSS */

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

:root {
    --primary: #667eea;
    --primary-dark: #5568d3;
    --secondary: #764ba2;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --info: #3b82f6;
    --dark: #1f2937;
    --light: #f9fafb;
    --border: #e5e7eb;
    --text: #374151;
    --text-muted: #6b7280;
    --sidebar-width: 260px;
    --topbar-height: 60px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    color: var(--text);
    background: var(--light);
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
    position: relative;
}

/* Login Page - 2025 Modern Design */
.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0f172a;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

/* Animated Background */
.login-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.4;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #667eea 0%, transparent 70%);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, #764ba2 0%, transparent 70%);
    bottom: -150px;
    right: -150px;
    animation-delay: 7s;
}

.orb-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, #f59e0b 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 14s;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(50px, -50px) scale(1.1); }
    66% { transform: translate(-50px, 50px) scale(0.9); }
}

/* Login Container */
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 20px;
    position: relative;
    z-index: 10;
    box-sizing: border-box;
    margin: 0 auto;
}

.login-box {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3),
                0 0 0 1px rgba(255,255,255,0.1) inset;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f59e0b 100%);
}

/* Brand Section */
.login-brand {
    text-align: center;
    margin-bottom: 40px;
}

.brand-icon {
    margin: 0 auto 20px;
    width: 64px;
    height: 64px;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.login-brand h1 {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.brand-tagline {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.5px;
}

/* Modern Form */
.modern-form {
    margin-bottom: 24px;
}

.modern-input-group {
    position: relative;
    margin-bottom: 24px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    z-index: 3;
    transition: all 0.3s;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.modern-input-group.focused .input-icon {
    transform: translateY(-50%) scale(1.1);
}

.modern-input {
    width: 100%;
    padding: 16px 16px 16px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.3s;
    background: white;
    position: relative;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.modern-input::placeholder {
    color: transparent;
}

.floating-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 15px;
    transition: all 0.3s;
    pointer-events: none;
    background: white;
    padding: 0 4px;
}

.modern-input:focus + .floating-label,
.modern-input:not(:placeholder-shown) + .floating-label {
    top: 0;
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
}

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: all 0.2s;
}

.password-toggle:hover {
    transform: translateY(-50%) scale(1.1);
}

/* Checkbox */
.form-options {
    margin-bottom: 24px;
}

.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-container input {
    display: none;
}

.checkmark {
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    margin-right: 10px;
    position: relative;
    transition: all 0.3s;
}

.checkbox-container input:checked + .checkmark {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-color: var(--primary);
}

.checkbox-container input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.checkbox-label {
    font-size: 14px;
    color: var(--text);
}

/* Modern Button */
.modern-btn {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s;
}

.modern-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.modern-btn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 20px;
    transition: transform 0.3s;
}

.modern-btn:hover .btn-icon {
    transform: translateX(4px);
}

/* Modern Alerts */
.modern-alert {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
}

.alert-icon {
    font-size: 20px;
}

/* Login Footer */
.login-footer {
    text-align: center;
    margin-top: 32px;
}

.footer-features {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--text-muted);
    font-weight: 500;
}

.feature-icon {
    font-size: 20px;
}

.copyright {
    color: var(--text-muted);
    font-size: 12px;
    margin: 0;
}

/* Decorative Elements */
.login-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.deco-circle {
    position: absolute;
    width: 300px;
    height: 300px;
    border: 2px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    top: -150px;
    right: -150px;
    animation: rotate 30s linear infinite;
}

.deco-square {
    position: absolute;
    width: 200px;
    height: 200px;
    border: 2px solid rgba(255,255,255,0.05);
    bottom: -100px;
    left: -100px;
    transform: rotate(45deg);
    animation: rotate 40s linear infinite reverse;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Responsive - Login Page */
@media (max-width: 768px) {
    .login-page {
        padding: 0;
        overflow-x: hidden;
    }
    
    .login-container {
        padding: 15px;
        max-width: 100%;
        width: 100%;
    }
    
    .login-box {
        padding: 32px 20px;
        border-radius: 16px;
        margin: 0;
    }
    
    .login-brand {
        margin-bottom: 30px;
    }
    
    .brand-icon {
        width: 56px;
        height: 56px;
    }
    
    .login-brand h1 {
        font-size: 24px;
    }
    
    .brand-tagline {
        font-size: 12px;
    }
    
    .modern-input {
        font-size: 16px; /* iOS zoom önleme */
        padding: 14px 16px;
    }
    
    .modern-input:focus {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .modern-btn {
        padding: 14px;
        font-size: 15px;
    }
    
    .footer-features {
        flex-wrap: wrap;
        gap: 16px;
        justify-content: center;
    }
    
    .feature-item {
        font-size: 10px;
    }
    
    .feature-icon {
        font-size: 18px;
    }
    
    .copyright {
        font-size: 11px;
    }
    
    /* Cloudflare Turnstile mobil */
    .cf-turnstile {
        transform: scale(0.9);
        margin: 15px auto;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 10px;
    }
    
    .login-box {
        padding: 24px 16px;
        border-radius: 12px;
    }
    
    .login-brand {
        margin-bottom: 24px;
    }
    
    .brand-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
    }
    
    .login-brand h1 {
        font-size: 20px;
    }
    
    .brand-tagline {
        font-size: 11px;
    }
    
    .modern-input-group {
        margin-bottom: 20px;
    }
    
    .modern-input {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    .floating-label {
        font-size: 14px;
        left: 14px;
    }
    
    .modern-input:focus + .floating-label,
    .modern-input:not(:placeholder-shown) + .floating-label {
        font-size: 11px;
    }
    
    .password-toggle {
        right: 14px;
        font-size: 18px;
    }
    
    .modern-btn {
        padding: 12px;
        font-size: 14px;
    }
    
    .form-options {
        margin-bottom: 20px;
    }
    
    .modern-alert {
        padding: 12px 14px;
        font-size: 13px;
    }
    
    .footer-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .feature-item {
        font-size: 9px;
    }
    
    .cf-turnstile {
        transform: scale(0.85);
    }
}

@media (max-width: 360px) {
    .login-box {
        padding: 20px 12px;
    }
    
    .login-brand h1 {
        font-size: 18px;
    }
    
    .modern-input {
        padding: 10px 12px;
    }
    
    .modern-btn {
        padding: 10px;
        font-size: 13px;
    }
}

/* Admin Layout */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

/* Sidebar - 2025 Modern Design */
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
    color: white;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    overflow-y: auto;
    overflow-x: hidden;
    z-index: 1000;
    transition: transform 0.3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-nav {
    padding: 24px 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    margin-bottom: 6px;
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    transition: all 0.3s;
    border-radius: 12px;
    position: relative;
    font-weight: 500;
    cursor: pointer;
    pointer-events: auto;
    z-index: 1;
}

.nav-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 0 4px 4px 0;
    transition: all 0.3s;
}

.nav-item:hover {
    background: rgba(255,255,255,0.08);
    color: white;
    transform: translateX(4px);
}

.nav-item:hover::before {
    width: 4px;
    height: 24px;
}

.nav-item.active {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.15) 0%, rgba(118, 75, 162, 0.15) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.nav-item.active::before {
    width: 4px;
    height: 32px;
}

.nav-icon {
    margin-right: 14px;
    font-size: 20px;
    width: 24px;
    text-align: center;
    transition: transform 0.3s;
}

.nav-item:hover .nav-icon {
    transform: scale(1.1);
}

/* Nav Group (Accordion) */
.nav-group {
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255,255,255,0.02);
    transition: all 0.3s;
    position: relative;
    z-index: 1;
}

.nav-group.active {
    background: rgba(255,255,255,0.05);
}

.nav-group-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    cursor: pointer;
    color: rgba(255,255,255,0.8);
    font-weight: 600;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    user-select: none;
    position: relative;
    z-index: 3;
    pointer-events: auto;
}

.nav-group-header:hover {
    background: rgba(255,255,255,0.08);
    color: white;
}

.nav-group-icon {
    margin-right: 10px;
    font-size: 16px;
}

.nav-group-title {
    flex: 1;
}

.nav-group-arrow {
    font-size: 10px;
    transition: transform 0.3s;
    color: rgba(255,255,255,0.5);
}

.nav-group.active .nav-group-arrow {
    color: rgba(255,255,255,0.8);
}

.nav-group-items {
    padding: 4px 0;
    animation: slideDown 0.3s ease;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

.nav-group-items .nav-item {
    padding-left: 48px;
    margin-bottom: 2px;
    font-size: 14px;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    cursor: pointer;
}

.nav-badge {
    margin-left: auto;
    background: #ef4444;
    color: white;
    border-radius: 10px;
    padding: 2px 8px;
    font-size: 11px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}

.nav-item.active .nav-badge {
    background: rgba(239, 68, 68, 0.8);
}

.sidebar-footer {
    position: relative;
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 12px;
    background: rgba(0,0,0,0.2);
    z-index: 10;
    margin-top: auto;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    margin-left: var(--sidebar-width);
    width: calc(100% - var(--sidebar-width));
    min-height: 100vh;
    overflow-x: hidden;
    max-width: 100vw;
    box-sizing: border-box;
}

/* Topbar - 2025 Modern Design */
.topbar {
    height: var(--topbar-height);
    background: white;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.topbar-left {
    display: flex;
    align-items: center;
    gap: 24px;
}

.sidebar-toggle {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 10px;
    display: none;
    border-radius: 10px;
    transition: all 0.3s;
}

.sidebar-toggle:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%);
    transform: scale(1.05);
}

.page-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
}

.topbar-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 8px 16px;
    border-radius: 50px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    cursor: pointer;
    transition: all 0.3s;
}

.user-menu:hover {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15);
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
    position: relative;
}

.user-avatar::after {
    content: '';
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    background: #10b981;
    border: 2px solid white;
    border-radius: 50%;
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
}

.user-role {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Content Wrapper */
.content-wrapper {
    padding: 30px;
    background: #f8f9fa;
    min-height: calc(100vh - var(--topbar-height));
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    width: 100%;
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    flex-wrap: wrap;
    gap: 15px;
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
    flex: 1;
    min-width: 200px;
}

/* Cards - Modern Design */
.card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    margin-bottom: 24px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

.card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.card-header {
    padding: 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(255,255,255,1) 0%, rgba(249,250,251,1) 100%);
}

.card-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 8px;
}

.card-body {
    padding: 24px;
}

/* Stats Grid - Modern Design */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 0;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: all 0.3s ease;
    position: relative;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stat-card-gradient {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,1) 100%);
}

.stat-card-gradient.blue-gradient {
    border-top: 4px solid #3b82f6;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, white 50%);
}

.stat-card-gradient.green-gradient {
    border-top: 4px solid #10b981;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, white 50%);
}

.stat-card-gradient.purple-gradient {
    border-top: 4px solid #8b5cf6;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, white 50%);
}

.stat-card-gradient.orange-gradient {
    border-top: 4px solid #f59e0b;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.05) 0%, white 50%);
}

.stat-card-gradient.red-gradient {
    border-top: 4px solid #ef4444;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.05) 0%, white 50%);
}

.stat-card-gradient.teal-gradient {
    border-top: 4px solid #14b8a6;
    background: linear-gradient(135deg, rgba(20, 184, 166, 0.05) 0%, white 50%);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 20px 0;
}

.stat-icon-large {
    width: 64px;
    height: 64px;
    background: rgba(255,255,255,0.5);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.stat-trend {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.stat-trend.positive {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.stat-trend.negative {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.stat-trend.neutral {
    background: rgba(107, 114, 128, 0.1);
    color: #6b7280;
}

.trend-icon {
    font-size: 14px;
}

.stat-body {
    padding: 20px;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    color: var(--dark);
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}

.stat-detail {
    font-size: 12px;
    color: var(--text-muted);
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.quick-action-card {
    background: white;
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.quick-action-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.quick-action-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 4px;
}

.quick-action-content p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
}

.table thead th {
    text-align: left;
    padding: 14px 12px;
    background: var(--light);
    font-weight: 600;
    font-size: 13px;
    color: var(--text);
    border-bottom: 2px solid var(--border);
    vertical-align: middle;
    white-space: nowrap;
}

.table tbody td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
    word-wrap: break-word;
}

.table tbody tr {
    transition: background 0.2s;
}

.table tbody tr:hover {
    background: var(--light);
}

/* Table içindeki button grupları hizalama */
.table td .btn,
.table td .btn-sm {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    margin: 0 2px;
    white-space: nowrap;
    min-width: auto;
}

.table td {
    white-space: nowrap;
    vertical-align: middle;
}

.table td:has(.btn) {
    white-space: normal;
    text-align: center;
}

/* Button grupları için flex container */
.btn-group {
    display: inline-flex;
    gap: 4px;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.badge-active, .badge-completed, .badge-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.badge-inactive, .badge-cancelled, .badge-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.badge-pending, .badge-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.badge-expired {
    background: rgba(107, 114, 128, 0.1);
    color: #4b5563;
}

.badge-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
}

/* Category Badge */
.category-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s;
}

.category-badge:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Category Logo - 64x64 */
.category-logo {
    width: 64px;
    height: 64px;
    object-fit: contain;
    border-radius: 8px;
    border: 2px solid #e5e7eb;
    background: white;
    padding: 4px;
    transition: all 0.3s;
}

.category-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Product Logo - 256x256 */
.product-logo {
    width: 256px;
    height: 256px;
    object-fit: contain;
    border-radius: 12px;
    border: 2px solid #e5e7eb;
    background: white;
    padding: 8px;
    transition: all 0.3s;
}

.product-logo:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

/* Logo Preview in Forms */
.category-logo-preview,
.product-logo-preview {
    object-fit: contain;
    background: #f9fafb;
    transition: all 0.3s;
}

.category-logo-preview:hover,
.product-logo-preview:hover {
    transform: scale(1.05);
}

/* Responsive Logo Sizes */
@media (max-width: 768px) {
    .category-logo {
        width: 48px;
        height: 48px;
    }
    
    .product-logo {
        width: 128px;
        height: 128px;
    }
}

/* Color Badge (for category color preview) */
.color-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    border-radius: 4px;
    border: 2px solid rgba(0,0,0,0.1);
    margin-right: 6px;
    vertical-align: middle;
}

/* Buttons - 2025 Modern Design */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.3);
}

.btn-success {
    background: linear-gradient(135deg, var(--success) 0%, #059669 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, var(--danger) 0%, #dc2626 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-info {
    background: linear-gradient(135deg, var(--info) 0%, #2563eb 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1.2;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
    line-height: 1;
}

.btn-block {
    display: block;
    width: 100%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    line-height: 1.5;
}

/* Checkbox in label hizalama */
.form-group label input[type="checkbox"] {
    margin-right: 8px;
    vertical-align: middle;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--primary);
}

.form-group label input[type="checkbox"]:not(:first-child) {
    margin-left: 0;
}

/* Checkbox container hizalama */
.form-group label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.form-control,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-control:focus,
input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--primary);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.alert-success {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-error, .alert-danger {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.alert-info {
    background: rgba(59, 130, 246, 0.1);
    color: #2563eb;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    padding: 30px;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 20px;
    font-weight: 600;
}

/* Grid */
.row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.col-md-6 {
    grid-column: span 1;
}

/* Utilities */
.mt-30 { margin-top: 30px; }
.mb-20 { margin-bottom: 20px; }
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }

/* Activity List - Modern Timeline */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
    padding-left: 30px;
}

.activity-list::before {
    content: '';
    position: absolute;
    left: 18px;
    top: 20px;
    bottom: 20px;
    width: 2px;
    background: linear-gradient(to bottom, var(--primary) 0%, var(--border) 100%);
}

.activity-item {
    display: flex;
    gap: 16px;
    padding: 12px 0;
    position: relative;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: white;
    border: 3px solid var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 18px;
    position: absolute;
    left: -30px;
    z-index: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.activity-content {
    flex: 1;
    background: var(--light);
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.2s;
}

.activity-item:hover .activity-content {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.activity-text {
    font-size: 14px;
    color: var(--text);
    font-weight: 500;
}

.activity-text strong {
    color: var(--dark);
    font-weight: 600;
}

.activity-time {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.activity-time::before {
    content: '🕐';
    font-size: 10px;
}

/* Page Header - Enhanced */
/* page-header stilleri yukarıda tanımlı */

/* Notification System */
.notification {
    position: fixed;
    top: -100px;
    right: 20px;
    background: white;
    padding: 16px 24px;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 10000;
    transition: all 0.3s ease;
    min-width: 300px;
}

.notification.show {
    top: 20px;
}

.notification-success {
    border-left: 4px solid var(--success);
}

.notification-error {
    border-left: 4px solid var(--danger);
}

.notification-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 18px;
}

.notification-success .notification-icon {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.notification-error .notification-icon {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
}

.notification-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--dark);
}

/* Profile Dropdown */
.profile-dropdown {
    position: absolute;
    top: calc(var(--topbar-height) + 8px);
    right: 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    min-width: 280px;
    z-index: 2000;
    overflow: hidden;
    animation: dropdownSlide 0.3s ease;
}

@keyframes dropdownSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-header {
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-user-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    border: 2px solid rgba(255,255,255,0.3);
}

.dropdown-user-name {
    font-weight: 600;
    font-size: 15px;
}

.dropdown-user-email {
    font-size: 12px;
    opacity: 0.9;
}

.dropdown-divider {
    height: 1px;
    background: var(--border);
    margin: 8px 0;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.2s;
}

.dropdown-item:hover {
    background: var(--light);
    padding-left: 24px;
}

.dropdown-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
}

.dropdown-text {
    font-size: 14px;
    font-weight: 500;
}

.logout-item {
    color: var(--danger);
}

.logout-item:hover {
    background: rgba(239, 68, 68, 0.05);
}

.dropdown-arrow {
    font-size: 10px;
    margin-left: 8px;
    transition: transform 0.3s;
}

.user-menu:hover .dropdown-arrow {
    transform: translateY(2px);
}

/* Notification Button */
.topbar-notifications {
    position: relative;
}

.notification-btn {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 8px;
    position: relative;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notification-btn:hover {
    transform: scale(1.1);
}

.notification-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    border-radius: 10px;
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 600;
    min-width: 18px;
    text-align: center;
    line-height: 1.2;
}

.notification-badge:empty {
    display: none;
}

/* Notification Dropdown */
.notification-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 380px;
    max-height: 500px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    z-index: 2000;
    overflow: hidden;
    animation: dropdownSlide 0.3s ease;
    display: flex;
    flex-direction: column;
}

.notification-dropdown-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.notification-dropdown-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--dark);
}

.notification-mark-all {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
}

.notification-mark-all:hover {
    background: rgba(102, 126, 234, 0.1);
}

.notification-dropdown-body {
    flex: 1;
    overflow-y: auto;
    max-height: 400px;
}

.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

.notification-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    gap: 12px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.notification-item:hover {
    background: #f9fafb;
}

.notification-item.unread {
    background: rgba(102, 126, 234, 0.03);
    border-left: 3px solid var(--primary);
}

.notification-item.unread::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
}

.notification-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(102, 126, 234, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.notification-item-content {
    flex: 1;
    min-width: 0;
}

.notification-item-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--dark);
    margin-bottom: 4px;
}

.notification-item-message {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 6px;
    line-height: 1.4;
}

.notification-item-time {
    font-size: 11px;
    color: var(--text-muted);
}

.notification-dropdown-footer {
    padding: 12px 20px;
    border-top: 1px solid var(--border);
    text-align: center;
    background: #f9fafb;
}

.notification-dropdown-footer a {
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
}

.notification-dropdown-footer a:hover {
    color: var(--primary-dark);
}

/* Balance Quick View */
.balance-quick-view {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(5, 150, 105, 0.1) 100%);
    padding: 8px 16px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.balance-icon {
    font-size: 18px;
}

.balance-amount {
    font-weight: 700;
    font-size: 15px;
    color: #059669;
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.search-box {
    position: relative;
}

.search-input {
    padding: 10px 16px 10px 44px;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 14px;
    min-width: 250px;
    transition: all 0.3s;
    position: relative;
    z-index: 2;
    background: white;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

.search-box::before {
    content: '🔍';
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    z-index: 1;
    pointer-events: none;
    line-height: 1;
}

/* Collapsible Sidebar */
.sidebar.collapsed {
    width: 80px;
}

.sidebar.collapsed .sidebar-header h2 {
    font-size: 28px;
    text-align: center;
}

.sidebar.collapsed .nav-text {
    display: none;
}

.sidebar.collapsed .nav-item {
    justify-content: center;
    padding: 14px;
}

.sidebar.collapsed .nav-icon {
    margin-right: 0;
    font-size: 24px;
}

.sidebar.collapsed .sidebar-footer {
    padding: 12px 0;
}

.main-content.expanded {
    margin-left: 80px;
    width: calc(100% - 80px);
}

/* Product Catalog */
.products-catalog {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.product-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
    overflow: hidden;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    border-color: var(--primary);
}

.product-header {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    word-wrap: break-word;
}

.product-header > div:first-child {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
}

.product-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--dark);
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0;
}

.delivery-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}

.delivery-badge.automatic {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.delivery-badge.manual {
    background: rgba(245, 158, 11, 0.1);
    color: #d97706;
}

.product-description {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.6;
}

.product-features {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.feature-icon {
    font-size: 18px;
    width: 24px;
}

.feature-text {
    color: var(--text);
    font-weight: 500;
}

/* Order Summary */
.order-summary {
    background: var(--light);
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 20px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 16px;
    font-weight: 600;
}

.summary-total {
    font-size: 24px;
    color: var(--primary);
    font-weight: 800;
}

/* Licenses Grid */
.licenses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
}

.license-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary);
    transition: all 0.3s;
}

.license-card:hover {
    transform: translateX(4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.license-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.license-header h4 {
    font-size: 16px;
    font-weight: 600;
    color: var(--dark);
}

.license-key-box {
    background: var(--light);
    padding: 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.license-key {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
}

.copy-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.license-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
}

.info-label {
    color: var(--text-muted);
}

.info-value {
    color: var(--dark);
    font-weight: 600;
}

.text-warning {
    color: var(--warning) !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 24px;
    color: var(--dark);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* Balance Card Large */
.balance-card-large {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 20px;
    padding: 40px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
}

.balance-bg {
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" fill="rgba(255,255,255,0.05)"/></svg>');
    opacity: 0.3;
}

.balance-content {
    position: relative;
    z-index: 1;
    color: white;
}

.balance-label {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 12px;
}

.balance-value {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.balance-note {
    font-size: 13px;
    opacity: 0.8;
    margin: 0;
}

.mt-30 {
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
    
    .row {
        grid-template-columns: 1fr;
    }
    
    .content-wrapper {
        padding: 15px;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
        padding: 16px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    .stat-value {
        font-size: 28px;
    }
}

/* Register Form Styles */
.register-section {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.register-section .form-group {
    margin-bottom: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 10% auto;
    padding: 0;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.3);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    color: #333;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: #000;
}

.modal-content .form-group {
    padding: 20px;
}

.modal-content .form-group:last-child {
    padding-bottom: 20px;
}

/* Pending Badge */
.badge-pending {
    background: #f59e0b;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

/* Settings Page Styles */
.settings-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border);
    flex-wrap: wrap;
}

.settings-tab {
    padding: 12px 24px;
    cursor: pointer;
    border: none;
    background: transparent;
    color: var(--text);
    font-size: 14px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all 0.3s;
    position: relative;
}

.settings-tab:hover {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.05);
}

.settings-tab.active {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.settings-content {
    display: none;
    animation: fadeIn 0.3s;
}

.settings-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.settings-form {
    max-width: 800px;
}

.settings-form .form-group {
    margin-bottom: 20px;
}

.settings-form .form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text);
}

.settings-form .form-group input[readonly],
.settings-form .form-group input[disabled] {
    background: var(--light);
    cursor: not-allowed;
    opacity: 0.7;
}

.settings-form .form-text {
    display: block;
    margin-top: 5px;
    font-size: 12px;
    color: var(--text-muted);
}

.migration-banner {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    border: 1px solid #fbbf24;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(251, 191, 36, 0.2);
}

.migration-banner.hidden {
    display: none;
}

.migration-banner strong {
    color: #92400e;
}

.provider-settings {
    margin-top: 20px;
    padding: 20px;
    background: var(--light);
    border-radius: 8px;
    border-left: 3px solid var(--primary);
}

.provider-settings h4 {
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--primary);
}

/* Responsive Settings */
@media (max-width: 768px) {
    .settings-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .settings-tab {
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
        margin-bottom: 0;
    }
    
    .settings-tab.active {
        border-left-color: var(--primary);
        border-bottom-color: var(--border);
    }
    
    .migration-banner {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .settings-form {
        max-width: 100%;
    }
    
    .notification-dropdown {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }
}

/* Genel Hizalama Düzeltmeleri */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.page-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: var(--dark);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Form hizalamaları */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Card içi hizalamalar */
.card-body {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Table responsive */
@media (max-width: 768px) {
    .table {
        font-size: 12px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 6px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
    }
}

/* ============================================
   KAPSAMLI MOBİL UYUMLULUK
   ============================================ */

@media (max-width: 768px) {
    /* Sidebar Mobil */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    /* Main Content */
    .main-content {
        margin-left: 0 !important;
        width: 100%;
    }
    
    /* Topbar */
    .topbar {
        padding: 12px 16px;
    }
    
    .topbar-left {
        gap: 12px;
    }
    
    .sidebar-toggle {
        display: block !important;
        background: var(--primary);
        color: white;
        border: none;
        padding: 8px 12px;
        border-radius: 8px;
        cursor: pointer;
        font-size: 18px;
    }
    
    /* Page Header */
    .page-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .page-header h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
    }
    
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
    }
    
    /* Content Wrapper */
    .content-wrapper {
        padding: 12px;
    }
    
    /* Cards */
    .card {
        margin-bottom: 16px;
        border-radius: 12px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Tables - Responsive Scroll */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .table {
        min-width: 600px;
        font-size: 12px;
        width: 100%;
    }
    
    .table th,
    .table td {
        padding: 8px 6px;
        white-space: nowrap;
    }
    
    /* Orders Table - Mobil için özel */
    .orders-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .orders-table table {
        min-width: 600px;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 10px 8px;
        font-size: 12px;
    }
    
    .order-items-compact {
        flex-direction: column;
        gap: 6px;
    }
    
    .order-item-compact {
        width: 100%;
        justify-content: space-between;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control {
        width: 100%;
        font-size: 16px; /* iOS zoom önleme */
    }
    
    .row {
        display: flex;
        flex-direction: column;
        gap: 16px;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        width: 100%;
    }
    
    /* Buttons */
    .btn {
        width: 100%;
        padding: 12px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-value {
        font-size: 24px;
    }
    
    /* Category Grid */
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 16px;
    }
    
    .category-name {
        font-size: 13px;
    }
    
    /* Products Catalog */
    .products-catalog {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .product-card {
        padding: 16px;
    }
    
    /* Modal */
    .modal {
        padding: 12px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        max-height: 90vh;
        margin: 0;
        border-radius: 12px 12px 0 0;
        overflow-y: auto;
    }
    
    .modal-header {
        padding: 16px;
        position: sticky;
        top: 0;
        background: white;
        z-index: 10;
        border-bottom: 1px solid var(--border);
    }
    
    .modal-body {
        padding: 16px;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
    }
    
    /* Badges */
    .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* License Items */
    .license-item {
        padding: 10px;
    }
    
    .license-key-compact {
        font-size: 11px;
        padding: 4px 8px;
        word-break: break-all;
    }
    
    .copy-btn-small {
        padding: 4px 6px;
        font-size: 11px;
    }
    
    /* Account Info */
    .account-info {
        padding: 8px;
        font-size: 11px;
    }
    
    /* Order Details */
    .order-details-content {
        padding: 16px;
    }
    
    /* Breadcrumb */
    .breadcrumb {
        flex-wrap: wrap;
        gap: 8px;
        font-size: 12px;
    }
    
    .breadcrumb-item {
        font-size: 12px;
    }
    
    /* Empty State */
    .empty-state {
        padding: 40px 20px;
    }
    
    .empty-icon {
        font-size: 48px;
    }
    
    /* Topbar User Info */
    .topbar-user {
        gap: 8px;
    }
    
    .user-name {
        display: none;
    }
    
    /* Notification Dropdown */
    .notification-dropdown {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
        max-width: none;
    }
    
    /* Settings Tabs */
    .settings-tabs {
        flex-direction: column;
        border-bottom: none;
    }
    
    .settings-tab {
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
    }
    
    .settings-tab.active {
        border-left-color: var(--primary);
    }
    
    /* Balance Card */
    .balance-card-large {
        padding: 24px;
    }
    
    .balance-value {
        font-size: 32px;
    }
    
    /* Quick Actions */
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Footer */
    .sidebar-footer {
        padding: 12px;
    }
}

/* Çok küçük ekranlar (480px ve altı) */
@media (max-width: 480px) {
    .category-grid {
        grid-template-columns: 1fr;
    }
    
    .orders-table th,
    .orders-table td {
        padding: 8px 4px;
        font-size: 11px;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .stat-value {
        font-size: 20px;
    }
    
    .balance-value {
        font-size: 28px;
    }
    
    .modal-content {
        border-radius: 0;
        max-height: 100vh;
    }
    
    .modal-body {
        max-height: calc(100vh - 100px);
    }
}

/* Landscape mod için */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
    }
    
    .modal-body {
        max-height: calc(95vh - 100px);
    }
}

/* ============================================
   KAPSAMLI MOBİL UYUMLULUK - TÜM SİSTEM
   ============================================ */

/* Tablet ve Mobil (768px ve altı) */
@media (max-width: 768px) {
    /* Genel Düzenlemeler */
    html, body {
        font-size: 14px;
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        position: relative;
    }
    
    /* Tüm genişlik kontrolleri */
    * {
        max-width: 100%;
        box-sizing: border-box;
    }
    
    img, video, iframe, embed, object {
        max-width: 100%;
        height: auto;
    }
    
    table {
        width: 100% !important;
        table-layout: auto;
        font-size: 12px;
    }
    
    /* Sidebar Mobil */
    .sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        z-index: 1000;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        box-shadow: 2px 0 10px rgba(0,0,0,0.1);
        width: 280px;
    }
    
    .sidebar.active {
        transform: translateX(0);
    }
    
    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        display: none;
    }
    
    .sidebar-overlay.active {
        display: block;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
    }
    
    .sidebar-toggle {
        display: block;
    }
    
    /* Topbar Mobil */
    .topbar {
        padding: 0 15px;
        height: 56px;
    }
    
    .topbar-left {
        gap: 12px;
    }
    
    .page-title {
        font-size: 16px;
    }
    
    .topbar-right {
        gap: 8px;
    }
    
    .user-menu {
        padding: 6px 12px;
        gap: 8px;
    }
    
    .user-info {
        display: none;
    }
    
    .user-avatar {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .balance-quick-view {
        padding: 6px 12px;
        font-size: 13px;
    }
    
    .balance-icon {
        font-size: 16px;
    }
    
    .balance-amount {
        font-size: 13px;
    }
    
    /* Bildirim Dropdown Mobil */
    .topbar-notifications {
        position: relative;
    }
    
    .notification-btn {
        padding: 8px;
        width: 40px;
        height: 40px;
    }
    
    .notification-icon {
        font-size: 18px;
    }
    
    .notification-badge {
        width: 18px;
        height: 18px;
        font-size: 10px;
        top: 2px;
        right: 2px;
    }
    
    .notification-dropdown {
        position: fixed;
        top: 56px;
        left: 10px;
        right: 10px;
        width: auto;
        max-height: calc(100vh - 80px);
        z-index: 1001;
    }
    
    /* Content Wrapper */
    .content-wrapper {
        padding: 12px;
    }
    
    /* Page Header Mobil */
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 16px;
        margin-bottom: 16px;
    }
    
    .page-header h1 {
        font-size: 20px;
        margin: 0;
    }
    
    .header-actions {
        width: 100%;
        flex-direction: column;
        gap: 8px;
    }
    
    .header-actions .btn {
        width: 100%;
    }
    
    /* Search Box Mobil */
    .search-box {
        width: 100%;
    }
    
    .search-input {
        width: 100%;
        min-width: auto;
        font-size: 16px; /* iOS zoom önleme */
        padding: 12px 16px 12px 44px;
    }
    
    /* Cards Mobil */
    .card {
        border-radius: 12px;
        margin-bottom: 16px;
    }
    
    .card-header {
        padding: 16px;
    }
    
    .card-header h3 {
        font-size: 18px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    /* Stats Grid Mobil */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 16px;
    }
    
    .stat-card-value {
        font-size: 24px;
    }
    
    /* Grid Layouts Mobil */
    .row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .col-md-6,
    .col-md-4,
    .col-md-3 {
        width: 100%;
    }
    
    /* Products Catalog Mobil */
    .products-catalog {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .product-card {
        padding: 16px;
    }
    
    .product-header h3 {
        font-size: 16px;
    }
    
    .product-price {
        font-size: 20px;
    }
    
    /* Categories Grid Mobil */
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 16px;
    }
    
    .category-card h3 {
        font-size: 14px;
    }
    
    /* Tables Mobil - Kart Görünümü */
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .table {
        font-size: 13px;
        min-width: 600px;
    }
    
    .table thead th,
    .table tbody td {
        padding: 10px 8px;
    }
    
    /* Forms Mobil */
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control {
        font-size: 16px; /* iOS zoom önleme */
        padding: 12px 16px;
        width: 100%;
    }
    
    .form-control:focus {
        font-size: 16px; /* iOS zoom önleme */
    }
    
    textarea.form-control {
        min-height: 120px;
        font-size: 16px;
    }
    
    select.form-control {
        font-size: 16px;
        padding: 12px 16px;
    }
    
    /* Buttons Mobil */
    .btn {
        padding: 12px 20px;
        font-size: 15px;
        width: 100%;
        margin-bottom: 8px;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-group .btn {
        width: 100%;
        margin-bottom: 8px;
    }
    
    /* Modals Mobil */
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        margin: 0;
        border-radius: 12px 12px 0 0;
        max-height: 90vh;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        top: auto;
        transform: translateY(0);
    }
    
    .modal-header {
        padding: 16px;
        border-bottom: 1px solid var(--border);
    }
    
    .modal-header h2 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 16px;
        max-height: calc(90vh - 120px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .modal-footer {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
    }
    
    .modal-footer .btn {
        width: 100%;
        margin: 0;
    }
    
    /* Alerts Mobil */
    .alert {
        padding: 12px 16px;
        font-size: 14px;
        margin-bottom: 12px;
    }
    
    /* Badges Mobil */
    .badge {
        font-size: 11px;
        padding: 4px 8px;
    }
    
    /* Tabs Mobil */
    .settings-tabs {
        flex-direction: column;
        border-bottom: none;
        gap: 0;
    }
    
    .settings-tab {
        border-bottom: 1px solid var(--border);
        border-left: 3px solid transparent;
        margin-bottom: 0;
        text-align: left;
        padding: 12px 16px;
    }
    
    .settings-tab.active {
        border-left-color: var(--primary);
        border-bottom-color: var(--border);
    }
    
    /* Notification Filters Mobil */
    .notification-filters {
        flex-direction: column;
        gap: 8px;
    }
    
    .filter-btn {
        width: 100%;
        text-align: center;
    }
    
    /* Stats Cards Mobil */
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Notification Items Mobil */
    .notification-item {
        padding: 12px;
    }
    
    .notification-item-icon {
        font-size: 20px;
    }
    
    .notification-title {
        font-size: 14px;
    }
    
    .notification-message {
        font-size: 13px;
    }
    
    /* Pagination Mobil */
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination a,
    .pagination span {
        padding: 8px 10px;
        font-size: 13px;
    }
    
    /* Balance Card Mobil */
    .balance-card-large {
        padding: 24px;
        margin-bottom: 20px;
    }
    
    .balance-value {
        font-size: 32px;
    }
    
    /* Profile Dropdown Mobil */
    .profile-dropdown {
        position: fixed;
        top: 56px;
        right: 10px;
        left: 10px;
        width: auto;
        max-width: 400px;
        z-index: 1001;
    }
    
    /* Empty State Mobil */
    .empty-state {
        padding: 40px 16px;
    }
    
    .empty-icon {
        font-size: 64px;
    }
    
    .empty-state h3 {
        font-size: 20px;
    }
    
    /* Quick Actions Mobil */
    .quick-actions {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    /* Migration Banner Mobil */
    .migration-banner {
        flex-direction: column;
        gap: 12px;
        padding: 12px;
    }
    
    /* Provider Settings Mobil */
    .provider-settings {
        padding: 16px;
    }
}

/* Küçük Mobil Cihazlar (480px ve altı) */
@media (max-width: 480px) {
    /* Daha küçük fontlar */
    body {
        font-size: 13px;
    }
    
    .page-header h1 {
        font-size: 18px;
    }
    
    .card-header h3 {
        font-size: 16px;
    }
    
    /* Topbar */
    .topbar {
        padding: 0 12px;
        height: 52px;
    }
    
    .page-title {
        font-size: 14px;
    }
    
    /* Content */
    .content-wrapper {
        padding: 10px;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Cards */
    .card-body {
        padding: 12px;
        overflow-x: hidden;
    }
    
    /* Buttons */
    .btn {
        padding: 10px 16px;
        font-size: 14px;
    }
    
    /* Forms */
    .form-control {
        padding: 10px 14px;
        font-size: 16px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    /* Modals */
    .modal-content {
        max-height: 95vh;
        border-radius: 16px 16px 0 0;
        max-width: 100vw;
        width: 100%;
    }
    
    .modal-body {
        padding: 12px;
        max-height: calc(95vh - 100px);
        overflow-x: hidden;
    }
    
    /* Tables */
    .table {
        font-size: 12px;
        min-width: auto;
        width: 100%;
    }
    
    .table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        width: 100%;
    }
    
    .table thead th,
    .table tbody td {
        padding: 8px 6px;
    }
    
    /* Products Catalog */
    .product-card {
        padding: 12px;
    }
    
    /* Categories Grid */
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    /* Notification Dropdown */
    .notification-dropdown {
        left: 5px;
        right: 5px;
        max-height: calc(100vh - 70px);
    }
    
    /* Profile Dropdown */
    .profile-dropdown {
        right: 5px;
        left: 5px;
    }
    
    /* Balance Card */
    .balance-card-large {
        padding: 20px;
    }
    
    .balance-value {
        font-size: 28px;
    }
    
    /* Stats Cards */
    .stat-card {
        padding: 12px;
    }
    
    .stat-card-value {
        font-size: 20px;
    }
    
    /* Search Input */
    .search-input {
        padding: 10px 14px 10px 40px;
        font-size: 16px;
    }
    
    /* User Menu */
    .user-menu {
        padding: 4px 8px;
    }
    
    .user-avatar {
        width: 32px;
        height: 32px;
        font-size: 12px;
    }
}

/* Cloudflare Turnstile Widget Styling */
.cf-turnstile {
    margin: 20px auto;
    display: flex;
    justify-content: center;
}

.cf-turnstile iframe {
    border-radius: 8px;
}

/* Mobilde Turnstile widget'ı */
@media (max-width: 768px) {
    .cf-turnstile {
        margin: 15px auto;
        transform: scale(0.9);
    }
}

@media (max-width: 480px) {
    .cf-turnstile {
        margin: 12px auto;
        transform: scale(0.85);
    }
}

/* Çok Küçük Ekranlar (360px ve altı) */
@media (max-width: 360px) {
    html, body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }
    
    .topbar {
        padding: 0 10px;
    }
    
    .content-wrapper {
        padding: 8px;
        overflow-x: hidden;
        max-width: 100%;
    }
    
    /* Tüm genişlik kontrolleri */
    * {
        max-width: 100%;
    }
    
    img, video, iframe {
        max-width: 100%;
        height: auto;
    }
    
    table {
        width: 100% !important;
        table-layout: auto;
    }
    
    .page-header {
        padding: 12px;
    }
    
    .page-header h1 {
        font-size: 16px;
    }
    
    .card-body {
        padding: 10px;
    }
    
    .btn {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .balance-value {
        font-size: 24px;
    }
}

/* Touch Optimizasyonları */
@media (hover: none) and (pointer: coarse) {
    /* Touch cihazlar için */
    .btn,
    .nav-item,
    .notification-item,
    .product-card,
    .category-card {
        -webkit-tap-highlight-color: rgba(102, 126, 234, 0.2);
    }
    
    /* Daha büyük tıklanabilir alanlar */
    .btn {
        min-height: 44px;
    }
    
    .nav-item {
        min-height: 48px;
    }
    
    /* Scroll optimizasyonu */
    .modal-body,
    .notification-dropdown-body,
    .table-wrapper {
        -webkit-overflow-scrolling: touch;
    }
}

/* Landscape Orientation */
@media (max-width: 768px) and (orientation: landscape) {
    .modal-content {
        max-height: 95vh;
        border-radius: 12px;
    }
    
    .modal-body {
        max-height: calc(95vh - 100px);
    }
    
    .sidebar {
        width: 240px;
    }
    
    .topbar {
        height: 50px;
    }
    
    .notification-dropdown {
        top: 50px;
        max-height: calc(100vh - 60px);
    }
}

