
.page-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #4facfe 75%, #00f2fe 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: opacity, visibility;
}

.page-loader::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(100px);
}

.page-loader.loaded {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
    text-align: center;
    animation: contentFadeIn 0.4s ease-out forwards;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    width: 90%;
    max-width: 400px;
    will-change: opacity, transform;
    gap: 0;
}

/* Logo Center */
.loader-logo {
    margin: 0 0 1.5rem 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: logoFloat 3s ease-in-out infinite;
}

.loader-logo-image {
    width: 300px;
    height: auto;
    max-height: 130px;
    object-fit: contain;
    filter: brightness(0) invert(1) drop-shadow(0 0 25px rgba(255, 255, 255, 0.7));
}

/* Progress Bar */
.loader-progress {
    width: 250px;
    height: 4px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 10px;
    margin: 0 auto 0.5rem;
    padding: 0;
    overflow: hidden;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    display: block;
}

.loader-progress-bar {
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    animation: progressSlide 1.5s ease-in-out infinite;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.8), 0 0 40px rgba(255, 255, 255, 0.4);
}

/* Text */
.loader-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: textFade 2s ease-in-out infinite;
    width: 100%;
    text-align: center;
    display: block;
    margin: 0;
    padding: 0;
}

/* Animations */
@keyframes contentFadeIn {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

@keyframes gradientBG {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

@keyframes brandPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.05);
        filter: brightness(1.2);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-15px) scale(1.05);
    }
}

@keyframes progressSlide {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(200%);
    }
}

@keyframes textFade {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

/* Responsive - Mobile */
@media screen and (max-width: 768px) {
    .loader-content {
        width: 92%;
        max-width: 420px;
        padding: 0 1rem;
        gap: 0 !important;
    }
    
    .loader-logo {
        margin: 0 0 1rem 0 !important;
        padding: 0 !important;
    }
    
    .loader-logo-image {
        width: 270px !important;
        max-height: 115px !important;
        min-width: 270px !important;
    }
    
    .loader-progress {
        width: 88%;
        max-width: 250px;
        height: 3px;
        margin: 0 auto 0.35rem !important;
        padding: 0 !important;
    }
    
    .loader-text {
        font-size: 0.8125rem;
        letter-spacing: 0.12em;
        margin: 0 !important;
        padding: 0 !important;
    }
}

/* Responsive - Small Mobile */
@media screen and (max-width: 576px) {
    .loader-logo {
        margin: 0 0 0.85rem 0 !important;
    }
    
    .loader-logo-image {
        width: 250px !important;
        max-height: 105px !important;
        min-width: 250px !important;
    }
    
    .loader-progress {
        width: 85%;
        max-width: 230px;
        margin: 0 auto 0.3rem !important;
    }
    
    .loader-text {
        font-size: 0.75rem;
    }
}

/* Extra Small Mobile */
@media screen and (max-width: 400px) {
    .loader-logo-image {
        width: 230px !important;
        max-height: 95px !important;
        min-width: 230px !important;
    }
    
    .loader-logo {
        margin: 0 0 0.75rem 0 !important;
    }
    
    .loader-progress {
        margin: 0 auto 0.25rem !important;
    }
}

@media (max-width: 768px) {
    .loader-circle-wrapper {
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .loader-content {
        width: 90%;
        max-width: 300px;
        padding: 0 0.75rem;
    }
    
    .loader-logo {
        width: 85px;
        height: 85px;
    }
    
    .loader-logo svg {
        width: 42px;
        height: 42px;
    }
    
    .loader-brand {
        font-size: 1.625rem;
        margin-bottom: 0.875rem;
    }
    
    .loader-progress {
        width: 80%;
        max-width: 160px;
        height: 2.5px;
    }
    
    .loader-text {
        font-size: 0.75rem;
        letter-spacing: 0.1em;
    }
    
    .loader-circle-wrapper {
        margin-bottom: 1.75rem;
    }
}

@media (max-width: 360px) {
    .loader-content {
        width: 95%;
        max-width: 280px;
    }
    
    .loader-logo {
        width: 75px;
        height: 75px;
    }
    
    .loader-logo svg {
        width: 38px;
        height: 38px;
    }
    
    .loader-brand {
        font-size: 1.5rem;
    }
    
    .loader-progress {
        width: 85%;
        max-width: 140px;
    }
    
    .loader-text {
        font-size: 0.6875rem;
    }
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */
a {
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

a:visited {
    opacity: 0.85;
}

a:focus-visible {
    outline: 2px solid #206bc4;
    outline-offset: 2px;
    border-radius: 2px;
}

[data-bs-theme="dark"] a:focus-visible,
.theme-dark a:focus-visible {
    outline-color: #74b3f7;
}

/* Navbar Brand Styling */
.navbar-brand {
    font-size: 1.125rem;
    font-weight: 700;
    margin: 0;
}

.navbar-brand a {
    color: inherit !important;
    opacity: 1 !important;
}

.navbar-brand a:hover {
    text-decoration: none !important;
    color: inherit !important;
    opacity: 1 !important;
}

.navbar-brand a:visited {
    color: inherit !important;
    opacity: 1 !important;
}

.brand-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.25);
    flex-shrink: 0;
}

.brand-icon svg {
    color: #fff;
    stroke: #fff;
    width: 100%;
    height: 100%;
}

.navbar-brand a:hover .brand-icon {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.35);
}

.brand-text {
    font-size: 1.375rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
}

[data-bs-theme="dark"] .brand-icon,
.theme-dark .brand-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

[data-bs-theme="dark"] .navbar-brand a:hover .brand-icon,
.theme-dark .navbar-brand a:hover .brand-icon {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.5);
}

/* Button Styles - Light theme fixes */
.btn,
button[class*="btn"] {
    min-height: 38px;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.btn-outline-primary {
    background: #fff;
    border: 2px solid #206bc4;
    color: #206bc4;
}

.btn-outline-primary:hover {
    background: #206bc4;
    color: #fff;
}

.btn-outline-danger {
    background: #fff;
    border: 2px solid #d63939;
    color: #d63939;
}

.btn-outline-danger:hover {
    background: #d63939;
    color: #fff;
}

.btn-outline-success {
    background: #fff;
    border: 2px solid #2fb344;
    color: #2fb344;
}

.btn-outline-success:hover {
    background: #2fb344;
    color: #fff;
}

[data-bs-theme="dark"] .btn-outline-primary,
.theme-dark .btn-outline-primary {
    background: transparent;
    border-color: #74b3f7;
    color: #74b3f7;
}

[data-bs-theme="dark"] .btn-outline-primary:hover,
.theme-dark .btn-outline-primary:hover {
    background: #74b3f7;
    color: #0f172a;
}

[data-bs-theme="dark"] .btn-outline-danger,
.theme-dark .btn-outline-danger {
    background: transparent;
    border-color: #f87171;
    color: #f87171;
}

[data-bs-theme="dark"] .btn-outline-danger:hover,
.theme-dark .btn-outline-danger:hover {
    background: #f87171;
    color: #0f172a;
}

[data-bs-theme="dark"] .btn-outline-success,
.theme-dark .btn-outline-success {
    background: transparent;
    border-color: #4ade80;
    color: #4ade80;
}

[data-bs-theme="dark"] .btn-outline-success:hover,
.theme-dark .btn-outline-success:hover {
    background: #4ade80;
    color: #0f172a;
}

/* Form Controls - Global improvements */
.form-control,
.form-select,
select,
input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
textarea {
    font-size: 0.9375rem;
    line-height: 1.5;
    min-height: 38px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    transition: all 0.2s ease;
}

.form-control:hover,
.form-select:hover {
    border-color: #9ca3af;
}

.form-control:focus,
.form-select:focus,
select:focus,
input:focus,
textarea:focus {
    border-color: #206bc4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(32, 107, 196, 0.1);
}

[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select,
.theme-dark .form-control,
.theme-dark .form-select {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .form-control:hover,
[data-bs-theme="dark"] .form-select:hover,
.theme-dark .form-control:hover,
.theme-dark .form-select:hover {
    border-color: #475569;
}

[data-bs-theme="dark"] .form-control:focus,
[data-bs-theme="dark"] .form-select:focus,
.theme-dark .form-control:focus,
.theme-dark .form-select:focus {
    border-color: #74b3f7;
    box-shadow: 0 0 0 3px rgba(116, 179, 247, 0.15);
}

/* Base Layout */
.bayi-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 2rem 1rem;
    margin: 0;
    box-sizing: border-box;
}

body.bayi-page {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* Decorative Background Circles */
.bayi-page::before,
.bayi-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 15s ease-in-out infinite;
}

.bayi-page::before {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
}

.bayi-page::after {
    width: 250px;
    height: 250px;
    bottom: -80px;
    left: -80px;
    animation-delay: -7s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}

/* Main Container */
.bayi-container {
    width: 100%;
    max-width: 950px;
    position: relative;
    z-index: 1;
    box-sizing: border-box;
    margin: 0 auto;
}

/* Login Card */
.bayi-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    box-sizing: border-box;
    width: 100%;
}

/* Welcome Section (Left) */
.bayi-welcome {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
    position: relative;
}

.bayi-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.bayi-brand-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bayi-brand-icon svg {
    width: 28px;
    height: 28px;
}

.bayi-brand-icon-img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    display: block;
}

.bayi-brand-text {
    font-size: 1.25rem;
    font-weight: 700;
}

.bayi-welcome-title {
    font-size: 1.875rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.bayi-welcome-subtitle {
    font-size: 0.9375rem;
    opacity: 0.9;
    line-height: 1.5;
    margin-bottom: 2rem;
}

.bayi-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bayi-feature {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
    font-size: 0.9375rem;
    opacity: 0.95;
}

.bayi-feature svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Login Section (Right) */
.bayi-login {
    padding: 3rem 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bayi-login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bayi-login-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.bayi-login-subtitle {
    font-size: 0.875rem;
    color: #64748b;
}

/* Form Styles */
.bayi-form {
    width: 100%;
    box-sizing: border-box;
}

.bayi-form .mb-3,
.bayi-form .mt-4 {
    width: 100%;
    box-sizing: border-box;
}

.bayi-form .form-label {
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.bayi-form .form-control {
    height: 42px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    padding: 0 0.875rem;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.bayi-form .form-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: #64748b;
}

.bayi-form .row {
    display: flex;
    gap: 1rem;
    margin-left: 0;
    margin-right: 0;
}

.bayi-form .col-md-6 {
    flex: 1;
    padding-left: 0;
    padding-right: 0;
}

.bayi-form .form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.bayi-form .input-group-flat {
    position: relative;
    display: block;
    width: 100%;
}

.bayi-form .input-group-flat .form-control {
    padding-right: 3rem;
    width: 100%;
    border-radius: 8px;
}

.bayi-form .input-group-text {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    background: transparent;
    border: none;
    padding: 0 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    margin: 1px;
    pointer-events: auto;
}

.bayi-form .input-group-text a {
    color: #64748b;
    transition: color 0.2s ease;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    padding: 0;
    margin: 0;
}

.bayi-form .input-group-text a:hover {
    color: #667eea;
    text-decoration: none;
}

.bayi-form .input-group-text svg {
    display: block;
}

.bayi-form .form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.bayi-form .form-check-input {
    width: 16px;
    height: 16px;
    margin: 0;
    cursor: pointer;
}

.bayi-form .form-check-label {
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    margin: 0;
}

/* Submit Button */
.bayi-btn-submit {
    width: 100%;
    height: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 8px;
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-sizing: border-box;
    padding: 0 1rem;
}

/* Register Link */
.bayi-register-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
    font-size: 0.875rem;
}

.bayi-register-link span {
    color: #64748b;
    margin-right: 0.5rem;
}

.bayi-register-link a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.bayi-register-link a:hover {
    color: #764ba2;
    text-decoration: none !important;
}

[data-bs-theme="dark"] .bayi-register-link,
.theme-dark .bayi-register-link {
    border-top-color: #334155;
}

[data-bs-theme="dark"] .bayi-register-link span,
.theme-dark .bayi-register-link span {
    color: #94a3b8;
}

[data-bs-theme="dark"] .bayi-register-link a,
.theme-dark .bayi-register-link a {
    color: #667eea;
}

[data-bs-theme="dark"] .bayi-register-link a:hover,
.theme-dark .bayi-register-link a:hover {
    color: #8b9de8;
}

.bayi-btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
}

.bayi-btn-submit:active {
    transform: translateY(0);
}

.bayi-btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.bayi-btn-submit svg {
    width: 18px;
    height: 18px;
}

.bayi-btn-submit .spinner-border {
    width: 16px;
    height: 16px;
    border-width: 2px;
}

/* Forgot Link */
.bayi-forgot {
    text-align: center;
    margin-top: 1.25rem;
}

.bayi-forgot a {
    color: #667eea;
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bayi-forgot a:hover {
    color: #764ba2;
    text-decoration: underline;
}

/* Footer */
.bayi-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--tblr-border-color, #e5e7eb);
    text-align: center;
    font-size: 0.875rem;
    color: var(--tblr-secondary-color, #94a3b8);
}

/* Tablet */
@media (max-width: 992px) {
    .bayi-card {
        max-width: 700px;
        margin: 0 auto;
    }
    
    .bayi-welcome,
    .bayi-login {
        padding: 2.5rem 2rem;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Prevent horizontal scroll on mobile */
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
    }
    
    .bayi-page {
        padding: 0.75rem;
        overflow-x: hidden;
        overflow-y: auto;
        max-width: 100vw;
        box-sizing: border-box;
    }
    
    .bayi-container {
        max-width: calc(100% - 1rem);
        padding: 0;
        box-sizing: border-box;
        margin: 0 auto;
    }
    
    .bayi-card {
        grid-template-columns: 1fr;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        margin: 0;
    }
    
    .bayi-welcome {
        display: none;
    }
    
    .bayi-login {
        padding: 2rem 1.5rem;
        box-sizing: border-box;
        width: 100%;
    }
    
    .bayi-login-header {
        margin-bottom: 1.5rem;
    }
    
    .bayi-form .row {
        gap: 0.75rem;
    }
    
    .bayi-form {
        width: 100%;
        box-sizing: border-box;
    }
    
    .bayi-form .form-control {
        width: 100%;
        box-sizing: border-box;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .bayi-page {
        padding: 1rem 0.5rem;
    }
    
    .bayi-container {
        max-width: calc(100% - 1rem);
        padding: 0;
        margin: 0 auto;
    }
    
    .bayi-card {
        border-radius: 12px;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }
    
    .bayi-login {
        padding: 1.5rem 1.25rem;
    }
    
    .bayi-login-title {
        font-size: 1.25rem;
    }
    
    .bayi-login-subtitle {
        font-size: 0.8125rem;
    }
    
    .bayi-form .form-control {
        font-size: 0.875rem;
    }
    
    .bayi-form .form-label {
        font-size: 0.8125rem;
    }
    
    .bayi-btn-submit {
        font-size: 0.875rem;
        padding: 0.75rem 1rem;
    }
    
    .bayi-register-link {
        font-size: 0.8125rem;
    }
    
    .bayi-form .row {
        gap: 0.5rem;
    }
}

@media (max-width: 360px) {
    .bayi-page {
        padding: 0.75rem 0.375rem;
    }
    
    .bayi-container {
        max-width: calc(100% - 0.75rem);
    }
    
    .bayi-card {
        border-radius: 10px;
    }
    
    .bayi-login {
        padding: 1.25rem 1rem;
    }
    
    .bayi-login-title {
        font-size: 1.125rem;
    }
    
    .bayi-btn-submit {
        padding: 0.625rem 0.875rem;
        font-size: 0.8125rem;
    }
    
    .bayi-form .form-control {
        font-size: 0.875rem;
        height: 40px;
    }
}

[data-bs-theme="dark"] .bayi-card,
.theme-dark .bayi-card {
    background: #1e293b;
}

[data-bs-theme="dark"] .bayi-login-title,
.theme-dark .bayi-login-title {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .bayi-login-subtitle,
.theme-dark .bayi-login-subtitle {
    color: #94a3b8;
}

[data-bs-theme="dark"] .bayi-form .form-label,
.theme-dark .bayi-form .form-label {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .bayi-form .form-control,
.theme-dark .bayi-form .form-control {
    background: #0f172a;
    border-color: #334155;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .bayi-form .form-control:focus,
.theme-dark .bayi-form .form-control:focus {
    background: #0f172a;
    border-color: #667eea;
}

[data-bs-theme="dark"] .bayi-form .form-hint,
.theme-dark .bayi-form .form-hint {
    color: #94a3b8;
}

[data-bs-theme="dark"] .bayi-form .input-group-text a,
.theme-dark .bayi-form .input-group-text a {
    color: #94a3b8;
}

[data-bs-theme="dark"] .bayi-form .input-group-text a:hover,
.theme-dark .bayi-form .input-group-text a:hover {
    color: #667eea;
}

[data-bs-theme="dark"] .bayi-footer,
.theme-dark .bayi-footer {
    border-top-color: rgba(255, 255, 255, 0.1);
    color: #64748b;
    background: transparent;
}

.bayi-profile-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
}

/* Cover Image */
.profile-cover {
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    background-size: 200% 200%;
    animation: gradientMove 15s ease infinite;
    position: relative;
    overflow: hidden;
}

@keyframes gradientMove {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.profile-cover-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(255, 255, 255, 0.08) 0%, transparent 40%);
    opacity: 0.6;
}

.profile-cover::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 120"><path d="M0,64L48,58.7C96,53,192,43,288,58.7C384,75,480,117,576,122.7C672,128,768,96,864,90.7C960,85,1056,107,1152,112C1248,117,1344,107,1392,101.3L1440,96L1440,0L1392,0C1344,0,1248,0,1152,0C1056,0,960,0,864,0C768,0,672,0,576,0C480,0,384,0,288,0C192,0,96,0,48,0L0,0Z" fill="rgba(255,255,255,0.1)"/></svg>') no-repeat center;
    background-size: cover;
    opacity: 0.3;
}

/* Profile Info */
.profile-info {
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
    margin-top: -50px;
    position: relative;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 12px;
    border: 4px solid #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #667eea;
    flex-shrink: 0;
    margin-right: 1rem;
}

.profile-details {
    flex: 1;
    padding-top: 50px;
}

.profile-name-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.375rem;
}

.profile-name {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.status-badge.active {
    background: #dcfce7;
    color: #16a34a;
}

.status-badge.active svg {
    fill: #16a34a;
}

.status-badge.inactive {
    background: #fee2e2;
    color: #dc2626;
}

.status-badge.inactive svg {
    fill: #dc2626;
}

.profile-domain {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: #64748b;
}

.profile-domain svg {
    flex-shrink: 0;
    color: #94a3b8;
}

.profile-domain a {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.profile-domain a:hover {
    color: #3b82f6;
}

.info-box {
    background: #fff;
    border-radius: 10px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    height: 100%;
}

.info-box:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.info-box-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-box-icon.blue {
    background: #dbeafe;
    color: #1e40af;
}

.info-box-icon.green {
    background: #d1fae5;
    color: #065f46;
}

.info-box-icon.purple {
    background: #e9d5ff;
    color: #6b21a8;
}

.info-box-content {
    flex: 1;
    min-width: 0;
}

.info-box-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.25rem;
}

.info-box-value {
    display: block;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    word-break: break-word;
}

.info-box-value.balance {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 700;
}

.api-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.api-card-header {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.api-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(59, 130, 246, 0.2);
}

.api-refresh-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.3);
}

.api-refresh-btn:active {
    transform: translateY(0);
}

.api-refresh-btn svg {
    transition: transform 0.3s ease;
}

.api-refresh-btn:hover svg {
    transform: rotate(180deg);
}

.api-card-body {
    padding: 1.5rem;
}

.api-input-group {
    display: flex;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 0.375rem;
    transition: all 0.2s ease;
}

.api-input-group:focus-within {
    border-color: #3b82f6;
    background: #fff;
}

.api-input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    padding: 0.5rem 0.75rem;
}

.api-input:focus {
    outline: none;
}

.api-action-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: #e2e8f0;
    color: #475569;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.api-action-btn:hover {
    background: #cbd5e1;
    color: #1e293b;
}

.api-hint {
    margin: 0.875rem 0 0;
    padding: 0.75rem 1rem;
    background: #eff6ff;
    border-left: 3px solid #3b82f6;
    border-radius: 6px;
    font-size: 0.8125rem;
    color: #1e40af;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.api-hint svg {
    flex-shrink: 0;
    margin-top: 2px;
}

@media (max-width: 767px) {
    .profile-cover {
        height: 100px;
    }
    
    .profile-info {
        flex-direction: row;
        align-items: flex-end;
        padding: 1rem;
        gap: 1rem;
        margin-top: -27px;
    }
    
    .profile-avatar {
        width: 70px;
        height: 70px;
        margin-right: 0;
        flex-shrink: 0;
    }
    
    .profile-avatar svg {
        width: 36px;
        height: 36px;
    }
    
    .profile-details {
        padding-top: 0;
        flex: 1;
        min-width: 0;
    }
    
    .profile-name-row {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
        flex-wrap: wrap;
        margin-bottom: 0.25rem;
    }
    
    .profile-name {
        font-size: 1.125rem;
    }
    
    .profile-domain {
        font-size: 0.8125rem;
    }
    
    .info-box {
        padding: 1rem;
    }
    
    .info-box-icon {
        width: 44px;
        height: 44px;
    }
    
    .api-card-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .api-refresh-btn {
        width: 100%;
        justify-content: center;
    }
    
    .api-input {
        font-size: 0.8125rem;
    }
}

@media (max-width: 575px) {
    .profile-avatar {
        width: 70px;
        height: 70px;
    }
    
    .profile-avatar svg {
        width: 36px;
        height: 36px;
    }
    
    .profile-name {
        font-size: 1.125rem;
    }
    
    .status-badge {
        padding: 0.25rem 0.625rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .status-badge svg {
        width: 12px;
        height: 12px;
    }
    
    .profile-domain {
        font-size: 0.8125rem;
    }
    
    .profile-domain svg {
        width: 14px;
        height: 14px;
    }
    
    .info-box {
        padding: 0.875rem;
    }
    
    .info-box-icon {
        width: 40px;
        height: 40px;
    }
    
    .info-box-icon svg {
        width: 18px;
        height: 18px;
    }
    
    .info-box-value {
        font-size: 0.9375rem;
    }
    
    .api-refresh-btn {
        font-size: 0.8125rem;
        padding: 0.4375rem 0.875rem;
    }
    
    .api-refresh-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .api-action-btn {
        width: 32px;
        height: 32px;
    }
    
    .api-action-btn svg {
        width: 16px;
        height: 16px;
    }
}

/* Orders Table Status Badges */
.services-table .balance-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.services-table .balance-status svg {
    flex-shrink: 0;
}

.services-table .balance-status.status-warning {
    background: linear-gradient(135deg, #f59f00 0%, #d68a00 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(245, 159, 0, 0.3);
}

.services-table .balance-status.status-info {
    background: linear-gradient(135deg, #0054a6 0%, #003d7a 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 84, 166, 0.3);
}

.services-table .balance-status.status-primary {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.services-table .balance-status.status-orange {
    background: linear-gradient(135deg, #fb923c 0%, #ea580c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(251, 146, 60, 0.3);
}

.services-table .balance-status.status-success {
    background: linear-gradient(135deg, #2fb344 0%, #28a03c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(47, 179, 68, 0.3);
}

.services-table .balance-status.status-danger {
    background: linear-gradient(135deg, #d63939 0%, #c12e2e 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(214, 57, 57, 0.3);
}

/* Order link styling */
.order-link {
    text-decoration: none;
    font-size: 0.8125rem;
    display: inline-flex !important;
    align-items: center;
    gap: 0.25rem;
    max-width: 180px;
}

.order-link:hover {
    text-decoration: underline;
}

.order-link svg {
    flex-shrink: 0;
}

.order-link .text-truncate {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Amount and date text color */
.services-table .text-dark {
    color: #1e293b !important;
}

[data-bs-theme="dark"] .services-table .text-dark,
.theme-dark .services-table .text-dark {
    color: #e2e8f0 !important;
}

/* Empty State */
.empty {
    padding: 1rem 2rem;
    text-align: center;
}

.empty-icon {
    margin-bottom: 1.5rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.empty-subtitle {
    font-size: 0.9375rem;
    color: #64748b;
}

/* Dark Mode Support */
[data-bs-theme="dark"] .empty-title,
.theme-dark .empty-title {
    color: #f1f5f9;
}

/* Responsive Design */
@media (max-width: 767px) {    
    .empty {
        padding: 2rem 1rem;
    }
    
    .empty-title {
        font-size: 1rem;
    }
    
    .empty-subtitle {
        font-size: 0.8125rem;
    }
    
    /* Smaller status badges on mobile */
    .services-table .balance-status {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
        gap: 0.25rem;
    }
    
    .services-table .balance-status svg {
        width: 14px;
        height: 14px;
    }
}

[data-bs-theme="dark"] .bayi-profile-card,
.theme-dark .bayi-profile-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .profile-cover,
.theme-dark .profile-cover {
    background: linear-gradient(135deg, #4c1d95 0%, #5b21b6 100%);
}

[data-bs-theme="dark"] .profile-avatar,
.theme-dark .profile-avatar {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .profile-name,
.theme-dark .profile-name {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .status-badge.active,
.theme-dark .status-badge.active {
    background: rgba(22, 163, 74, 0.2);
    color: #4ade80;
}

[data-bs-theme="dark"] .status-badge.active svg,
.theme-dark .status-badge.active svg {
    fill: #4ade80;
}

[data-bs-theme="dark"] .status-badge.inactive,
.theme-dark .status-badge.inactive {
    background: rgba(220, 38, 38, 0.2);
    color: #f87171;
}

[data-bs-theme="dark"] .status-badge.inactive svg,
.theme-dark .status-badge.inactive svg {
    fill: #f87171;
}

[data-bs-theme="dark"] .profile-domain,
.theme-dark .profile-domain {
    color: #94a3b8;
}

[data-bs-theme="dark"] .profile-domain svg,
.theme-dark .profile-domain svg {
    color: #64748b;
}

[data-bs-theme="dark"] .profile-domain a,
.theme-dark .profile-domain a {
    color: #94a3b8;
}

[data-bs-theme="dark"] .profile-domain a:hover,
.theme-dark .profile-domain a:hover {
    color: #60a5fa;
}

[data-bs-theme="dark"] .info-box,
.theme-dark .info-box {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .info-box-icon.blue,
.theme-dark .info-box-icon.blue {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-bs-theme="dark"] .info-box-icon.green,
.theme-dark .info-box-icon.green {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

[data-bs-theme="dark"] .info-box-icon.purple,
.theme-dark .info-box-icon.purple {
    background: rgba(139, 92, 246, 0.2);
    color: #a78bfa;
}

[data-bs-theme="dark"] .info-box-label,
.theme-dark .info-box-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .info-box-value,
.theme-dark .info-box-value {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .info-box-value.balance,
.theme-dark .info-box-value.balance {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .api-card,
.theme-dark .api-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .api-card-header,
.theme-dark .api-card-header {
    background: #0f172a;
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .api-card-header h3,
.theme-dark .api-card-header h3 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .api-refresh-btn,
.theme-dark .api-refresh-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

[data-bs-theme="dark"] .api-input-group,
.theme-dark .api-input-group {
    background: #0f172a;
    border-color: #334155;
}

[data-bs-theme="dark"] .api-input,
.theme-dark .api-input {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .api-action-btn,
.theme-dark .api-action-btn {
    background: #334155;
    color: #94a3b8;
}

[data-bs-theme="dark"] .api-action-btn:hover,
.theme-dark .api-action-btn:hover {
    background: #475569;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .api-hint,
.theme-dark .api-hint {
    background: rgba(59, 130, 246, 0.1);
    border-left-color: #3b82f6;
    color: #93c5fd;
}

.page-body .row {
    align-items: flex-start !important;
}

.sticky-logs {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 20px !important;
    align-self: flex-start !important;
    z-index: 100 !important;
}

.sticky-logs .logs-card-body {
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    overflow-x: hidden;
}

/* Mobilde sticky olmasın */
@media (max-width: 991px) {
    .sticky-logs {
        position: relative !important;
        top: auto !important;
    }
    
    .sticky-logs .logs-card-body {
        max-height: 500px;
    }
}

.password-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
}

.password-card-header {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.password-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.password-card-body {
    padding: 1.5rem;
}

.password-submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-weight: 600;
    padding: 0.625rem 1.5rem;
}

.logs-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    height: fit-content;
}

.logs-card-header {
    padding: 1.25rem 1.5rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logs-card-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.logs-card-body {
    padding: 0.5rem;
}

.logs-list {
    padding: 0;
    list-style: none;
    margin: 0;
}

.log-item {
    display: flex;
    align-items: flex-start;
    gap: 0.875rem;
    padding: 0.875rem;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.log-item:hover {
    background: #f8fafc;
}

.log-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.log-icon.login {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.log-icon.password_change {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    color: #92400e;
}

.log-icon.api_refresh {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    color: #065f46;
}

.log-icon.balance_request {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: #1e40af;
}

.log-icon.balance_cancel {
    background: linear-gradient(135deg, #fecaca 0%, #fca5a5 100%);
    color: #991b1b;
}

.log-content {
    flex: 1;
    min-width: 0;
}

.log-action {
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.log-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: #64748b;
}

.log-ip, .log-time {
    white-space: nowrap;
}

.log-ip::after {
    content: '•';
    margin-left: 0.5rem;
}

.empty-logs {
    padding: 3rem 1.5rem;
    text-align: center;
}

.empty-logs svg {
    color: #cbd5e1;
    margin-bottom: 1rem;
}

.empty-logs p {
    margin: 0;
    color: #94a3b8;
    font-size: 0.875rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

[data-bs-theme="dark"] .password-card,
[data-bs-theme="dark"] .logs-card,
.theme-dark .password-card,
.theme-dark .logs-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .password-card-header,
[data-bs-theme="dark"] .logs-card-header,
.theme-dark .password-card-header,
.theme-dark .logs-card-header {
    background: #0f172a;
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .password-card-header h3,
[data-bs-theme="dark"] .logs-card-header h3,
.theme-dark .password-card-header h3,
.theme-dark .logs-card-header h3 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .log-item:hover,
.theme-dark .log-item:hover {
    background: #334155;
}

[data-bs-theme="dark"] .log-action,
.theme-dark .log-action {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .log-details,
.theme-dark .log-details {
    color: #94a3b8;
}

[data-bs-theme="dark"] .log-icon.login,
.theme-dark .log-icon.login {
    background: rgba(59, 130, 246, 0.2);
    color: #60a5fa;
}

[data-bs-theme="dark"] .log-icon.password_change,
.theme-dark .log-icon.password_change {
    background: rgba(245, 158, 11, 0.2);
    color: #fbbf24;
}

[data-bs-theme="dark"] .log-icon.api_refresh,
.theme-dark .log-icon.api_refresh {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

[data-bs-theme="dark"] .empty-logs svg,
.theme-dark .empty-logs svg {
    color: #475569;
}

[data-bs-theme="dark"] .empty-logs p,
.theme-dark .empty-logs p {
    color: #64748b;
}

/* API Info Badge (header) */
.api-info-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8125rem;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.25);
}

/* API Info Container - Tabler Uyumlu */
.api-info-container {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 0;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.api-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.api-info-row:last-child {
    border-bottom: none;
}

.api-info-row:hover {
    background: #f8fafc;
}

.api-info-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    min-width: 140px;
    flex-shrink: 0;
}

.api-info-label svg {
    color: #94a3b8;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.api-method-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #2fb344 0%, #228b3a 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.075em;
    box-shadow: 0 4px 12px rgba(47, 179, 68, 0.35);
}

.api-format-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    min-width: 70px;
    padding: 0.5rem 1rem;
    background: linear-gradient(135deg, #f59f00 0%, #d97706 100%);
    color: #fff;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.075em;
    box-shadow: 0 4px 12px rgba(245, 159, 0, 0.35);
    position: relative;
    overflow: hidden;
}

.api-format-badge::before {
    content: '{ }';
    font-weight: 400;
    opacity: 0.8;
}

.api-format-badge::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.api-format-badge:hover::after {
    left: 100%;
}

.api-url-box {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.8125rem;
    color: #334155;
    flex: 1;
    min-width: 0;
    max-width: 100%;
    transition: all 0.2s ease;
}

.api-url-box:hover {
    background: #e2e8f0;
    border-color: #cbd5e1;
}

.api-url-box code {
    flex: 1;
    background: transparent;
    padding: 0;
    font-size: 0.8125rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 500;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.api-key-notice {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: rgba(245, 159, 0, 0.06);
    border: 1px solid rgba(245, 159, 0, 0.12);
    border-radius: 4px;
    font-size: 0.8125rem;
    color: #1e293b;
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
}

.api-key-notice svg {
    flex-shrink: 0;
    color: #f59f00;
}

.api-key-notice span {
    flex: 1;
}

.api-key-notice a {
    color: #206bc4;
    font-weight: 600;
    text-decoration: none;
}

.api-key-notice a:hover {
    text-decoration: underline;
}

.api-copy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: #3b82f6;
    border: none;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.api-copy-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.api-copy-btn svg {
    width: 16px;
    height: 16px;
}

.api-copy-btn:active {
    transform: translateY(0);
}

/* API Endpoint Card - Modern */
.api-endpoint-card {
    background: #fff;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.api-endpoint-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.api-endpoint-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
}

.api-endpoint-header h3 {
    margin: 0;
    font-size: 1.0625rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.api-endpoint-header h3 .endpoint-icon {
    color: #1e293b;
    flex-shrink: 0;
    opacity: 0.85;
    display: inline-block;
    vertical-align: middle;
}

.api-method-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 70px;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.075em;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
    position: relative;
    overflow: hidden;
}

.api-method-tag::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.api-method-tag:hover::before {
    left: 100%;
}

.api-method-tag.post {
    background: linear-gradient(135deg, #2fb344 0%, #228b3a 100%);
    color: #fff;
}

.api-endpoint-body {
    padding: 1.5rem;
}

.api-params h4,
.api-example h4 {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.api-params h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #206bc4 0%, #1a569d 100%);
    border-radius: 2px;
}

.api-example h4::before {
    content: '';
    width: 4px;
    height: 20px;
    background: linear-gradient(135deg, #2fb344 0%, #228b3a 100%);
    border-radius: 2px;
}

.api-params {
    margin-bottom: 1.5rem;
}

/* API Table - Modern & Büyük */
.api-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9375rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.api-table thead th {
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 1px solid #e2e8f0;
    font-weight: 700;
    color: #1e293b;
    text-align: left;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.api-table tbody td {
    padding: 1rem 1.25rem;
    border: 1px solid #e2e8f0;
    color: #1e293b;
    line-height: 1.6;
}

.api-table tbody tr {
    transition: background 0.2s ease;
}

.api-table tbody tr:hover {
    background: rgba(32, 107, 196, 0.02);
}

.api-table tbody td:first-child {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    color: #206bc4;
    font-weight: 700;
    font-size: 1rem;
}

.optional-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.625rem;
    background: linear-gradient(135deg, #f59f00 0%, #d97706 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-left: 0.5rem;
    box-shadow: 0 2px 4px rgba(245, 159, 0, 0.3);
}

/* Code Block - Modern */
.api-code-block {
    position: relative;
    background: #1e293b;
    border-radius: 8px;
    padding: 1.25rem;
    overflow-x: auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.api-code-block pre {
    margin: 0;
    color: #e2e8f0;
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    font-size: 0.8125rem;
    line-height: 1.8;
}

.api-code-block code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.api-code-copy {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.api-code-copy svg {
    width: 18px;
    height: 18px;
}

.api-code-copy:hover {
    background: linear-gradient(135deg, #206bc4 0%, #1a569d 100%);
    border-color: #206bc4;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(32, 107, 196, 0.4);
}

[data-bs-theme="dark"] .api-info-container,
.theme-dark .api-info-container {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-bs-theme="dark"] .api-info-row,
.theme-dark .api-info-row {
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .api-info-row:hover,
.theme-dark .api-info-row:hover {
    background: rgba(248, 250, 252, 0.03);
}

[data-bs-theme="dark"] .api-info-label,
.theme-dark .api-info-label {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .api-info-label svg,
.theme-dark .api-info-label svg {
    color: #64748b;
}

[data-bs-theme="dark"] .api-endpoint-card,
.theme-dark .api-endpoint-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .api-endpoint-header,
.theme-dark .api-endpoint-header {
    background: #0f172a;
    border-bottom-color: #334155;
}

[data-bs-theme="dark"] .api-endpoint-header h3,
[data-bs-theme="dark"] .api-params h4,
[data-bs-theme="dark"] .api-example h4,
.theme-dark .api-endpoint-header h3,
.theme-dark .api-params h4,
.theme-dark .api-example h4 {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .api-endpoint-header h3 .endpoint-icon,
.theme-dark .api-endpoint-header h3 .endpoint-icon {
    color: #cbd5e1;
    opacity: 0.9;
}

[data-bs-theme="dark"] .api-url-box,
.theme-dark .api-url-box {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .api-url-box:hover,
.theme-dark .api-url-box:hover {
    background: #334155;
    border-color: #475569;
}

[data-bs-theme="dark"] .api-url-box code,
.theme-dark .api-url-box code {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .api-key-notice,
.theme-dark .api-key-notice {
    background: rgba(245, 159, 0, 0.1);
    border-color: rgba(245, 159, 0, 0.2);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .api-key-notice svg,
.theme-dark .api-key-notice svg {
    color: #ffc078;
}

[data-bs-theme="dark"] .api-key-notice a,
.theme-dark .api-key-notice a {
    color: #74b3f7;
}

[data-bs-theme="dark"] .api-copy-btn,
.theme-dark .api-copy-btn {
    background: #3b82f6;
}

[data-bs-theme="dark"] .api-copy-btn:hover,
.theme-dark .api-copy-btn:hover {
    background: #2563eb;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

[data-bs-theme="dark"] .api-table thead th,
.theme-dark .api-table thead th {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .api-table tbody td,
.theme-dark .api-table tbody td {
    border-color: #334155;
    color: #94a3b8;
}

[data-bs-theme="dark"] .api-table tbody td:first-child,
.theme-dark .api-table tbody td:first-child {
    color: #a78bfa;
}

@media (max-width: 767px) {
    .api-info-container {
        margin-bottom: 1rem;
    }
    
    .api-info-row {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.125rem;
        gap: 0.875rem;
    }
    
    .api-info-label {
        font-size: 0.6875rem;
        min-width: auto;
        flex: 0 1 auto;
        white-space: nowrap;
    }
    
    .api-info-label svg {
        width: 13px;
        height: 13px;
    }
    
    .api-method-badge,
    .api-format-badge {
        min-width: 55px;
        font-size: 0.6875rem;
        padding: 0.375rem 0.625rem;
        flex: 0 0 auto;
        margin-left: auto;
    }
    
    .api-url-box,
    .api-key-notice {
        font-size: 0.75rem;
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
    }
    
    .api-url-box code {
        font-size: 0.75rem;
        letter-spacing: -0.01em;
    }
    
    .api-copy-btn {
        width: 28px;
        height: 28px;
        flex-shrink: 0;
        border-radius: 6px;
    }
    
    .api-copy-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .api-key-notice {
        font-size: 0.6875rem;
    }
    
    .api-key-notice svg {
        width: 14px;
        height: 14px;
        flex-shrink: 0;
    }
    
    .api-endpoint-header {
        padding: 0.75rem 0.875rem;
    }
    
    .api-endpoint-header h3 {
        font-size: 0.875rem;
        gap: 0.5rem;
        flex-wrap: nowrap;
        width: 100%;
    }
    
    .api-endpoint-header h3 .endpoint-icon {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
        display: inline-flex;
    }
    
    .api-endpoint-body {
        padding: 0.875rem;
    }
    
    .api-params h4,
    .api-example h4 {
        font-size: 0.875rem;
    }
    
    .api-table {
        font-size: 0.8125rem;
    }
    
    .api-table thead th,
    .api-table tbody td {
        padding: 0.75rem 0.875rem;
        font-size: 0.75rem;
    }
    
    .api-code-block {
        padding: 1rem;
    }
    
    .api-code-block pre {
        font-size: 0.75rem;
    }
    
    .api-code-block {
        padding: 0.875rem;
    }
    
    .api-code-block pre {
        font-size: 0.625rem;
    }
    
    .api-table {
        font-size: 0.6875rem;
    }
    
    .api-table thead th,
    .api-table tbody td {
        padding: 0.375rem 0.5rem;
    }
}

/* Extra small devices - Daha küçük telefonlar için */
@media (max-width: 480px) {
    .api-info-row {
        padding: 0.625rem 0.75rem;
        gap: 0.5rem;
    }
    
    .api-info-label {
        font-size: 0.625rem;
    }
    
    .api-info-label svg {
        width: 11px;
        height: 11px;
    }
    
    .api-method-badge,
    .api-format-badge {
        min-width: 48px;
        font-size: 0.625rem;
        padding: 0.3125rem 0.5rem;
    }
    
    .api-endpoint-header {
        padding: 0.625rem 0.75rem;
    }
    
    .api-endpoint-header h3 {
        font-size: 0.8125rem;
        gap: 0.4375rem;
    }
    
    .api-endpoint-header h3 .endpoint-icon {
        width: 14px;
        height: 14px;
    }
}

/* Search Container - Modern & Attractive */
.services-search-container {
    margin-bottom: 1.5rem;
}

.services-search-wrapper {
    position: relative;
    max-width: 100%;
    margin: 0;
    display: flex;
    align-items: center;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0.625rem 1rem;
    gap: 0.75rem;
}

.services-search-wrapper:hover {
    border-color: #c7d2fe;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.08), 0 2px 4px rgba(102, 126, 234, 0.04);
    transform: translateY(-1px);
}

.services-search-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12), 0 4px 16px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.services-search-wrapper .search-icon {
    color: #a5b4fc;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    transition: all 0.25s ease;
    border: none;
    border-right: none;
}

.services-search-wrapper:hover .search-icon {
    color: #818cf8;
}

.services-search-wrapper:focus-within .search-icon {
    color: #667eea;
    transform: scale(1.08);
}

.services-search-input {
    flex: 1;
    border: none !important;
    border-left: none !important;
    outline: none;
    font-size: 0.875rem;
    font-weight: 400;
    color: #1e293b;
    background: transparent;
    padding: 0;
    letter-spacing: 0.01em;
    box-shadow: none !important;
}

.services-search-input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.search-clear-btn {
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    border: none;
    border-radius: 8px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
}

.search-clear-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.search-clear-btn:hover {
    transform: scale(1.05);
}

.search-clear-btn:hover::before {
    opacity: 1;
}

.search-clear-btn svg {
    color: #64748b;
    transition: all 0.2s ease;
    position: relative;
    z-index: 1;
    width: 14px;
    height: 14px;
}

.search-clear-btn:hover svg {
    color: #ffffff;
    transform: rotate(90deg);
}

.search-clear-btn:active {
    transform: scale(0.95);
}

/* Category Section */
.services-category-section {
    margin-bottom: 2rem;
}

.services-category-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.25rem;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #206bc4 0%, #1a569d 100%);
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(32, 107, 196, 0.15);
    position: relative;
    overflow: hidden;
}

.services-category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.category-title-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.category-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.category-icon svg {
    color: #fff;
    width: 18px;
    height: 18px;
}

.services-category-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.category-badge {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    position: relative;
    z-index: 1;
}

.badge-count {
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.badge-text {
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Services Table Card */
.services-table-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 0;
    overflow: hidden;
}

/* Empty State - Beyaz Arka Plan Yok */
.empty {
    background: transparent !important;
    padding: 3rem 1.5rem;
}

.services-table {
    margin-bottom: 0;
}

.services-table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 2px solid #e2e8f0;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #475569;
    padding: 0.75rem 0.875rem;
    white-space: nowrap;
}

.services-table tbody tr {
    transition: all 0.2s ease;
}

.services-table tbody tr:hover {
    background: rgba(32, 107, 196, 0.02);
}

.services-table tbody td {
    padding: 0.625rem 0.875rem;
    vertical-align: middle;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    line-height: 1.4;
}

.service-id {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 52px;
    height: 32px;
    padding: 0 0.75rem;
    background: linear-gradient(135deg, #206bc4 0%, #1a569d 100%);
    color: #fff;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
}

.service-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.4;
}

/* Service Price */
.service-price {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
}

/* Service Limit */
.service-limit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 80px;
    padding: 0.375rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
}

/* Service Load */
.service-load-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.service-load-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.service-load-progress {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.service-load-progress.load-low {
    background: linear-gradient(90deg, #2fb344 0%, #27a03d 100%);
}

.service-load-progress.load-medium {
    background: linear-gradient(90deg, #f59f00 0%, #d97706 100%);
}

.service-load-progress.load-high {
    background: linear-gradient(90deg, #d63939 0%, #b32d2d 100%);
}

.service-load-text {
    font-size: 0.875rem;
    font-weight: 700;
    min-width: 45px;
    text-align: center;
}

/* Dark Mode */
[data-bs-theme="dark"] .services-search-wrapper,
.theme-dark .services-search-wrapper {
    background: #1e293b;
    border-color: #334155;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

[data-bs-theme="dark"] .services-search-wrapper:hover,
.theme-dark .services-search-wrapper:hover {
    border-color: #4c5a7d;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.15), 0 2px 4px rgba(102, 126, 234, 0.08);
}

[data-bs-theme="dark"] .services-search-wrapper:focus-within,
.theme-dark .services-search-wrapper:focus-within {
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.2), 0 4px 16px rgba(102, 126, 234, 0.25);
}

[data-bs-theme="dark"] .services-search-wrapper .search-icon,
.theme-dark .services-search-wrapper .search-icon {
    color: #6366f1;
}

[data-bs-theme="dark"] .services-search-wrapper:hover .search-icon,
.theme-dark .services-search-wrapper:hover .search-icon {
    color: #818cf8;
}

[data-bs-theme="dark"] .services-search-wrapper:focus-within .search-icon,
.theme-dark .services-search-wrapper:focus-within .search-icon {
    color: #a5b4fc;
    transform: scale(1.08);
}

[data-bs-theme="dark"] .services-search-input,
.theme-dark .services-search-input {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .services-search-input::placeholder,
.theme-dark .services-search-input::placeholder {
    color: #64748b;
}

[data-bs-theme="dark"] .search-clear-btn,
.theme-dark .search-clear-btn {
    background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
}

[data-bs-theme="dark"] .search-clear-btn svg,
.theme-dark .search-clear-btn svg {
    color: #94a3b8;
}

[data-bs-theme="dark"] .services-category-header,
.theme-dark .services-category-header {
    background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
}

[data-bs-theme="dark"] .services-table-card,
.theme-dark .services-table-card {
    background: #1e293b;
    border-color: #334155;
}

[data-bs-theme="dark"] .services-table thead th,
.theme-dark .services-table thead th {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .services-table tbody td,
.theme-dark .services-table tbody td {
    border-color: #334155;
}

[data-bs-theme="dark"] .services-table tbody tr:hover,
.theme-dark .services-table tbody tr:hover {
    background: rgba(148, 163, 184, 0.05);
}

[data-bs-theme="dark"] .service-name,
.theme-dark .service-name {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .service-price,
.theme-dark .service-price {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .service-limit,
.theme-dark .service-limit {
    background: #0f172a;
    border-color: #334155;
    color: #cbd5e1;
}

[data-bs-theme="dark"] .service-load-bar,
.theme-dark .service-load-bar {
    background: #334155;
}

/* Responsive */
@media (max-width: 991px) {
    .services-table thead th {
        font-size: 0.6875rem;
        padding: 0.625rem 0.75rem;
    }
    
    .services-table tbody td {
        padding: 0.5rem 0.75rem;
        font-size: 0.8125rem;
    }
    
    .service-id {
        min-width: 42px;
        height: 28px;
        font-size: 0.6875rem;
    }
    
    .service-name {
        font-size: 0.875rem;
    }
    
    .service-price {
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .services-search-container {
        margin-bottom: 1.25rem;
    }
    
    .services-search-wrapper {
        padding: 0.625rem 0.875rem;
        gap: 0.625rem;
        border-radius: 8px;
    }
    
    .services-search-wrapper .search-icon {
        width: 16px;
        height: 16px;
    }
    
    .services-search-input {
        font-size: 0.8125rem;
    }
    
    .search-clear-btn {
        width: 28px;
        height: 28px;
        border-radius: 6px;
    }
    
    .search-clear-btn svg {
        width: 13px;
        height: 13px;
    }
    
    .services-category-header {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        border-radius: 8px;
    }
    
    .category-title-wrapper {
        gap: 0.625rem;
        flex: 1;
        min-width: 0;
    }
    
    .category-icon {
        width: 36px;
        height: 36px;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .category-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .services-category-header h3 {
        font-size: 1rem;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .category-badge {
        padding: 0.375rem 0.75rem;
        border-radius: 8px;
        flex-shrink: 0;
    }
    
    .badge-count {
        font-size: 1rem;
    }
    
    .badge-text {
        font-size: 0.6875rem;
    }
    
    .services-table-card {
        border-radius: 6px;
    }
    
    .services-table {
        font-size: 0.8125rem;
    }
    
    .services-table thead th {
        padding: 0.75rem 0.875rem;
        font-size: 0.6875rem;
    }
    
    .services-table tbody td {
        padding: 0.75rem 0.875rem;
    }
    
    .service-id {
        min-width: 48px;
        height: 28px;
        padding: 0 0.625rem;
        font-size: 0.6875rem;
    }
    
    .service-name {
        font-size: 0.8125rem;
    }
    
    .service-price {
        font-size: 0.9375rem;
    }
    
    .service-limit {
        min-width: 70px;
        padding: 0.3125rem 0.625rem;
        font-size: 0.8125rem;
    }
    
    .service-load-container {
        gap: 0.5rem;
    }
    
    .service-load-bar {
        height: 6px;
    }
    
    .service-load-text {
        font-size: 0.8125rem;
        min-width: 40px;
    }
}

@media (max-width: 575px) {
    /* Mobil için yatay scroll */
    .services-table-card {
        overflow-x: auto;
    }
    
    .services-table {
        min-width: 600px;
    }
}

/* Balance Request Card */
.balance-request-card {
    background: #fff;
    border: 1px solid rgba(98, 105, 118, 0.16);
    border-radius: 8px;
    overflow: hidden;
}

.balance-request-header {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #206bc4 0%, #1a569d 100%);
    color: #fff;
}

.balance-request-header svg {
    flex-shrink: 0;
}

.balance-request-header h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
}

.balance-request-body {
    padding: 1.25rem;
}

.balance-submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-weight: 600;
}

/* Balance Info Card */
.balance-info-card {
    background: #fff;
    border: 1px solid rgba(98, 105, 118, 0.16);
    border-radius: 8px;
    overflow: hidden;
}

.balance-info-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1rem;
    background: rgba(245, 159, 0, 0.08);
    border-bottom: 1px solid rgba(245, 159, 0, 0.16);
    font-weight: 600;
    font-size: 0.8125rem;
    color: #1e293b;
}

.balance-info-header svg {
    color: #f59f00;
    flex-shrink: 0;
}

.balance-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.balance-info-list li {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(98, 105, 118, 0.08);
    font-size: 0.8125rem;
    color: #64748b;
    position: relative;
    padding-left: 2rem;
}

.balance-info-list li:last-child {
    border-bottom: none;
}

.balance-info-list li::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: #206bc4;
    border-radius: 50%;
}

/* Balance History Card */
.balance-history-card {
    background: #fff;
    border: 1px solid rgba(98, 105, 118, 0.16);
    border-radius: 8px;
    overflow: hidden;
}

.balance-history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border-bottom: 1px solid rgba(98, 105, 118, 0.16);
}

.balance-history-header > div {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.balance-history-header svg {
    flex-shrink: 0;
}

.balance-history-header h3 {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #1e293b;
}

.balance-history-body {
    padding: 0;
}

.balance-history-card .card-footer,
#paginationWrapper.card-footer {
    background: var(--tblr-bg-surface-secondary, #f8fafc);
    border-top: 1px solid var(--tblr-border-color, rgba(98, 105, 118, 0.16));
    padding: 0.875rem 1.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.balance-history-card .pagination,
#paginationControls.pagination {
    margin: 0;
    gap: 0.25rem;
}

.balance-history-card .page-item,
#paginationControls .page-item {
    margin: 0;
}

.balance-history-card .page-link,
#paginationControls .page-link {
    border: 1px solid rgba(98, 105, 118, 0.16);
    border-radius: 6px;
    padding: 0.375rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.2s ease;
    min-width: 38px;
    height: 38px;
    justify-content: center;
}

.balance-history-card .page-link:hover,
#paginationControls .page-link:hover {
    background: #f8fafc;
    border-color: #206bc4;
    color: #206bc4;
    transform: translateY(-1px);
}

.balance-history-card .page-link .icon,
#paginationControls .page-link .icon {
    width: 18px;
    height: 18px;
}

.balance-history-card .page-item.active .page-link,
#paginationControls .page-item.active .page-link {
    background: linear-gradient(135deg, #206bc4 0%, #1a5aa8 100%);
    border-color: #206bc4;
    color: #fff;
    box-shadow: 0 2px 8px rgba(32, 107, 196, 0.3);
    font-weight: 600;
}

.balance-history-card .page-item.disabled .page-link,
#paginationControls .page-item.disabled .page-link {
    background: transparent;
    border-color: transparent;
    color: #94a3b8;
    cursor: default;
    pointer-events: none;
}

/* Empty State */
.empty-balance-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    text-align: center;
}

.empty-balance-state svg {
    color: #cbd5e1;
    margin-bottom: 1.25rem;
}

.empty-balance-state h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.empty-balance-state p {
    margin: 0;
    font-size: 0.875rem;
    color: #64748b;
    max-width: 400px;
}

/* Balance Table */
.balance-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.balance-table thead th {
    padding: 0.875rem 1.25rem;
    background: #f8fafc;
    border-bottom: 2px solid rgba(98, 105, 118, 0.16);
    font-weight: 700;
    color: #475569;
    text-align: left;
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.balance-table tbody tr {
    border-bottom: 1px solid rgba(98, 105, 118, 0.08);
    transition: all 0.2s ease;
}

.balance-table tbody tr:nth-child(even) {
    background: rgba(248, 250, 252, 0.5);
}

.balance-table tbody tr:hover {
    background: rgba(32, 107, 196, 0.04);
    border-bottom-color: rgba(32, 107, 196, 0.2);
}

.balance-table tbody td {
    padding: 1rem 1.25rem;
    color: #1e293b;
    line-height: 1.5;
    min-height: 44px;
}

.balance-method {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: #475569;
}

.balance-method svg {
    color: #206bc4;
    flex-shrink: 0;
}

.balance-amount {
    font-weight: 700;
    font-size: 0.9375rem;
    color: #0f172a;
}

.balance-date {
    color: #64748b;
    font-size: 0.8125rem;
    font-weight: 500;
}

/* Status Badges */
.balance-status {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.8125rem;
}

.balance-status svg {
    flex-shrink: 0;
}

.balance-status.status-warning {
    background: linear-gradient(135deg, #f59f00 0%, #d68a00 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(245, 159, 0, 0.3);
}

.balance-status.status-success {
    background: linear-gradient(135deg, #2fb344 0%, #28a03c 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(47, 179, 68, 0.3);
}

.balance-status.status-danger {
    background: linear-gradient(135deg, #d63939 0%, #c12e2e 100%);
    color: #fff;
    border: none;
    box-shadow: 0 2px 4px rgba(214, 57, 57, 0.3);
}

/* Cancel Button */
.cancel-request-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 600;
}

[data-bs-theme="dark"] .balance-request-card,
[data-bs-theme="dark"] .balance-info-card,
[data-bs-theme="dark"] .balance-history-card,
.theme-dark .balance-request-card,
.theme-dark .balance-info-card,
.theme-dark .balance-history-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .balance-request-header,
.theme-dark .balance-request-header {
    background: linear-gradient(135deg, #74b3f7 0%, #5a9fe5 100%);
}

[data-bs-theme="dark"] .balance-info-header,
.theme-dark .balance-info-header {
    background: rgba(245, 159, 0, 0.15);
    border-bottom-color: rgba(245, 159, 0, 0.25);
    color: #e2e8f0;
}

[data-bs-theme="dark"] .balance-info-header svg,
.theme-dark .balance-info-header svg {
    color: #ffc078;
}

[data-bs-theme="dark"] .balance-info-list li,
.theme-dark .balance-info-list li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .balance-info-list li::before,
.theme-dark .balance-info-list li::before {
    background: #74b3f7;
}

[data-bs-theme="dark"] .balance-history-header,
.theme-dark .balance-history-header {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .balance-history-header h3,
.theme-dark .balance-history-header h3 {
    color: #f8fafc;
}

[data-bs-theme="dark"] .balance-history-header svg,
.theme-dark .balance-history-header svg {
    color: #ffffff;
}

[data-bs-theme="dark"] .empty-balance-state h3,
.theme-dark .empty-balance-state h3 {
    color: #f8fafc;
}

[data-bs-theme="dark"] .empty-balance-state p,
.theme-dark .empty-balance-state p {
    color: #94a3b8;
}

[data-bs-theme="dark"] .balance-table thead th,
.theme-dark .balance-table thead th {
    background: #0f172a;
    border-bottom-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .balance-table tbody tr,
.theme-dark .balance-table tbody tr {
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .balance-table tbody tr:nth-child(even),
.theme-dark .balance-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.5);
}

[data-bs-theme="dark"] .balance-table tbody tr:hover,
.theme-dark .balance-table tbody tr:hover {
    background: rgba(116, 179, 247, 0.1) !important;
    border-bottom-color: rgba(116, 179, 247, 0.3);
}

[data-bs-theme="dark"] .balance-table tbody td,
.theme-dark .balance-table tbody td {
    color: #e2e8f0;
}

[data-bs-theme="dark"] .balance-method,
.theme-dark .balance-method {
    color: #cbd5e1;
}

[data-bs-theme="dark"] .balance-method svg,
.theme-dark .balance-method svg {
    color: #74b3f7;
}

[data-bs-theme="dark"] .balance-amount,
.theme-dark .balance-amount {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .balance-date,
.theme-dark .balance-date {
    color: #cbd5e1;
}

/* Dark Mode - Balance & Orders Pagination */
[data-bs-theme="dark"] .balance-history-card .card-footer,
[data-bs-theme="dark"] #paginationWrapper.card-footer,
.theme-dark .balance-history-card .card-footer,
.theme-dark #paginationWrapper.card-footer {
    background: rgba(255, 255, 255, 0.02);
    border-top-color: rgba(255, 255, 255, 0.12);
}

[data-bs-theme="dark"] .balance-history-card .page-link,
[data-bs-theme="dark"] #paginationControls .page-link,
.theme-dark .balance-history-card .page-link,
.theme-dark #paginationControls .page-link {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.12);
    color: #cbd5e1;
}

[data-bs-theme="dark"] .balance-history-card .page-link:hover,
[data-bs-theme="dark"] #paginationControls .page-link:hover,
.theme-dark .balance-history-card .page-link:hover,
.theme-dark #paginationControls .page-link:hover {
    background: #334155;
    border-color: #74b3f7;
    color: #74b3f7;
}

[data-bs-theme="dark"] .balance-history-card .page-item.active .page-link,
[data-bs-theme="dark"] #paginationControls .page-item.active .page-link,
.theme-dark .balance-history-card .page-item.active .page-link,
.theme-dark #paginationControls .page-item.active .page-link {
    background: linear-gradient(135deg, #74b3f7 0%, #5a9fe5 100%);
    border-color: #74b3f7;
    color: #0f172a;
    box-shadow: 0 2px 8px rgba(116, 179, 247, 0.3);
}

[data-bs-theme="dark"] .balance-history-card .page-item.disabled .page-link,
[data-bs-theme="dark"] #paginationControls .page-item.disabled .page-link,
.theme-dark .balance-history-card .page-item.disabled .page-link,
.theme-dark #paginationControls .page-item.disabled .page-link {
    background: transparent;
    border-color: transparent;
    color: #475569;
}

@media (max-width: 991px) {
    .balance-table {
        font-size: 0.8125rem;
    }
    
    .balance-table thead th,
    .balance-table tbody td {
        padding: 0.75rem 1rem;
    }
}

@media (max-width: 767px) {
    .balance-request-header,
    .balance-history-header {
        padding: 0.875rem 1rem;
    }
    
    .balance-request-body {
        padding: 1rem;
    }
    
    .balance-table {
        font-size: 0.75rem;
    }
    
    .balance-table thead th,
    .balance-table tbody td {
        padding: 0.625rem 0.75rem;
    }
    
    .balance-method {
        font-size: 0.75rem;
    }
    
    .balance-method svg {
        width: 16px;
        height: 16px;
    }
    
    .balance-amount {
        font-size: 0.8125rem;
    }
    
    .balance-date {
        font-size: 0.75rem;
    }
    
    .balance-status {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
    .balance-status svg {
        width: 14px;
        height: 14px;
    }
    
    .cancel-request-btn {
        padding: 0.25rem 0.5rem;
        font-size: 0.75rem;
    }
    
/* Balance & Orders Pagination - Mobile */
    .balance-history-card .card-footer {
        padding: 0.75rem 0.875rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    /* Admin Tables - Mobile Responsive */
    .table-responsive {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix loading spinner centering on mobile */
    .table .spinner-border {
        margin: 0 auto;
        display: block;
    }
    
    .table tbody tr td[colspan] {
        text-align: center !important;
    }
    
    .table td, .table th {
        white-space: nowrap;
    }
    
    /* Admin Pagination - Mobile */
    #paginationWrapper.card-footer {
        padding: 0.75rem 0.875rem;
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 1rem;
    }
    
    #paginationInfo {
        width: 100%;
        text-align: center;
        order: 2;
        font-size: 0.8125rem;
    }
    
    #paginationControls {
        width: 100%;
        justify-content: center !important;
        margin: 0 !important;
        order: 1;
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .balance-history-card .card-footer p {
        text-align: center;
        font-size: 0.75rem;
    }
    
    .balance-history-card .pagination {
        justify-content: center;
        gap: 0.25rem;
        flex-wrap: wrap;
    }
    
    .balance-history-card .page-link,
    #paginationControls .page-link {
        padding: 0.375rem 0.5rem;
        font-size: 0.8125rem;
        min-width: 34px;
        height: 34px;
    }
    
    .balance-history-card .page-link .icon,
    #paginationControls .page-link .icon {
        width: 16px;
        height: 16px;
    }
    
    .cancel-request-btn svg {
        width: 12px;
        height: 12px;
    }
    
    .empty-balance-state {
        padding: 2rem 1rem;
    }
    
    .empty-balance-state svg {
        width: 48px;
        height: 48px;
    }
    
    .empty-balance-state h3 {
        font-size: 1rem;
    }
    
    .empty-balance-state p {
        font-size: 0.8125rem;
    }
}

/* ===================================
   Modern Bildirim Sistemi
   =================================== */

/* Bildirim Dropdown Container */
.bayi-notif-panel {
   position: absolute;
   top: 100%;
   right: 0;
   margin-top: 0.5rem;
   width: 380px;
   max-width: 90vw;
   background: var(--tblr-card-bg, #ffffff);
   border: 1px solid var(--tblr-border-color, #e9ecef);
   border-radius: 8px;
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
   opacity: 0;
   visibility: hidden;
   transform: translateY(-10px);
   transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
   z-index: 1050;
}

.bayi-notif-panel.active {
   opacity: 1;
   visibility: visible;
   transform: translateY(0);
}

/* Header */
.bayi-notif-head {
   padding: 1rem 1.25rem;
   border-bottom: 1px solid var(--tblr-border-color, #e9ecef);
   display: flex;
   align-items: center;
   justify-content: space-between;
}

.bayi-notif-head h3 {
   margin: 0;
   font-size: 1rem;
   font-weight: 600;
   color: var(--tblr-body-color, #1e293b);
}

/* Liste Container */
.bayi-notif-list {
   max-height: 400px;
   overflow-y: auto;
}

.bayi-notif-list::-webkit-scrollbar {
   width: 6px;
}

.bayi-notif-list::-webkit-scrollbar-track {
   background: var(--tblr-border-color-translucent, #f1f5f9);
}

.bayi-notif-list::-webkit-scrollbar-thumb {
   background: var(--tblr-border-color, #cbd5e1);
   border-radius: 3px;
}

.bayi-notif-list::-webkit-scrollbar-thumb:hover {
   background: var(--tblr-secondary, #94a3b8);
}

/* Bildirim Item */
.bayi-notif-card {
   padding: 1rem 1.25rem;
   border-bottom: 1px solid var(--tblr-border-color-translucent, #f1f5f9);
   cursor: default;
   transition: all 0.2s ease;
}

.bayi-notif-card:hover {
   background-color: var(--tblr-hover-bg, rgba(0, 0, 0, 0.02));
}

.bayi-notif-card:last-child {
   border-bottom: none;
}

/* Content */
.bayi-notif-body {
   flex: 1;
   min-width: 0;
}

.bayi-notif-title {
   font-size: 0.875rem;
   font-weight: 600;
   color: var(--tblr-body-color, #1e293b);
   line-height: 1.3;
}

.bayi-notif-text {
   font-size: 0.8125rem;
   color: var(--tblr-secondary-color, #64748b);
   margin: 0;
   line-height: 1.4;
}

.bayi-notif-time {
   font-size: 0.75rem;
   color: var(--tblr-muted, #94a3b8);
   margin: 0;
   white-space: nowrap;
   flex-shrink: 0;
   font-weight: 400;
}

/* Empty State */
.bayi-notif-empty {
   padding: 2rem 1.5rem;
   text-align: center;
}

.bayi-notif-empty-icon {
   width: 64px;
   height: 64px;
   margin: 0 auto 1rem;
   opacity: 0.3;
   color: var(--tblr-secondary-color, #64748b);
}

.bayi-notif-empty-text {
   font-size: 0.875rem;
   color: var(--tblr-secondary-color, #64748b);
   margin: 0;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
   .bayi-notif-panel {
      position: fixed;
      top: 60px !important;
      right: 10px;
      left: 10px;
      width: auto;
      max-width: none;
      margin-top: 0;
   }
}

/* Responsive - Mobile */
@media (max-width: 480px) {
   .bayi-notif-panel {
      top: 55px !important;
      right: 5px;
      left: 5px;
      border-radius: 6px;
   }
   
   .bayi-notif-head {
      padding: 0.875rem 1rem;
   }
   
   .bayi-notif-head h3 {
      font-size: 0.9375rem;
   }
   
   .bayi-notif-list {
      max-height: 350px;
   }
   
   .bayi-notif-card {
      padding: 0.875rem 1rem;
   }
   
   .bayi-notif-title {
      font-size: 0.8125rem;
      gap: 0.5rem;
   }
   
   .bayi-notif-text {
      font-size: 0.75rem;
   }
   
   .bayi-notif-time {
      font-size: 0.6875rem;
   }
   
   .bayi-notif-empty {
      padding: 2.5rem 1rem;
   }
   
   .bayi-notif-empty-icon {
      width: 48px;
      height: 48px;
   }
}

/* Dark Mode Support */
[data-bs-theme="dark"] .bayi-notif-panel {
   background: var(--tblr-dark, #1e293b);
   border-color: var(--tblr-border-color-dark, rgba(255, 255, 255, 0.1));
   box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .bayi-notif-card:hover {
   background-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .bayi-notif-time {
   color: #94a3b8;
   opacity: 0.9;
}

[data-bs-theme="dark"] .bayi-notif-text {
   color: #94a3b8;
}

[data-bs-theme="dark"] .bayi-notif-title {
   color: #e2e8f0;
}

/* Footer Bayi */
.footer-bayi {
   background: var(--tblr-bg-surface, #ffffff);
   border-top-color: var(--tblr-border-color, #e5e7eb) !important;
}

[data-bs-theme="dark"] .footer-bayi {
   background: var(--tblr-bg-surface, #0f172a);
   border-top-color: rgba(255, 255, 255, 0.1) !important;
}

/* ============================================
   MOBİL SELECT DÜZENLEMESİ
   ============================================ */

/* Mobil cihazlarda select elementleri için iyileştirme */
@media (max-width: 768px) {
    select.form-select,
    select.form-control {
        /* Native select görünümünü kullan */
        appearance: auto;
        -webkit-appearance: menulist;
        -moz-appearance: menulist;
        
        /* Boyut ve padding */
        font-size: 16px !important; /* Zoom önlemek için */
        min-height: 44px; /* Touch target boyutu */
        padding: 0.5rem 2.5rem 0.5rem 0.75rem;
        
        /* Arka plan ve border */
        background-color: #fff;
        background-position: right 0.5rem center;
        background-size: 16px 12px;
        border: 1px solid #d1d5db;
        border-radius: 0.375rem;
        
        /* Okunu native kullan */
        background-image: none !important;
    }
    
    /* Focus durumu */
    select.form-select:focus,
    select.form-control:focus {
        border-color: #206bc4;
        box-shadow: 0 0 0 0.25rem rgba(32, 107, 196, 0.15);
    }
    
    /* Dark mode */
    [data-bs-theme="dark"] select.form-select,
    [data-bs-theme="dark"] select.form-control {
        background-color: #1e293b;
        border-color: #334155;
        color: #e2e8f0;
    }
}

/* Tüm cihazlarda select için iyileştirmeler */
select.form-select,
select.form-control {
    cursor: pointer;
    transition: all 0.15s ease-in-out;
}

select.form-select option,
select.form-control option {
    padding: 0.5rem;
    font-size: 14px;
}

/* iOS için özel düzenlemeler */
@supports (-webkit-touch-callout: none) {
    select.form-select,
    select.form-control {
        padding-right: 1.5rem;
    }
}

/* ============================================
   YENİ SİPARİŞ ANİMASYONLARI
   ============================================ */

/* Yeni sipariş animasyonu */
.services-table tbody tr.new-order-animated {
    animation: slideInFromTop 0.6s ease-out;
}

@keyframes slideInFromTop {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        background-color: rgba(32, 107, 196, 0.12);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background-color: rgba(32, 107, 196, 0.06);
    }
}

.services-table tbody tr.new-order-highlight {
    background-color: rgba(32, 107, 196, 0.06);
    transition: background-color 0.5s ease;
}

/* Dark mode için animasyonlar */
[data-bs-theme="dark"] .services-table tbody tr.new-order-animated {
    animation: slideInFromTopDark 0.6s ease-out;
}

@keyframes slideInFromTopDark {
    0% {
        opacity: 0;
        transform: translateY(-20px);
        background-color: rgba(116, 179, 247, 0.15);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        background-color: rgba(116, 179, 247, 0.08);
    }
}

[data-bs-theme="dark"] .services-table tbody tr.new-order-highlight {
    background-color: rgba(116, 179, 247, 0.08);
    transition: background-color 0.5s ease;
}

/* ===================================
   Dashboard Styles
   =================================== */

/* Row Deck - Eşit Yükseklik */
.row-deck > [class*='col'] {
    display: flex;
    flex-direction: column;
}

.row-deck > [class*='col'] > * {
    flex: 1;
}


/* Metric Cards */
.metric-card {
    position: relative;
    border-radius: 12px;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: all 0.3s ease;
}

.metric-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    opacity: 0.08;
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: transparent;
}

.metric-card:hover::before {
    transform: scale(1.2);
}

.metric-card-updated {
    animation: pulse-update 1s ease;
}

@keyframes pulse-update {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 8px 24px rgba(32, 107, 196, 0.2);
    }
}

/* Removed live card animations - not used anymore */

.metric-card-green::before { background: #2fb344; }
.metric-card-blue::before { background: #206bc4; }
.metric-card-red::before { background: #d63939; }
.metric-card-orange::before { background: #f76707; }

.metric-card-green:hover { border-color: rgba(47, 179, 68, 0.3); }
.metric-card-blue:hover { border-color: rgba(32, 107, 196, 0.3); }
.metric-card-red:hover { border-color: rgba(214, 57, 57, 0.3); }
.metric-card-orange:hover { border-color: rgba(247, 103, 7, 0.3); }

.metric-card-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.metric-icon {
    width: 52px;
    height: 52px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.metric-card-green .metric-icon { color: #2fb344; }
.metric-card-blue .metric-icon { color: #206bc4; }
.metric-card-red .metric-icon { color: #d63939; }
.metric-card-orange .metric-icon { color: #f76707; }

.metric-card:hover .metric-icon {
    transform: scale(1.1) rotate(5deg);
}

/* Removed live icon animations - not used anymore */

.metric-content {
    flex: 1;
}

.metric-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
}

/* Time Stat Cards - Kompakt */
.time-stat-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 1.25rem;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.time-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.time-stat-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    min-height: 32px;
}

.time-stat-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.time-stat-trend {
    display: inline-flex;
    align-items: center;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.time-stat-trend-up { 
    background: rgba(47, 179, 68, 0.1); 
    color: #2fb344; 
}

.time-stat-trend-down { 
    background: rgba(214, 57, 57, 0.1); 
    color: #d63939; 
}

.time-stat-trend-placeholder {
    height: 24px;
    width: 1px;
    visibility: hidden;
}

.time-stat-body {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex: 1;
}

.time-stat-count {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.time-stat-text {
    font-size: 0.875rem;
    color: #64748b;
}

.time-stat-amount {
    margin-left: auto;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #2fb344;
}

/* Dashboard Card */
.dashboard-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    min-height: 450px;
}

.dashboard-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.dashboard-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.dashboard-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dashboard-card-desc {
    font-size: 0.8125rem;
    color: #64748b;
    margin: 0.25rem 0 0 0;
}

.dashboard-card-link {
    font-size: 0.875rem;
    color: #206bc4;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.dashboard-card-link:hover {
    color: #1c5ba8;
}

.dashboard-card-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    background: rgba(32, 107, 196, 0.1);
    color: #206bc4;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.dashboard-card-body {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Navbar Logo */
.navbar-brand-image {
    object-fit: contain;
    object-position: left center;
    transition: opacity 0.2s ease;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    backface-visibility: hidden;
    transform: translateZ(0);
    will-change: transform;
}

.navbar-brand-image:hover {
    opacity: 0.85;
}

.navbar-brand {
    overflow: visible !important;
    padding: 0 !important;
}

.navbar-brand a {
    padding: 0.5rem 1rem !important;
    display: flex;
    align-items: center;
    overflow: visible !important;
}

/* Success Card */
.success-card .dashboard-card-body {
    padding: 1.5rem;
    justify-content: center;
}

.success-circle {
    position: relative;
    width: 160px;
    height: 160px;
    margin: 0 auto 2rem;
}

.success-ring {
    transform: rotate(-90deg);
}

.success-ring-bg {
    fill: none;
    stroke: rgba(0, 0, 0, 0.08);
    stroke-width: 12;
}

.success-ring-progress {
    fill: none;
    stroke: #2fb344;
    stroke-width: 12;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.success-value {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
}

.success-percent {
    font-size: 2.25rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.success-label {
    font-size: 0.875rem;
    color: #64748b;
    margin-top: 0.25rem;
}

.success-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

.success-stat-item {
    text-align: center;
}

.success-stat-value {
    font-size: 1.625rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.success-stat-label {
    font-size: 0.8125rem;
    color: #64748b;
}

.success-stat-divider {
    width: 1px;
    height: 50px;
    background: rgba(0, 0, 0, 0.1);
}

/* Status List */
.status-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.status-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.status-item:hover {
    background: #f1f5f9;
    transform: translateX(4px);
}

.status-item-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex: 1;
}

.status-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.status-icon-success { background: rgba(47, 179, 68, 0.1); color: #2fb344; }
.status-icon-primary { background: rgba(32, 107, 196, 0.1); color: #206bc4; }
.status-icon-info { background: rgba(23, 162, 184, 0.1); color: #17a2b8; }
.status-icon-warning { background: rgba(245, 159, 0, 0.1); color: #f59f00; }
.status-icon-orange { background: rgba(247, 103, 7, 0.1); color: #f76707; }
.status-icon-danger { background: rgba(214, 57, 57, 0.1); color: #d63939; }

.status-info {
    flex: 1;
}

.status-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.status-count {
    font-size: 0.8125rem;
    color: #64748b;
}

.status-item-right {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 150px;
}

.status-percent {
    font-size: 1rem;
    font-weight: 700;
    color: #1e293b;
    min-width: 45px;
    text-align: right;
}

.status-bar {
    flex: 1;
    height: 8px;
    background: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
    overflow: hidden;
}

.status-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.status-bar-success { background: linear-gradient(90deg, #2fb344, #47d164); }
.status-bar-primary { background: linear-gradient(90deg, #206bc4, #4299e1); }
.status-bar-info { background: linear-gradient(90deg, #17a2b8, #4dd4e4); }
.status-bar-warning { background: linear-gradient(90deg, #f59f00, #fab005); }
.status-bar-orange { background: linear-gradient(90deg, #f76707, #fd7e14); }
.status-bar-danger { background: linear-gradient(90deg, #d63939, #e55353); }

/* Orders Table */
.orders-table-responsive {
    overflow-x: auto;
}

.orders-table {
    width: 100%;
    border-collapse: collapse;
}

.orders-table thead th {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.06);
}

.orders-table tbody td {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: #1e293b;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
}

.orders-table tbody tr {
    transition: background 0.2s ease;
}

.orders-table tbody tr:hover {
    background: #f8fafc;
}

.order-id {
    font-family: 'Courier New', monospace;
    font-weight: 600;
    color: #64748b;
}

.order-service {
    font-weight: 500;
    color: #1e293b;
}

.order-amount {
    font-weight: 600;
    color: #2fb344;
}

.order-status {
    display: inline-block;
    padding: 0.35rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.order-status-success { background: rgba(47, 179, 68, 0.1); color: #2fb344; }
.order-status-primary { background: rgba(32, 107, 196, 0.1); color: #206bc4; }
.order-status-info { background: rgba(23, 162, 184, 0.1); color: #17a2b8; }
.order-status-warning { background: rgba(245, 159, 0, 0.1); color: #f59f00; }
.order-status-orange { background: rgba(247, 103, 7, 0.1); color: #f76707; }
.order-status-danger { background: rgba(214, 57, 57, 0.1); color: #d63939; }

.order-date {
    color: #64748b;
    font-size: 0.875rem;
}

/* Services List */
.services-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f8fafc;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #f1f5f9;
    transform: scale(1.02);
}

.service-rank {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.service-rank-1 { background: linear-gradient(135deg, #ffd700, #ffed4e); color: #8b6914; }
.service-rank-2 { background: linear-gradient(135deg, #c0c0c0, #e8e8e8); color: #666; }
.service-rank-3 { background: linear-gradient(135deg, #cd7f32, #f4a460); color: #5c3a1a; }
.service-rank-4,
.service-rank-5 { background: rgba(32, 107, 196, 0.1); color: #206bc4; }

.service-details {
    flex: 1;
}

.service-name {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.service-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.8125rem;
}

.service-orders {
    color: #64748b;
}

.service-amount {
    color: #2fb344;
    font-weight: 600;
}

/* Dark Mode */

[data-bs-theme="dark"] .metric-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .metric-icon {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .metric-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .metric-value {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .time-stat-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .time-stat-header {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .time-stat-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .time-stat-count {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .time-stat-text {
    color: #94a3b8;
}

[data-bs-theme="dark"] .dashboard-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dashboard-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dashboard-card-title {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .dashboard-card-desc {
    color: #94a3b8;
}

[data-bs-theme="dark"] .success-ring-bg {
    stroke: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .success-percent {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .success-label,
[data-bs-theme="dark"] .success-stat-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .success-stat-value {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .success-stat-divider {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .status-item {
    background: #0f172a;
}

[data-bs-theme="dark"] .status-item:hover {
    background: #1e293b;
}

[data-bs-theme="dark"] .status-name {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .status-count {
    color: #94a3b8;
}

[data-bs-theme="dark"] .status-percent {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .status-bar {
    background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .orders-table thead th {
    color: #94a3b8;
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .orders-table tbody td {
    color: #cbd5e1;
    border-bottom-color: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .orders-table tbody tr:hover {
    background: rgba(255, 255, 255, 0.02);
}

[data-bs-theme="dark"] .order-service {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .service-item {
    background: #0f172a;
}

[data-bs-theme="dark"] .service-item:hover {
    background: #1e293b;
}

[data-bs-theme="dark"] .service-name {
    color: #f1f5f9;
}

/* Responsive */
@media (max-width: 768px) {
    
    .metric-card {
        padding: 1rem;
    }
    
    .metric-icon {
        width: 44px;
        height: 44px;
    }
    
    .metric-value {
        font-size: 1.25rem;
    }
    
    .time-stat-card {
        padding: 1.25rem;
    }
    
    .time-stat-count {
        font-size: 1.75rem;
    }
    
    .time-stat-amount {
        font-size: 0.9375rem;
    }
    
    /* Dashboard Card - Mobilde eşit yükseklik */
    .row-deck {
        display: flex;
        flex-wrap: wrap;
    }
    
    .row-deck > [class*='col'] {
        display: flex;
        flex-direction: column;
        margin-bottom: 1rem;
    }
    
    .dashboard-card {
        height: 100%;
        min-height: 420px;
    }
    
    .success-card {
        min-height: 420px;
    }
    
    #chart-performance {
        min-height: 280px !important;
    }
    
    .success-card .dashboard-card-body {
        padding: 1.25rem;
    }
    
    .success-circle {
        width: 140px;
        height: 140px;
        margin: 0 auto 1.5rem;
    }
    
    .success-circle svg {
        width: 140px !important;
        height: 140px !important;
    }
    
    .success-circle svg circle {
        cx: 70;
        cy: 70;
        r: 60;
    }
    
    .success-percent {
        font-size: 2rem;
    }
    
    .success-stat-value {
        font-size: 1.5rem;
    }
    
    .success-stats {
        gap: 1.5rem;
    }
    
    .status-item-right {
        min-width: 120px;
    }
    
    .status-percent {
        font-size: 0.875rem;
    }
    
    .orders-table {
        font-size: 0.875rem;
    }
    
    .orders-table thead th,
    .orders-table tbody td {
        padding: 0.75rem 0.5rem;
    }
}

@media (max-width: 576px) {
    .metric-card-body {
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    /* Çok küçük ekranlar için kartlar */
    .dashboard-card {
        min-height: 380px;
    }
    
    .success-card {
        min-height: 380px;
    }
    
    .success-circle {
        width: 130px;
        height: 130px;
        margin: 0 auto 1.25rem;
    }
    
    .success-circle svg {
        width: 130px !important;
        height: 130px !important;
    }
    
    .success-percent {
        font-size: 1.75rem;
    }
    
    .success-stat-value {
        font-size: 1.375rem;
    }
    
    .success-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .success-stat-divider {
        display: none;
    }
    
    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .status-item-right {
        width: 100%;
        min-width: 100%;
    }
    
    .service-rank {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
}

/* Stats Cards */
.stats-card {
    position: relative;
    padding: 1.5rem;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stats-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    opacity: 0.1;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.stats-card:hover::before {
    transform: scale(1.2);
}

/* Stats Card Variants */
.stats-card-primary::before { background: #206bc4; }
.stats-card-success::before { background: #2fb344; }
.stats-card-info::before { background: #4299e1; }
.stats-card-warning::before { background: #f59f00; }

.stats-card-primary:hover { border-color: rgba(32, 107, 196, 0.3); }
.stats-card-success:hover { border-color: rgba(47, 179, 68, 0.3); }
.stats-card-info:hover { border-color: rgba(66, 153, 225, 0.3); }
.stats-card-warning:hover { border-color: rgba(245, 159, 0, 0.3); }

/* Stats Icon */
.stats-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stats-card-primary .stats-icon { color: #206bc4; }
.stats-card-success .stats-icon { color: #2fb344; }
.stats-card-info .stats-icon { color: #4299e1; }
.stats-card-warning .stats-icon { color: #f59f00; }

.stats-card:hover .stats-icon {
    transform: rotate(10deg) scale(1.1);
}

/* Stats Content */
.stats-content {
    position: relative;
    z-index: 1;
}

.stats-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.stats-value {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.2;
    margin-bottom: 0.75rem;
}

.stats-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
}

.stats-badge-success {
    background: rgba(47, 179, 68, 0.1);
    color: #2fb344;
}

.stats-badge-danger {
    background: rgba(214, 57, 57, 0.1);
    color: #d63939;
}

.stats-badge-muted {
    background: rgba(100, 116, 139, 0.1);
    color: #64748b;
}

.stats-badge-info {
    background: rgba(66, 153, 225, 0.1);
    color: #4299e1;
}

/* Dashboard Card */
.dashboard-card {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.dashboard-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

.dashboard-card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.dashboard-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dashboard-card-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0.25rem 0 0;
}

.dashboard-card-body {
    padding: 1.5rem;
}

/* Dashboard Card Highlight */
.dashboard-card-highlight {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.dashboard-card-highlight .dashboard-card-body {
    padding: 2rem 1.5rem;
}

/* Performance Circle */
.performance-circle {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
    position: relative;
}

.performance-circle::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
}

.performance-circle-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.performance-value {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.performance-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Performance Stats */
.performance-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.performance-stat {
    text-align: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.performance-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
}

.performance-stat-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

/* Quick Stats */
.quick-stats {
    display: flex;
    justify-content: space-around;
    align-items: center;
    gap: 1rem;
}

.quick-stat-item {
    text-align: center;
    flex: 1;
}

.quick-stat-label {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.quick-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.quick-stat-amount {
    font-size: 0.875rem;
    color: #2fb344;
    font-weight: 600;
}

.quick-stat-divider {
    width: 1px;
    height: 60px;
    background: rgba(0, 0, 0, 0.08);
}

/* Status Grid */
.status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

/* Status Item */
.status-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.status-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
}

/* Status Item Variants */
.status-item-success { border-color: rgba(47, 179, 68, 0.2); }
.status-item-success:hover { background: rgba(47, 179, 68, 0.05); border-color: #2fb344; }

.status-item-primary { border-color: rgba(32, 107, 196, 0.2); }
.status-item-primary:hover { background: rgba(32, 107, 196, 0.05); border-color: #206bc4; }

.status-item-info { border-color: rgba(66, 153, 225, 0.2); }
.status-item-info:hover { background: rgba(66, 153, 225, 0.05); border-color: #4299e1; }

.status-item-warning { border-color: rgba(245, 159, 0, 0.2); }
.status-item-warning:hover { background: rgba(245, 159, 0, 0.05); border-color: #f59f00; }

.status-item-orange { border-color: rgba(247, 103, 7, 0.2); }
.status-item-orange:hover { background: rgba(247, 103, 7, 0.05); border-color: #f76707; }

.status-item-danger { border-color: rgba(214, 57, 57, 0.2); }
.status-item-danger:hover { background: rgba(214, 57, 57, 0.05); border-color: #d63939; }

/* Status Icon */
.status-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.status-item-success .status-icon { background: rgba(47, 179, 68, 0.1); color: #2fb344; }
.status-item-primary .status-icon { background: rgba(32, 107, 196, 0.1); color: #206bc4; }
.status-item-info .status-icon { background: rgba(66, 153, 225, 0.1); color: #4299e1; }
.status-item-warning .status-icon { background: rgba(245, 159, 0, 0.1); color: #f59f00; }
.status-item-orange .status-icon { background: rgba(247, 103, 7, 0.1); color: #f76707; }
.status-item-danger .status-icon { background: rgba(214, 57, 57, 0.1); color: #d63939; }

.status-item:hover .status-icon {
    transform: scale(1.1);
}

/* Status Content */
.status-content {
    flex: 1;
}

.status-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.status-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
}

/* Status Progress */
.status-progress {
    position: relative;
    height: 8px;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.status-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 4px;
    transition: width 0.8s ease;
}

.status-item-success .status-progress-bar { background: linear-gradient(90deg, #2fb344, #47d164); }
.status-item-primary .status-progress-bar { background: linear-gradient(90deg, #206bc4, #4299e1); }
.status-item-info .status-progress-bar { background: linear-gradient(90deg, #4299e1, #63b3ed); }
.status-item-warning .status-progress-bar { background: linear-gradient(90deg, #f59f00, #fab005); }
.status-item-orange .status-progress-bar { background: linear-gradient(90deg, #f76707, #fd7e14); }
.status-item-danger .status-progress-bar { background: linear-gradient(90deg, #d63939, #e55353); }

.status-percentage {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

/* Chart Container */
#chart-orders-trend {
    width: 100%;
    min-height: 320px;
}

#chart-performance {
    width: 100%;
    flex: 1;
    min-height: 320px;
}

/* Dark Mode */
[data-bs-theme="dark"] .stats-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .stats-icon {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .stats-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .stats-value {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .dashboard-card {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dashboard-card-header {
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .dashboard-card-title {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .dashboard-card-subtitle {
    color: #94a3b8;
}

[data-bs-theme="dark"] .quick-stat-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .quick-stat-value {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .quick-stat-divider {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .status-item {
    background: #0f172a;
}

[data-bs-theme="dark"] .status-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .status-value {
    color: #f1f5f9;
}

[data-bs-theme="dark"] .status-progress {
    background: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .status-percentage {
    color: #94a3b8;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .status-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .stats-card {
        padding: 1.25rem;
    }
    
    .stats-icon {
        width: 40px;
        height: 40px;
        top: 1.25rem;
        right: 1.25rem;
    }
    
    .stats-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .stats-value {
        font-size: 1.75rem;
    }
    
    .performance-circle {
        width: 150px;
        height: 150px;
    }
    
    .performance-value {
        font-size: 2.5rem;
    }
    
    .performance-stats {
        grid-template-columns: 1fr;
    }
    
    #chart-orders-trend {
        min-height: 260px;
    }
    
    .status-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 576px) {
    .stats-card {
        padding: 1rem;
    }
    
    .stats-value {
        font-size: 1.5rem;
    }
    
    .quick-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .quick-stat-divider {
        display: none;
    }
    
    .performance-circle {
        width: 130px;
        height: 130px;
    }
    
    .performance-value {
        font-size: 2rem;
    }
}

/* ====================================
   STATUS WIDGETS - BAYI DASHBOARD
   ==================================== */
.status-widget {
    position: relative;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 10px;
    padding: 1rem;
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.status-widget::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0.05;
    transition: transform 0.3s ease;
}

.status-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-color: transparent;
}

.status-widget:hover::before {
    transform: scale(1.2);
}

.status-widget-success::before { background: #2fb344; }
.status-widget-primary::before { background: #206bc4; }
.status-widget-info::before { background: #17a2b8; }
.status-widget-warning::before { background: #f59f00; }
.status-widget-orange::before { background: #f76707; }
.status-widget-danger::before { background: #d63939; }

.status-widget-success:hover { border-color: rgba(47, 179, 68, 0.3); }
.status-widget-primary:hover { border-color: rgba(32, 107, 196, 0.3); }
.status-widget-info:hover { border-color: rgba(23, 162, 184, 0.3); }
.status-widget-warning:hover { border-color: rgba(245, 159, 0, 0.3); }
.status-widget-orange:hover { border-color: rgba(247, 103, 7, 0.3); }
.status-widget-danger:hover { border-color: rgba(214, 57, 57, 0.3); }

.status-widget-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: relative;
    z-index: 1;
}

.status-widget:hover .status-widget-icon {
    transform: scale(1.05) rotate(3deg);
}

.status-widget-success .status-widget-icon { color: #2fb344; }
.status-widget-primary .status-widget-icon { color: #206bc4; }
.status-widget-info .status-widget-icon { color: #17a2b8; }
.status-widget-warning .status-widget-icon { color: #f59f00; }
.status-widget-orange .status-widget-icon { color: #f76707; }
.status-widget-danger .status-widget-icon { color: #d63939; }

.status-widget-info {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
}

.status-widget-label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.status-widget-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

/* Dark Mode - Status Widgets */
[data-bs-theme="dark"] .status-widget {
    background: #1e293b;
    border-color: rgba(255, 255, 255, 0.1);
}

[data-bs-theme="dark"] .status-widget:hover {
    background: #334155;
}

[data-bs-theme="dark"] .status-widget-icon {
    background: rgba(255, 255, 255, 0.05);
}

[data-bs-theme="dark"] .status-widget-label {
    color: #94a3b8;
}

[data-bs-theme="dark"] .status-widget-value {
    color: #f1f5f9;
}
