:root {
    --adminuiux-content-font: "Open Sans", sans-serif;
    --adminuiux-content-font-weight: 400;
    --adminuiux-title-font: "Outfit", sans-serif;
    --adminuiux-title-font-weight: 600;
}

#app {
    position: fixed;
    inset: 0;
    height: 100lvh;
    height: var(--app-h, 100vh);
    display: flex;
    flex-direction: column;
    padding-bottom: env(safe-area-inset-bottom);
    background: #fff;
}

html,
body,
* {
    user-select: none !important;
    /* metin seçme yok */
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
    /* uzun basma menüsü yok */
    -webkit-tap-highlight-color: transparent !important;
    touch-action: manipulation !important;
    /* double-tap zoom engel */
}

/* Scroll sağlıklı çalışsın */
html,
body {
    overscroll-behavior: contain !important;
    /* iOS bounce kapat */
    -webkit-overflow-scrolling: touch !important;
    overflow-y: auto !important;
}

/* Link & button tıklanabilir */
a,
button {
    pointer-events: auto !important;
    cursor: pointer !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1) !important;
}

/* Input alanları seçilebilir ve iOS zoom yapmaz */
input,
textarea {
    user-select: text !important;
    -webkit-user-select: text !important;
    -webkit-touch-callout: default !important;
    font-size: 16px !important;
    /* iOS auto-zoom engeli */
}

/* Görsellerin sürüklenmesini ve kaydetme menüsünü azalt */
img {
    -webkit-user-drag: none;
    user-select: none;
}

/* BUTTON FEEDBACK (mobil dokunuş hissi) */
.btn-square.btn-link {
    transition: transform 0.15s ease, background-color 0.15s ease;
    touch-action: manipulation !important;
}

.btn-square.btn-link:active {
    transform: scale(0.92);
    background-color: rgba(18, 32, 68, 0.08);
}

/* Masaüstü hover */
@media (hover: hover) and (pointer: fine) {
    .btn-square.btn-link:hover {
        transform: scale(1.05);
        background-color: rgba(18, 32, 68, 0.05);
    }
}

/* Animations */
@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

@keyframes success {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

.success {
    animation: success 0.6s ease-in-out;
}

/* Snackbar */
.snackbar {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%) translateY(120%);
    opacity: 0;
    transition: transform 300ms ease, opacity 300ms ease;
    z-index: 1050;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 14px;
    color: #fff;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(6px);
    max-width: 90vw;
}

.snackbar.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.snackbar-error {
    background: linear-gradient(135deg, #e63946 0%, #ff6b6b 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.snackbar-success {
    background: linear-gradient(135deg, #28a745 0%, #3ecf6f 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

#backBtn:active {
    transform: scale(0.97);
    opacity: 0.8;
}

#loginBtn:active {
    transform: scale(0.97);
    opacity: 0.9;
}

@media (hover: hover) {
    #backBtn:hover {
        transform: scale(0.98);
        opacity: 0.85;
    }
    #loginBtn:hover {
        transform: scale(0.98);
        opacity: 0.95;
    }
}

/* Content Modal */
.content-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.content-modal-container {
    position: relative;
    width: 95%;
    max-width: 600px;
    max-height: 90vh;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    z-index: 10000;
    animation: modalSlideUp 0.3s ease-out;
}

@keyframes modalSlideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.content-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.content-modal-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    flex: 1;
    padding-right: 10px;
    word-wrap: break-word;
}

.content-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #dc3545;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
}

.content-modal-close:active {
    background: #fee;
    transform: scale(0.95);
}

.content-modal-body {
    padding: 20px;
    overflow-y: auto;
    flex: 1;
    color: #212529;
    font-size: 0.9rem;
    line-height: 1.6;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.content-modal-body h1,
.content-modal-body h2,
.content-modal-body h3,
.content-modal-body h4,
.content-modal-body h5,
.content-modal-body h6 {
    margin-top: 1.2rem;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: #212529;
    word-wrap: break-word;
}

.content-modal-body h1 {
    font-size: 1.3rem;
}

.content-modal-body h2 {
    font-size: 1.15rem;
}

.content-modal-body h3 {
    font-size: 1.05rem;
}

.content-modal-body p {
    margin-bottom: 0.8rem;
    word-wrap: break-word;
}

.content-modal-body ul,
.content-modal-body ol {
    margin-bottom: 0.8rem;
    padding-left: 1.2rem;
}

.content-modal-body li {
    margin-bottom: 0.4rem;
    word-wrap: break-word;
}

.content-modal-body a {
    color: var(--adminuiux-theme-1);
    text-decoration: underline;
    word-wrap: break-word;
}

.content-modal-body * {
    max-width: 100%;
}

/* Prevent scroll when input is focused - AGGRESSIVE */
body.scroll-locked,
html.scroll-locked {
    position: fixed !important;
    overflow: hidden !important;
    width: 100% !important;
    height: 100% !important;
    overscroll-behavior: none !important;
    -webkit-overflow-scrolling: none !important;
}

#phoneNumber {
    scroll-margin: 0 !important;
    scroll-margin-top: 0 !important;
    scroll-margin-bottom: 0 !important;
}

/* Prevent any scroll behavior */
* {
    overscroll-behavior-y: none;
}

body.scroll-locked * {
    overscroll-behavior: none !important;
}

/* Input focus styles */
#phoneNumber:focus {
    background: rgba(240, 240, 240, 0.9) !important;
    border: 2px solid black !important;
    border-left: none !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.25) !important;
    outline: none !important;
}

#phoneNumber:focus + .input-group-text,
.input-group:focus-within .input-group-text {
    background: rgba(240, 240, 240, 0.9) !important;
    border: 2px solid black !important;
    border-right: none !important;
}

#phoneNumber::placeholder {
    color: rgba(120, 120, 120, 0.7) !important;
}

.input-group-text {
    transition: all 0.3s ease !important;
}

.input-group .form-control {
    transition: all 0.3s ease !important;
}

#phoneNumber[readonly] {
    cursor: text !important;
    background: rgba(255, 255, 255, 0.9) !important;
}

