html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    touch-action: pan-y;
    font-family: 'Ubuntu', sans-serif;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================
   HEADER / NAVBAR
========================= */

.custom-navbar {
    min-height: 52px;
    padding: 4px 0;
}

.custom-navbar .container {
    padding-left: 36px;
    padding-right: 36px;
}

.navbar-logo {
    height: 32px;
}

.navbar-brand {
    margin-right: 6px !important;
    padding: 0;
}

.menu-icon {
    font-size: 1.3rem;
    color: #000;
}

.navbar-toggler {
    padding: 0;
    line-height: 1;
}

.offcanvas-header {
    padding-top: 8px;
    padding-bottom: 8px;
}

/* =========================
   OFFCANVAS MENU
========================= */

.apple-menu {
    height: 100vh !important;
    max-height: 100vh !important;
    overflow-y: auto;
}

.apple-menu .offcanvas-body {
    padding: 20px;
}

.apple-menu .nav-link {
    font-size: 1.05rem;
    padding: 14px 0;
}

.apple-menu hr {
    opacity: 0.15;
}

/* =========================
   DEVICES GRID
========================= */

.device-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 12px;
}

.device-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.device-image:hover {
    transform: scale(1.03);
}

/* =========================
   IMAGE MODAL
========================= */

.image-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.image-modal img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 12px;
}

/* =========================
   MAIN INDEX CARDS
========================= */

.card {
    border: none !important;
}

.main-card {
    text-align: center;
    min-height: 460px;
}

.main-card h4 {
    font-weight: 700;
    height: 28px;
    overflow: hidden;
}

.main-card p {
    max-height: 480px;
    margin: 0 auto 10px;
    height: 52px;
    overflow: hidden;
    color: #6c757d;
}

.main-card img {
    max-height: 480px;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 12px;
}

.carousel-item {
    text-align: center;
}

.carousel-image-wrapper {
    width: 100%;
    aspect-ratio: 3 / 4;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 12px 0;
}

.carousel-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 12px;
}

/* =========================
   CAROUSEL INDICATORS
========================= */

.sm-indicators {
    position: static !important;
    margin-top: 12px !important;
    display: flex !important;
    justify-content: center !important;
    gap: 24px !important;
}

.sm-indicators [data-bs-target] {
    width: 12px !important;
    height: 12px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    background: transparent !important;
    background-image: url("/images/unselected.webp") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 12px 12px !important;
}

.sm-indicators .active {
    background-image: url("/images/selected.webp") !important;
}


/* =========================
   PHOTO UPLOAD PAGE
========================= */

.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 6px;
}

.page-subtitle {
    color: #6b7280;
    font-size: 15px;
    margin-bottom: 22px;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    width: 100%;
    max-width: 420px;
    margin: auto;
}

.photo-box {
    position: relative;
    width: 100%;
    padding-top: 100%;
    background: #fafafa;
    border: 2px dashed #c5c6c7;
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
}

.add-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 48px;
    color: #9ca3af;
    pointer-events: none;
}

.preview {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    border-radius: 16px;
}

.delete-btn {
    position: absolute;
    top: 6px;
    right: 6px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 18px;
    border: none;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.photo-box.has-image .delete-btn {
    display: flex;
}

.submit-btn {
    margin-top: 28px;
    width: 100%;
    max-width: 420px;
    height: 50px;
    border-radius: 12px;
    font-size: 17px;
    font-weight: 600;
    background: #ec4899;
    border: none;
    color: #fff;
}

#progress-container {
    margin-top: 18px;
    width: 100%;
    max-width: 420px;
    margin-inline: auto;
    display: none;
}

#progress-bar {
    width: 0%;
    height: 12px;
    background: #ec4899;
    border-radius: 8px;
    transition: width 0.2s;
}

/* =========================
   SUCCESS PAGE
========================= */

.success-container {
    text-align: center;
    padding: 40px 20px;
}

.checkmark {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: #4CAF50;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto;
    animation: pop 0.4s ease-out;
}

.checkmark i {
    color: #fff;
    font-size: 60px;
}

@keyframes pop {
    from {
        transform: scale(0.5);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.success-text {
    margin-top: 22px;
    font-size: 24px;
    font-weight: 700;
}

.sub-text {
    margin-top: 10px;
    color: #6c757d;
    font-size: 17px;
    line-height: 1.4;
}

/* =========================
   FOTOĞRAF SAYFASI
========================= */

.photo-preview {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    max-height: 420px;
    border-radius: 12px;
    cursor: pointer;
    object-fit: contain;
}

.btn-pill {
    border-radius: 999px !important;
    font-weight: 500;
}

.action-wrap {
    width: 180px;
    margin: 20px auto 0;
    text-align: center;
}

.action-wrap .btn {
    width: 100%;
}

.yes-no-row {
    display: flex;
    gap: 8px;
}

.yes-no-row .btn {
    width: 50%;
}

.delete-text {
    font-size: 0.85rem;
    color: #6c757d;
    margin: 8px 0 6px;
    line-height: 1.3;
}