/* ==================================================
   DESIGN SYSTEM – MODERN SAAS
================================================== */
:root {
    --primary: #6366f1;        /* Indigo */
    --primary-dark: #4338ca;
    --accent: #22d3ee;
    --success: #22c55e;

    --bg-main: #f1f5f9;
    --bg-card: rgba(255,255,255,0.85);
    --border-soft: rgba(0,0,0,0.06);

    --text-main: #0f172a;
    --text-muted: #64748b;

    --radius-lg: 18px;
    --radius-md: 14px;

    --shadow-sm: 0 10px 25px rgba(0,0,0,0.05);
    --shadow-md: 0 25px 60px rgba(0,0,0,0.12);
}

/* ==================================================
   BASE
================================================== */
body {
    font-family: Inter, system-ui, -apple-system, sans-serif;
    background:
        radial-gradient(circle at top right, #e0e7ff, transparent 60%),
        radial-gradient(circle at bottom left, #cffafe, transparent 55%),
        var(--bg-main);
    color: var(--text-main);
}

/* ==================================================
   NAVBAR – PREMIUM
================================================== */
.navbar {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    box-shadow: var(--shadow-md);
}

.navbar-brand {
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* ==================================================
   STEP CARDS – ONBOARDING FEEL
================================================== */
#step1-card,
#step2-card {
    background: var(--bg-card);
    backdrop-filter: blur(14px);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-md);
    animation: fadeUp 0.6s ease both;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border-soft);
}

.card-header h5 {
    font-weight: 600;
}

/* ==================================================
   FORMS – MODERN INPUTS
================================================== */
.form-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.form-control,
.form-select {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-soft);
    padding: 0.6rem 0.75rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(99,102,241,0.18);
}

/* ==================================================
   PRIMARY ACTION BUTTON
================================================== */
#generateBtn {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border: none;
    box-shadow: 0 10px 30px rgba(99,102,241,0.45);
}

#generateBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 40px rgba(99,102,241,0.6);
}

/* ==================================================
   CONTACT GRID – CRM TILES
================================================== */
.contact-card {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-soft);
    box-shadow: var(--shadow-sm);
    transition: all 0.35s ease;
    cursor: pointer;
    background: white;
}

.contact-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-md);
}

.contact-card img {
    transition: transform 0.5s ease;
}

.contact-card:hover img {
    transform: scale(1.08);
}

.contact-card .card-title {
    font-weight: 600;
    font-size: 0.95rem;
}

/* ==================================================
   TABLE – CLEAN & AIRY
================================================== */
.table {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.table thead th {
    background-color: #eef2ff;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==================================================
   MODALS – GLASS STYLE
================================================== */
.modal-content {
    border-radius: var(--radius-lg);
    border: none;
    backdrop-filter: blur(16px);
    box-shadow: var(--shadow-md);
}

.modal-header {
    border-bottom: 1px solid var(--border-soft);
}

.modal-title {
    font-weight: 600;
}

/* ==================================================
   IMAGE PREVIEW
================================================== */
#imagePreview img {
    max-width: 160px;
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
}

/* ==================================================
   RESPONSIVE TWEAKS
================================================== */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }

    .card {
        margin-bottom: 1.2rem;
    }
}

/* ==================================================
   NAVBAR – MODERN SAAS STYLE
================================================== */
.navbar-cgpt {
    background: linear-gradient(
        135deg,
        rgba(99,102,241,0.95),
        rgba(67,56,202,0.95)
    );
    backdrop-filter: blur(14px);
    border-radius: 0 0 22px 22px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
    padding: 0.8rem 1.2rem;
}

/* Brand */
.navbar-cgpt .navbar-brand {
    font-weight: 600;
    letter-spacing: 0.3px;
    color: #fff;
}

.brand-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #22d3ee, #6366f1);
    box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}

.brand-icon i {
    font-size: 1rem;
    color: #fff;
}

.brand-text {
    font-size: 1.05rem;
    color:white !important;
}

/* Subtitle */
.navbar-subtitle {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.75);
    letter-spacing: 0.4px;
}

/* Action button */
.nav-action {
    border-radius: 12px;
    padding: 0.35rem 0.6rem;
    border-color: rgba(255,255,255,0.4);
}

.nav-action:hover {
    background-color: rgba(255,255,255,0.15);
    border-color: transparent;
}

/* Mobile */
@media (max-width: 768px) {
    .navbar-cgpt {
        border-radius: 0 0 16px 16px;
    }

    .brand-text {
        font-size: 0.95rem;
    }
}


/* ===============================
   CAMERA CAPTURE UI
=============================== */
.camera-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    background: #000;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.camera-box video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


.camera-wrapper {
    position: relative;
    width: 100%;
    max-width: 420px;
    aspect-ratio: 4 / 3;
    margin: auto;
    background: #000;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.camera-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay dark mask */
.scan-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.scan-overlay::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.45);
}

/* Green rectangle (business card ratio ~1.75:1) */
.scan-rect {
    position: absolute;
    width: 78%;
    aspect-ratio: 1.75 / 1;
    border: 3px solid #22c55e;
    border-radius: 10px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: transparent;
    box-shadow: 0 0 0 2000px rgba(0,0,0,0.45);
}

/* Hint text */
.scan-hint {
    position: absolute;
    bottom: 14px;
    width: 100%;
    text-align: center;
    font-size: 0.8rem;
    color: #bbf7d0;
    letter-spacing: 0.3px;
}

/* Buttons */
.camera-actions {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    gap: 8px;
}

.camera-actions .btn {
    border-radius: 999px;
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
}

/* 11-02-2026 */
/* Grid container */

.thumb-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.thumb-wrapper {
    width: 90px;
    height: 90px;
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 6px 12px rgba(0,0,0,.25);
    cursor: pointer;
    transition: transform .2s ease;
}

.thumb-img:hover {
    transform: scale(1.05);
}

.thumb-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
}

/* Κάθε thumbnail */
.thumb-item {
    width: calc(33.333% - 10px); /* 3 per row στο tablet/desktop */
    position: relative;
}

.thumb-item img.thumb-img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.thumb-item img.thumb-img:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 16px rgba(0,0,0,0.35);
}

/* Responsive */
@media (max-width: 992px) { /* tablet */
    .thumb-item { width: calc(50% - 10px); }
}

@media (max-width: 576px) { /* mobile */
    .thumb-item { width: 100%; }
}


