﻿@import url('../Font/open-iconic-bootstrap.min.css');

.validation-message {
    color: red;
}

/* Geçersiz (hatalı) giriş alanları için kırmızı kenarlık */
.input-validation-error {
    border: 2px solid red;
}

/* Geçerli giriş alanları için yeşil kenarlık */
.input-validation-valid {
    border: 2px solid green;
}

.my-swal-title {
    font-size: 24px;
    color: #333;
}

.my-swal-content {
    font-size: 18px;
    color: #666;
}

.my-swal-popup {
    padding: 2em;
    width: 500px;
}

html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background-color: #F2F0EF;
    color: #333;
}

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;
}

.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,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ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uMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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


.loader-overlay-transparent {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 9999;
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(1px);
    width: 100vw;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-content {
    text-align: center;
    animation: fadeIn 0.4s ease-in-out;
}

.qr-wrapper {
    margin-bottom: 12px;
    display: flex;
    justify-content: center;
}

.loader-text {
    font-size: 1.3rem;
    font-weight: 600;
    color: #111;
    margin-bottom: 12px;
}

.loader-bar {
    width: 180px;
    height: 6px;
    background-color: #e0e0e0;
    border-radius: 3px;
    overflow: hidden;
    margin: 0 auto;
}

.loader-bar-inner {
    width: 0%;
    height: 100%;
    background-color: #1565c0;
    animation: loading-bar 2s infinite ease-in-out;
}

@keyframes loading-bar {
    0% {
        width: 0%;
    }

    50% {
        width: 100%;
    }

    100% {
        width: 0%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-custom-info {
    background-color: #5c90a3;
    color: #fff;
    border: 1px solid #5c90a3;
    transition: all 0.2s ease-in-out;
}

    .btn-custom-info:hover,
    .btn-custom-info:focus {
        background-color: #4b7b8c;
        border-color: #4b7b8c;
        color: #fff;
    }

    .btn-custom-info:active {
        background-color: #3d6a79;
        border-color: #3d6a79;
    }

    .btn-custom-info:disabled {
        background-color: #a5b9c1;
        border-color: #a5b9c1;
        color: #e0e0e0;
        cursor: not-allowed;
        opacity: 0.65;
    }


.dropdown-menu {
    animation: fadeInDown 0.2s ease-in-out;
    z-index: 1055;
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-5px);
    }

    to {
        opacity: 1;
        transform: translateY(10px);
    }
}

.badge-pulse {
    background-color: #4fc3f7 !important;
    color: white;
    animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
    0% {
        box-shadow: 0 0 0 0 rgba(79, 195, 247, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(79, 195, 247, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(79, 195, 247, 0);
    }
}

/* Sepet için sabit açık mavi */
.badge-static {
    background-color: #4fc3f7 !important;
    color: white;
}


@media (max-width: 768px) {
    .navbar .nav-link i {
        font-size: 1.2rem;
    }

    .navbar .badge {
        font-size: 0.65rem;
        top: 0.2rem !important;
        right: -0.5rem;
    }

    .navbar .dropdown-menu {
        right: 0 !important;
        left: auto !important;
    }
}

/* Modal Scale Effect */
.modal-scale-effect {
    animation: modalScaleIn 0.3s ease-out;
    transform-origin: center;
}

@keyframes modalScaleIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Modal Background Fade In */
.modal.show {
    animation: modalBackgroundFadeIn 0.3s ease-out;
}

@keyframes modalBackgroundFadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

/* Modal Kapanış Animasyonu için (opsiyonel) */
.modal-scale-out {
    animation: modalScaleOut 0.2s ease-in forwards;
}

@keyframes modalScaleOut {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    100% {
        transform: scale(0.8);
        opacity: 0;
    }
}

/* Daha da smooth olmak için backdrop blur efekti */
.modal {
    backdrop-filter: blur(2px);
}

/* Button hover efektleri de güçlendirelim */
.btn {
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    }

/* Card hover efektleri */
.custom-card {
    transition: all 0.3s ease;
}

    .custom-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    }

    /* Yeni İşletme Ekle Card'ı için özel hover efekti */
    .custom-card.border-dashed:hover {
        background-color: rgba(40, 167, 69, 0.05);
        transform: translateY(-5px);
        box-shadow: 0 10px 30px rgba(40, 167, 69, 0.2);
    }

        .custom-card.border-dashed:hover .bi-plus-circle {
            transform: scale(1.1);
            transition: transform 0.3s ease;
        }


/* AccountGet Css */
.sidebar-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.content-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.list-group-item-action {
    transition: all 0.2s ease;
    border-radius: 8px !important;
    margin-bottom: 5px;
}

    .list-group-item-action:hover {
        background-color: #f8f9fa;
        transform: translateX(5px);
    }

    .list-group-item-action.active {
        background-color: #007bff;
        color: white;
        border-color: #007bff;
    }

/* Abonelik Renk Tanımları */
.subscription-card.trial {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.subscription-card.basic {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.subscription-card.premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subscription-card.corporate {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

    .subscription-card.corporate .text-white {
        color: #333 !important;
    }

    .subscription-card.corporate .text-white-50 {
        color: #666 !important;
    }

.subscription-detail-card.trial {
    background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
}

.subscription-detail-card.basic {
    background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
}

.subscription-detail-card.plus {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.subscription-detail-card.corporate {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #333;
}

    .subscription-detail-card.corporate .text-white {
        color: #333 !important;
    }

    .subscription-detail-card.corporate .text-white-50 {
        color: #666 !important;
    }

@media (max-width: 768px) {
    .container-fluid {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

/* Öne çıkarılan ürün için özel stil */
.product-card.highlighted {
    border: 2px solid #ff6b35 !important;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
}

    .product-card.highlighted .product-name {
        color: #ff6b35;
        font-weight: 600;
    }

    .product-card.highlighted::before {
        content: "⭐";
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff6b35;
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        z-index: 1;
    }


/* Alert stilleri */
.alert-info {
    border-left: 4px solid #ff6b35;
    background-color: rgba(255, 107, 53, 0.1);
    border-color: rgba(255, 107, 53, 0.2);
}

    .alert-info .ri-star-fill {
        font-size: 1.1em;
    }

/* Disabled input styling */
.form-control:disabled, .form-control[readonly] {
    background-color: #f8f9fa;
    opacity: 0.65;
}


/* Öne çıkarılan ürün için özel stil */
.product-card.highlighted {
    border: 2px solid #ff6b35 !important;
    background: linear-gradient(45deg, rgba(255, 107, 53, 0.05), rgba(247, 147, 30, 0.05));
    position: relative;
}

    .product-card.highlighted .product-name {
        color: #ff6b35;
        font-weight: 600;
    }

    .product-card.highlighted::before {
        content: "⭐";
        position: absolute;
        top: -5px;
        right: -5px;
        background: #ff6b35;
        color: white;
        border-radius: 50%;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        z-index: 1;
    }

/* QR Stand Öneri Kartı Animasyonları */
.recommendation-card {
    animation: gentleShake 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

    .recommendation-card:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 25px rgba(255, 193, 7, 0.3);
        animation: none;
    }

/* Hafif titreme animasyonu */
@keyframes gentleShake {
    0%, 100% {
        transform: translateX(0);
    }

    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-1px);
    }

    20%, 40%, 60%, 80% {
        transform: translateX(1px);
    }
}

/* Ampul ikonu parlama animasyonu */
.pulse-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.7;
        transform: scale(1.1);
    }
}

/* Kartın giriş animasyonu */
.recommendation-card {
    animation: slideInFromRight 0.8s ease-out, gentleShake 3s ease-in-out 1s infinite;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* === MOBİL RESPONSIVE İYİLEŞTİRMELER === */
@media (max-width: 991.98px) {
    /* Navbar yüksekliğini küçült */
    .navbar {
        min-height: 50px !important;
        padding: 0.25rem 1rem;
    }

    /* Logo'yu küçült */
    .navbar-brand img {
        max-height: 35px;
        width: auto;
    }

    /* Navbar toggler'ı küçült */
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 0.875rem;
        border: none;
    }

    /* Collapse açıldığında background ekle */
    .navbar-collapse {
        background-color: #1c1e21;
        margin: 0.5rem -1rem 0;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    /* Nav link'leri mobilde küçült */
    .nav-link {
        padding: 0.375rem 0.75rem !important;
        font-size: 13px !important;
    }

    /* Profile dropdown'ını düzenle */
    .profile-dropdown-toggle {
        padding: 4px 8px !important;
    }

    .profile-name {
        font-size: 12px;
        max-width: 80px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .profile-image {
        width: 28px !important;
        height: 28px !important;
    }

    /* Notification ve cart icon'ları küçült */
    .nav-link i {
        font-size: 1.1rem !important;
    }

    /* Badge'leri küçült */
    .badge {
        font-size: 0.6rem;
        padding: 2px 5px;
    }

    /* Dropdown menüleri mobilde tam genişlik */
    .notification-dropdown {
        min-width: 90vw !important;
        left: 5vw !important;
        right: 5vw !important;
    }

    .custom-dropdown-menu {
        min-width: 140px;
    }
}

/* Çok küçük ekranlar için */
@media (max-width: 575.98px) {
    .navbar {
        padding: 0.25rem 0.5rem;
    }

    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
    }

    /* Menu text'lerini tamamen gizle, sadece icon göster */
    .nav-link span {
        display: none;
    }

    .nav-link i {
        font-size: 1.2rem !important;
    }

    /* Profile name'i gizle */
    .profile-name {
        display: none;
    }
}



.preview-container {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 10px 0;
}

/* iPhone 13 Pro Max Çerçevesi */
.iphone-frame {
    width: 420px;
    height: 780px;
    background: #1d1d1f;
    border-radius: 45px;
    padding: 6px;
    position: relative;
    box-shadow: 0 0 0 2px #1d1d1f, 0 0 0 3px #2d2d30, 0 15px 35px rgba(0,0,0,0.3);
    flex-shrink: 0;
}

/* Notch */
.iphone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 28px;
    background: #1d1d1f;
    border-radius: 0 0 16px 16px;
    z-index: 30;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 6px;
}

.camera {
    width: 10px;
    height: 10px;
    background: #1a1a1a;
    border-radius: 50%;
    border: 1px solid #333;
}

.speaker {
    width: 50px;
    height: 5px;
    background: #2d2d30;
    border-radius: 3px;
    border: 1px solid #1a1a1a;
}



/* Status Bar */
.iphone-status-bar {
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 20px 6px 20px;
    font-size: 15px;
    font-weight: 600;
    z-index: 20;
    border-radius: 39px 39px 0 0;
    flex-shrink: 0;
}

.status-left {
    display: flex;
    align-items: center;
    padding-left: 8px;
}

.status-time {
    color: #000;
    font-size: 15px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

.status-right {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-right: 8px;
}

.signal-bars {
    display: flex;
    gap: 2px;
    align-items: end;
}

.signal-bar {
    width: 3px;
    background: #000;
    border-radius: 1px;
}

    .signal-bar:nth-child(1) {
        height: 4px;
    }

    .signal-bar:nth-child(2) {
        height: 6px;
    }

    .signal-bar:nth-child(3) {
        height: 9px;
    }

    .signal-bar:nth-child(4) {
        height: 12px;
    }

.battery {
    width: 24px;
    height: 12px;
    border: 1.5px solid #000;
    border-radius: 2px;
    position: relative;
    background: #30d158;
}

    .battery::after {
        content: '';
        position: absolute;
        right: -3px;
        top: 3px;
        width: 2px;
        height: 6px;
        background: #000;
        border-radius: 0 1px 1px 0;
    }

/* Home Indicator */
.iphone-home-indicator {
    position: absolute;
    bottom: 6px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 4px;
    background: #000;
    border-radius: 2px;
    z-index: 10;
    opacity: 0.6;
}

/* İframe - Tam boyut */
.menu-iframe {
    width: 100%;
    height: 100%;
    border: none;
    border-radius: 0 0 39px 39px;
    flex: 1;
    background: white;
    /* İframe'in kendi scroll'unu garanti et */
    overflow: auto !important;
}

/* iPhone Screen */
.iphone-screen {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 39px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
}

/* Responsive */
@media (max-width: 1400px) {
    .iphone-frame {
        width: 320px;
        height: 660px;
    }
}

@media (max-width: 1200px) {
    .iphone-frame {
        width: 300px;
        height: 620px;
    }

    .iphone-status-bar {
        font-size: 14px;
        height: 45px;
    }
}

@media (max-width: 992px) {
    .iphone-frame {
        width: 280px;
        height: 580px;
    }

    /* ✅ Sticky position'ı mobilde kaldır */
    .sticky-top {
        position: relative !important;
        top: auto !important;
    }

    .row .col-xl-8 {
        order: 2;
    }

    .row .col-xl-4 {
        order: 1;
        margin-bottom: 2rem;
    }
}

.custom-card .card-body img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
}
