html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.page-container {
    height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.content-wrapper {
    flex: 1;
    overflow: auto;
}

.content-body {
    height: 100%;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50060;
}

/* Make form inputs more visible */
input.form-control,
select.form-control,
textarea.form-control {
    border: 1px solid #6c757d;
    background-color: #ffffff;
}

input.form-control:focus,
select.form-control:focus,
textarea.form-control:focus {
    border-color: #FF6F00;
    box-shadow: 0 0 0 0.2rem rgba(255, 111, 0, 0.25);
}

.bb-sidebar-top-row.navbar {
    background-color: #FF6F00 !important; /* soft turuncu */
    border-bottom: 1px solid #FFB74D !important;
    color: #333 !important;
}


.validation-message {
    color: #e50060;
}

.bb-sidebar-top-row {
    background-color: #FF6F00 !important;
    border-bottom: 2px solid #FF8F00;
}

.blazor-error-boundary {
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.login-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.headertext {
    color: honeydew;
}

@import url("//netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.css");

.login-block {
    background: #DE6262; /* fallback for old browsers */
    background: -webkit-linear-gradient(to bottom, #FFB88C, #DE6262); /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to bottom, #FFB88C, #DE6262); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
    float: left;
    width: 100%;
    padding: 50px 0;
    margin-top: 10%;
}

.banner-sec {
    background-size: cover;
    min-height: 600px;
    border-radius: 0 10px 10px 0;
    padding: 0;
}

.container {
    background: #fff;
    border-radius: 10px;
    box-shadow: 15px 20px 0px rgba(0,0,0,0.1);
}

.carousel-inner {
    border-radius: 0 10px 10px 0;
}

.carousel-caption {
    text-align: left;
    left: 5%;
}

.carousel-item {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px; /* Carousel yüksekliði */
    overflow: hidden; /* Kapsayýcý dýþýna taþan içerikleri gizler */
}

    .carousel-item img {
        max-width: 100%;
        max-height: 100%;
        object-fit: cover; /* Resmi kapsayýcýya göre kýrpar ve sýðdýrýr */
    }

.login-sec {
    padding: 90px 50px;
    position: relative;
}

    .login-sec .copy-text {
        position: absolute;
        width: 80%;
        bottom: 20px;
        font-size: 13px;
        text-align: center;
    }

        .login-sec .copy-text i {
            color: white;
        }

        .login-sec .copy-text a {
            color: white;
        }

    .login-sec h2 {
        margin-bottom: 30px;
        font-weight: 800;
        font-size: 30px;
        color: gray;
    }

        .login-sec h2:after {
            content: " ";
            width: 100px;
            height: 5px;
            background: #FEB58A;
            display: block;
            margin-top: 20px;
            border-radius: 3px;
            margin-left: auto;
            margin-right: auto
        }

.btn-login {
    background: #26b050;
    color: white;
    font-weight: 600;
}

.banner-text {
    width: 70%;
    position: absolute;
    bottom: 40px;
    padding-left: 20px;
}

    .banner-text h2 {
        color: #fff;
        font-weight: 600;
    }

        .banner-text h2:after {
            content: " ";
            width: 100px;
            height: 5px;
            background: #FFF;
            display: block;
            margin-top: 20px;
            border-radius: 3px;
        }

    .banner-text p {
        color: #fff;
    }
.sidebar-dark-primary {
    background: linear-gradient(to bottom, #FF6F00, #FF8F00) !important;
}

.nav-sidebar .nav-link {
    color: #ffffff;
    transition: background-color 0.2s ease;
}

    .nav-sidebar .nav-link:hover {
        background-color: rgba(255, 255, 255, 0.1);
        color: #fff;
    }

    .nav-sidebar .nav-link.active {
        background-color: #FF8F00 !important;
        color: white !important;
        font-weight: 600;
        border-left: 4px solid #fff;
    }

.nav-icon {
    color: #FFECB3 !important;
}

.nav-sidebar .nav-treeview .nav-link {
    background-color: transparent !important;
    padding-left: 2.2rem;
    color: #ffe0b2;
}
.nav-sidebar .nav-link.active {
    background-color: #FF8F00 !important;
    color: white !important;
    font-weight: 600;
    border-left: 4px solid #fff;
}
.brand-link img {
    filter: drop-shadow(0 0 2px rgba(0,0,0,0.4));
}
.sidebar .nav {
    margin-top: 5px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 10px;
}
.sidebar-dark-primary {
    background: linear-gradient(to bottom, #1E1E2F, #190F3A) !important;
}
.card-header .btn + .btn {
    margin-left: 0.5rem;
}
li.menu-open > .nav-treeview {
    display: block !important;
}

.card-body {
    border-radius: 0.75rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.digital-card-body {
    padding: 1.5rem;
    background: linear-gradient(135deg, #1f1c2c 0%, #928dab 100%);
    color: #fff;
    border: 2px solid #ff6600;
    border-top-width: 4px;
    border-radius: 0 0 1rem 1rem;
    box-shadow: none;
}

/* Balance information cards */
.balance-info .balance-card {
    border-left: 4px solid #FF6F00;
    border-radius: 0.25rem;
}

.balance-card.debt {
    border-left-color: #dc3545;
}

.balance-card.credit {
    border-left-color: #28a745;
}

.balance-card.total {
    border-left-color: #17a2b8;
}

.balance-card .balance-label {
    font-weight: 600;
}

.balance-card .balance-value {
    font-weight: 700;
}

/* Custom scrollbar styles for scrollable card sections */
.overflow-auto {
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
}

.overflow-auto::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

.overflow-auto::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.overflow-auto::-webkit-scrollbar-thumb {
    background-color: #bdbdbd;
    border-radius: 6px;
}

.overflow-auto:hover::-webkit-scrollbar-thumb {
    background-color: #888;
}

/* Firm information table styles */
.info-table-wrapper {
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    overflow: hidden;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
    background-color: #fff;
}

.info-table th,
.info-table td {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem;
}

.info-table th {
    width: 35%;
    background-color: #f8f9fa;
    font-weight: 600;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}
/* Global typography adjustments */
html {
    font-size: 110%;
}

body {
    font-size: 0.875rem;
}

.content-header h1,
h1 {
    font-size: 1.5rem !important;
}

h2 {
    font-size: 1.25rem !important;
}

h3 {
    font-size: 1.1rem !important;
}

.table th,
.table td {
    font-size: 0.875rem !important;
}

.card-title {
    font-size: 1rem !important;
}

/* Remove extra left margin in detail pages */
.content-wrapper .content-wrapper {
    margin-left: 0 !important;
}

/* Order history table styling */
.order-history-wrapper {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
}

.order-history-table {
    border-collapse: collapse;
    width: 100%;
    border: 1.5px solid #b5b5b5;
    font-size: 0.7rem;
}

.order-history-table th,
.order-history-table td {
    border: 1.5px solid #b5b5b5;
    padding: 0.35rem;
}

.order-history-wrapper thead th {
    position: sticky;
    top: 0;
    background: linear-gradient(180deg, rgba(255,153,51,0.95) 0%, rgba(255,94,0,0.95) 100%);
    color: #fff;
    font-weight: 600;
}

/* Ensure toast notifications overlay other content */
.blazored-toast-container,
.blazored-toast {
    z-index: 2000 !important;
}

/* Improve tab visibility */
.nav-tabs .nav-link {
    color: var(--bs-body-color);
    border: 1px solid var(--bs-border-color);
    margin-right: 0.25rem;
    background-color: var(--bs-light);
}

.nav-tabs .nav-link.active {
    color: var(--bs-white);
    background-color: var(--bs-primary);
    border-color: var(--bs-primary) var(--bs-primary) var(--bs-white);
    font-weight: 600;
}

/* Space for fixed mobile footer */
@media (max-width: 768px) {
    .content-wrapper {
        padding-bottom: 4rem;
        padding-bottom: calc(4rem + env(safe-area-inset-bottom));
    }
}

/* Chat notification overlay */
.chat-notification-stack {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1080;
    max-width: calc(100% - 3rem);
    pointer-events: none;
}

.chat-notification {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(255, 111, 0, 0.95), rgba(230, 81, 0, 0.95));
    color: #fff;
    box-shadow: 0 22px 45px rgba(0, 0, 0, 0.25);
    transform: translateX(120%);
    opacity: 0;
    transition: transform 0.35s ease, opacity 0.35s ease;
    pointer-events: auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.chat-notification.show {
    transform: translateX(0);
    opacity: 1;
}

.chat-notification__icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.15);
}

.chat-notification__icon img {
    width: 36px;
    height: 36px;
    object-fit: contain;
}

.chat-notification__content {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.chat-notification__title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.chat-notification__message {
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
    max-height: 6rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-notification__close {
    border: none;
    background: rgba(0, 0, 0, 0.18);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.chat-notification__close:hover,
.chat-notification__close:focus {
    background: rgba(0, 0, 0, 0.28);
    outline: none;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .chat-notification-stack {
        right: 50%;
        top: auto;
        bottom: 1.5rem;
        transform: translateX(50%);
        align-items: center;
    }

    .chat-notification {
        width: min(320px, 90vw);
    }
}

@media (prefers-reduced-motion: reduce) {
    .chat-notification,
    .chat-notification.show {
        transition: none;
        transform: none;
        opacity: 1;
    }
}
