html, body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background-image: url("../bg.png") !important;
    font-weight: 400;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
.bg-image { /* Arka plan resmi için sınıf */
    background-image: url('bg.png'); /* Resim dosyasının yolu */
    background-size: 100%; /* Resmi 50x50 piksel boyutunda ayarlama */
    background-repeat: no-repeat; /* Resmi tekrarla */
    min-height: 100vh; /* Tam sayfa yüksekliği için ayarlama */
}
h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
    background-image: url("../bg.png") !important;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0i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NaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* Modern Loading Styles */
.modern-loading-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 9999;
}

.loading-logo {
    margin-bottom: 2rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.loading-logo img {
    width: 180px;
    height: auto;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.1));
}

.loading-content {
    text-align: center;
    max-width: 400px;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
    margin: 0 auto 2rem;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: spin 2s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #1b6ec2;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #4a90e2;
    animation-delay: 0.3s;
    width: 70%;
    height: 70%;
    top: 15%;
    left: 15%;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #7bb3f0;
    animation-delay: 0.6s;
    width: 40%;
    height: 40%;
    top: 30%;
    left: 30%;
}

.loading-text h2 {
    color: #1b6ec2;
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    letter-spacing: 0.5px;
}

.loading-text p {
    color: #666;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: #1b6ec2;
    border-radius: 50%;
    animation: dotPulse 1.5s ease-in-out infinite;
}

.loading-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.3s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes dotPulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.7;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .loading-logo img {
        width: 120px;
    }
    
    .loading-content {
        margin: 0 1rem;
        padding: 1.5rem;
    }
    
    .loading-text h2 {
        font-size: 1.5rem;
    }
    
    .loading-spinner {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 480px) {
    .loading-logo img {
        width: 90px;
    }
    
    .loading-content {
        padding: 1rem;
    }
    
    .loading-text h2 {
        font-size: 1.3rem;
    }
    
    .loading-spinner {
        width: 50px;
        height: 50px;
    }
}

/* Legacy loading progress (backup) */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

    .loading-progress circle {
        fill: none;
        stroke: #e0e0e0;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:last-child {
            stroke: #1b6ec2;
            stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
            transition: stroke-dasharray 0.05s ease-in-out;
        }

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

    .loading-progress-text:after {
        content: var(--blazor-load-percentage-text, "Loading");
    }

/* Radzen Components Font Override */
.rz-dialog, .rz-panel, .rz-button, .rz-textbox, .rz-dropdown, .rz-listbox, .rz-grid, .rz-panelmenu, .rz-sidebar, .rz-header, .rz-footer, .rz-body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif !important;
}

/* Typography Improvements */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}

h1 { font-size: 2.5rem; font-weight: 700; }
h2 { font-size: 2rem; font-weight: 600; }
h3 { font-size: 1.75rem; font-weight: 600; }
h4 { font-size: 1.5rem; font-weight: 500; }
h5 { font-size: 1.25rem; font-weight: 500; }
h6 { font-size: 1rem; font-weight: 500; }

p {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Button Improvements */
.rz-button {
    font-weight: 500 !important;
    letter-spacing: 0.025em;
    border-radius: 8px !important;
}

/* Input Improvements */
.rz-textbox, .rz-dropdown {
    border-radius: 6px !important;
    font-weight: 400 !important;
}

code {
    color: #c02d76;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, 'Courier New', monospace;
}

.qr-scanner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#qrVideo {
    width: 100%;
    max-width: 500px;
    height: auto;
    border: 1px solid #ccc;
}
.custom-dialog {
    width: 100%;
    max-width: 500px;
}

/* Responsive tasarım iyileştirmeleri */
@media (max-width: 768px) {
    .content {
        padding: 0.5rem;
    }
    
    .rz-dialog {
        width: 95% !important;
        max-height: 90vh;
    }
}

/* Loading state iyileştirmeleri */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.qr-scanner-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: #333;
    color: white;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
}

.close-button:hover {
    color: #ff4444;
}

#reader {
    flex: 1;
    width: 100% !important;
    height: calc(100vh - 60px) !important;
    display: flex;
    justify-content: center;
    align-items: center;
}

#reader video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.qr-scanner-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
}

.qr-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 1rem;
    background: #333;
    color: white;
    height: 50px;
}

.reader-container {
    flex: 1;
    position: relative;
    width: 100% !important;
    height: calc(100vh - 50px) !important;
}

#reader {
    width: 100% !important;
    height: 100% !important;
}

#reader video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

/* Html5QrcodeScanner tarafından oluşturulan elementler için stil düzeltmeleri */
#reader__scan_region {
    width: 100% !important;
    height: 100% !important;
    min-height: unset !important;
}

#reader__dashboard {
    position: absolute;
    bottom: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.7) !important;
    padding: 10px !important;
}

/* QR kod tarama alanı için stil */
#reader__scan_region img {
    width: 100% !important;
    height: auto !important;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 10000;
}

.close-button:hover {
    color: #ff4444;
}
.image-container {
    position: relative;
    display: inline-block; /* veya block, ihtiyacınıza göre */
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex; /* Flexbox ile ortalama */
    justify-content: center;
    align-items: center;
    z-index: 1000; /* Diğer elementlerin üzerinde olsun */
}

.expanded-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain; /* Resmin boyutlarını koru ve sığdır */
}

.close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}