/* ==========================================================
   GRFFN MASTER DESIGN STYLESHEET
   Applies to ALL taste-testing app pages
   ========================================================== */

/* Global layout */
:root {
    --surface-color: #f9fbff;
    --shadow-dark: rgba(15, 23, 42, 0.15);
    --shadow-light: rgba(255, 255, 255, 0.7);
    --accent-color: #198754;
    --accent-strong: #146c44;
    --border-color: rgba(25, 135, 84, 0.25);
    --panel-brown: #f5efe7;
    --panel-warm: #fbf6ef;
}

.grffn-accessible-dark body,
.grffn-accessible-dark .card,
.grffn-accessible-dark .option-tile,
.grffn-accessible-dark .lead-copy,
.grffn-accessible-dark label,
.grffn-accessible-dark .intro-title,
.grffn-accessible-dark .intro-sub,
.grffn-accessible-dark .tile-title,
.grffn-accessible-dark .tile-sub,
.grffn-accessible-dark .form-label,
.grffn-accessible-dark .btn-white,
.grffn-accessible-dark .text-muted,
.grffn-accessible-dark h1,
.grffn-accessible-dark h2,
.grffn-accessible-dark h3,
.grffn-accessible-dark h4,
.grffn-accessible-dark h5 {
    background: #0d1116 !important;
    color: #f1f5f9 !important;
    border-color: #E3A260!important;
	border:2px solid #E3A260!important;
	border-radius:4px;
}
.grffn-accessible-dark body {
    background: #0b0c11;
}
.grffn-accessible-dark .icon-green {
    filter: invert(69%) sepia(6%) saturate(407%) hue-rotate(77deg) brightness(85%) contrast(86%);
}

html {
    min-height: 100%;
}

body {
    background: radial-gradient(circle at top, #fffdfa 0%, #f0eee5 45%, #e0d7c6 100%);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    padding-top: 30px;
    margin: 0;
    min-height: 100vh;
    overflow-y: auto;
    color: #111;
    animation: fadeInBg 0.45s ease-out;
}

@keyframes fadeInBg {
    from { opacity: 0.6; }
    to { opacity: 1; }
}

.scrollbar-green,
body,
html {
    scrollbar-width: auto;
    scrollbar-color: var(--accent-color) #e4ecf7;
}
.scrollbar-green::-webkit-scrollbar,
body::-webkit-scrollbar,
html::-webkit-scrollbar {
    width: 12px;
    height: 12px;
}
.scrollbar-green::-webkit-scrollbar-track,
body::-webkit-scrollbar-track,
html::-webkit-scrollbar-track {
    background: #e4ecf7;
    border-radius: 8px;
}
.scrollbar-green::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb,
html::-webkit-scrollbar-thumb {
    background: var(--accent-color);
    border-radius: 8px;
}
.scrollbar-green::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover,
html::-webkit-scrollbar-thumb:hover {
    background: var(--accent-strong);
}

.container {
    max-width: 960px;
    margin: auto;
}

.card {
    background: linear-gradient(145deg, #fcfcfc, #f5f2eb);
    border-radius: 18px;
    padding: 2.2rem;
    box-shadow:
        20px 20px 45px rgba(15, 23, 42, 0.1),
        -18px -18px 40px rgba(255, 255, 255, 0.8),
        inset 1px 1px 0 rgba(255, 255, 255, 0.5);
}

/* Text */
h1, h2, h3, h4, h5 {
    font-weight: 600;
    color: #198754;
}

label {
    font-weight: 500;
}

/* Logo */
.logo-effect {
    width: 180px;
    cursor: pointer;
    border-radius: 10px;
    margin-bottom: 15px;
    padding: 4px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0,0,0,0.15);
    transition: transform .25s ease, box-shadow .25s ease;
}

.logo-effect:hover {
    transform: translateY(-4px) scale(1.04);
    box-shadow: 0 8px 18px rgba(0,0,0,0.25);
}

/* Tabs */
.tabs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(25, 135, 84, 0.2);
    justify-content: space-between;
}

.tab-btn {
    flex: 1;
    text-align: center;
    padding: 12px;
    cursor: pointer;
    border-radius: 12px;
    background: var(--surface-color);
    border: 1px solid rgba(25, 135, 84, 0.1);
    font-weight: 600;
    white-space: nowrap;
    transition: background .35s ease, box-shadow .35s ease, transform .35s ease;
    box-shadow:
        8px 8px 12px rgba(15, 23, 42, 0.08),
        -4px -4px 12px rgba(255, 255, 255, 0.9);
}

.tab-btn.active {
    background: linear-gradient(145deg, #1a9150, #0f5132);
    color: #fff;
    box-shadow:
        inset 2px 2px 6px rgba(0, 0, 0, 0.25),
        inset -1px -1px 4px rgba(255, 255, 255, 0.25),
        4px 4px 12px rgba(15, 23, 42, 0.25);
    transform: translateY(-2px);
}

.tab-content {
    display: none;
    opacity: 0;
    transform: translateX(20px) scale(0.98);
    transition: opacity .45s ease, transform .45s ease;
}

.tab-content.active {
    display: block;
    opacity: 1;
    transform: translateX(0) scale(1);
}

/* Image previews */
.preview-img {
    margin-top: 10px;
    max-width: 150px;
    border-radius: 6px;
    display: none;
    box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

/* Buttons */
.btn-lg {
    padding: 12px 20px;
    font-size: 1.1rem;
}

.btn-success {
    background: linear-gradient(135deg, #165c3c, #1d8a57) !important;
    border: none;
    color: #fff !important;
    box-shadow:
        inset 0 -2px 0 rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.45),
        12px 12px 30px rgba(0,0,0,0.33),
        -6px -6px 20px rgba(255,255,255,0.65);
    border-radius: 18px;
    transition: transform .25s ease, box-shadow .25s ease, filter .25s ease;
}

.btn-success:hover {
    transform: translateY(-1px);
    box-shadow:
        inset 0 -3px 0 rgba(0,0,0,0.5),
        14px 14px 30px rgba(0,0,0,0.45),
        -6px -6px 20px rgba(255,255,255,0.45);
    filter: brightness(1.08);
}

/* QR card */
.qr-box {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    border: 2px solid #E1A163;
    border-radius: 14px;
    background: linear-gradient(145deg, #fffaf5, #fdf1e2);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    max-width: 220px;
    margin: 25px auto;
}

/* Forms */
input[type="text"],
input[type="email"],
input[type="number"],
textarea,
select {
    border-radius: 16px;
    border: 1px solid rgba(25, 135, 84, 0.35);
    background: linear-gradient(180deg, #fffef9, #f5efe7);
    padding: 0.95rem 1.15rem;
    box-shadow:
        inset 5px 5px 12px rgba(15, 23, 42, 0.08),
        inset -4px -4px 12px rgba(255, 255, 255, 0.85),
        6px 6px 24px rgba(15, 23, 42, 0.06);
    transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
    font-size: 1rem;
    width: 100%;
}
input[type="text"]:focus,
input[type="email"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: rgba(25, 135, 84, 0.6);
    box-shadow:
        inset 3px 3px 12px rgba(15, 23, 42, 0.18),
        inset -3px -3px 10px rgba(255, 255, 255, 0.9),
        0 0 0 0.18rem rgba(25, 135, 84, 0.2);
}

.fieldset {
    border: 1px solid rgba(25, 135, 84, 0.35);
    border-radius: 20px;
    padding: 1.8rem;
    margin-bottom: 1.8rem;
    background: linear-gradient(180deg, var(--panel-warm), var(--panel-brown));
    box-shadow:
        0 30px 40px rgba(15, 23, 42, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.fieldset legend {
    font-size: 1.15rem;
    font-weight: 700;
    padding: 0 0.5rem;
    color: #155229;
    text-transform: none;
}

.form-panel {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 22px;
    padding: 2rem;
    border: 1px solid rgba(25, 135, 84, 0.25);
    box-shadow:
        0 35px 50px rgba(5, 20, 12, 0.15),
        inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

button:not(.reset-photo),
.btn-outline-secondary {
    border-radius: 14px;
    border: 1px solid rgba(25, 135, 84, 0.35);
    background: #fefefe;
    box-shadow:
        inset 0 -2px 3px rgba(0,0,0,0.12),
        6px 6px 18px rgba(15, 23, 42, 0.15);
    transition: transform .2s ease, box-shadow .25s ease, filter .25s ease;
}

button:not(.reset-photo):focus,
.btn-outline-secondary:focus {
    outline: none;
    box-shadow:
        inset 2px 2px 6px rgba(15, 23, 42, 0.1),
        inset -2px -2px 6px rgba(255, 255, 255, 0.9);
}

.btn-outline-secondary:hover {
    transform: translateY(-1px);
    box-shadow:
        8px 8px 18px rgba(15, 23, 42, 0.18),
        -4px -4px 16px rgba(255, 255, 255, 0.9);
}

.reset-photo {
    border: 1px solid #b1b1b1;
    background: #f8f8f6;
    color: #0f5132;
    padding: 0.35rem 0.7rem;
    border-radius: 6px;
    cursor: pointer;
    font: inherit;
    transition: background .2s ease, border-color .2s ease;
}
.reset-photo:hover {
    background: #ecebe6;
}
.reset-photo:focus {
    outline: none;
    border-color: #0f5132;
    box-shadow: 0 0 0 2px rgba(25,135,84,0.25);
}

/* Utility classes */
.center {
    text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2.5rem; }

