/* Ericksonian Hypnosis App - Positive Fresh Theme Style Sheets */

:root {
    --bg-base: #f4f9f6; /* Very light fresh mint cream */
    --bg-surface: rgba(255, 255, 255, 0.75); /* White glassmorphism surface */
    --bg-surface-hover: rgba(255, 255, 255, 0.95);
    
    --primary: #6c5ce7; /* Uplifting violet */
    --primary-light: #a29bfe;
    --primary-glow: rgba(108, 92, 231, 0.15);
    
    --secondary: #0984e3; /* Vibrant blue sky */
    --secondary-light: #74b9ff;
    --secondary-glow: rgba(9, 132, 227, 0.15);
    
    --accent: #00b894; /* Healing emerald mint green */
    --accent-light: #55efc4;
    --accent-glow: rgba(0, 184, 148, 0.15);
    
    --warm-gold: #fdcb6e;
    
    --text-main: #2d3436; /* Dark slate text for high readability */
    --text-muted: #636e72; /* Muted grey text */
    --border-glass: rgba(255, 255, 255, 0.6);
    --shadow-premium: 0 12px 40px rgba(9, 41, 32, 0.08), 0 2px 4px rgba(0, 0, 0, 0.02);
    --shadow-card-hover: 0 20px 48px rgba(9, 41, 32, 0.15);
    
    --font-header: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-base);
    color: var(--text-main);
    font-family: var(--font-body);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    position: relative;
    line-height: 1.6;
}

/* Background Ambient Glows (Sunny, Warm, Healing vibes) */
.bg-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
    pointer-events: none;
    opacity: 0.5;
    animation: float-slow 35s infinite alternate;
}

.bg-glow-1 {
    background: radial-gradient(circle, rgba(162, 155, 254, 0.35) 0%, transparent 70%);
    top: -15%;
    right: -10%;
}

.bg-glow-2 {
    background: radial-gradient(circle, rgba(116, 185, 255, 0.35) 0%, transparent 70%);
    bottom: -15%;
    left: -10%;
    animation-delay: -10s;
}

.bg-glow-3 {
    background: radial-gradient(circle, rgba(85, 239, 196, 0.3) 0%, transparent 70%);
    top: 30%;
    right: 25%;
    width: 500px;
    height: 500px;
    animation-delay: -5s;
}

@keyframes float-slow {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(60px, 40px) scale(1.15); }
}

/* Container */
.app-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 8rem 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* Header */
.app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    padding-bottom: 1.2rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-icon {
    font-size: 2.2rem;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px var(--accent-glow));
    animation: pulse-icon 4s infinite ease-in-out;
}

@keyframes pulse-icon {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.header-logo h1 {
    font-family: var(--font-header);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.header-logo h1 span {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 400;
    margin-left: 0.15rem;
}

.header-tagline {
    font-size: 0.88rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0f766e; /* Teal */
    background: rgba(85, 239, 196, 0.18);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(85, 239, 196, 0.3);
}

/* Hero Section */
.hero-section {
    margin-bottom: 2.5rem;
    text-align: center;
}

.hero-section h2 {
    font-family: var(--font-header);
    font-size: 2.3rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    letter-spacing: -0.02em;
    background: linear-gradient(to right, #2d3436, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-section p {
    font-size: 1.12rem;
    color: var(--text-muted);
    max-width: 850px;
    margin: 0 auto;
    font-weight: 400;
}

/* Glass panel base */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    box-shadow: var(--shadow-premium);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dashboard Controls */
.dashboard-controls {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1.5rem;
    margin-bottom: 2rem;
    align-items: center;
}

.search-box {
    position: relative;
    width: 100%;
}

.search-icon {
    position: absolute;
    left: 1.2rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.1rem;
    color: var(--text-muted);
}

.search-box input {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.08);
    padding: 0.95rem 1rem 0.95rem 3rem;
    border-radius: 14px;
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 15px rgba(0, 184, 148, 0.25);
    background: #ffffff;
}

.category-filters {
    display: flex;
    gap: 0.6rem;
    overflow-x: auto;
}

.filter-btn {
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-muted);
    padding: 0.85rem 1.4rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.01);
}

.filter-btn:hover {
    background: #ffffff;
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.12);
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--accent), #0984e3);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

/* Layout */
.main-layout {
    display: grid;
    grid-template-columns: 430px 1fr;
    gap: 2rem;
    flex-grow: 1;
    align-items: stretch;
}

/* Grid Container */
.attitudes-grid {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
    max-height: 75vh;
    overflow-y: auto;
    padding-right: 0.5rem;
}

/* Custom scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.08);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Card item */
.attitude-card {
    background: var(--bg-surface);
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 1.3rem;
    cursor: pointer;
    box-shadow: var(--shadow-premium);
    transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    position: relative;
    overflow: hidden;
}

.attitude-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: transparent;
    transition: background 0.3s;
}

.attitude-card:hover {
    background: var(--bg-surface-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 1);
    box-shadow: var(--shadow-card-hover);
}

.attitude-card.active {
    background: #ffffff;
    border-color: var(--accent-light);
    box-shadow: 0 10px 30px rgba(0, 184, 148, 0.12);
}

.attitude-card.active::before {
    background: linear-gradient(to bottom, var(--accent), var(--secondary));
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-badge {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.25rem 0.65rem;
    border-radius: 8px;
    font-weight: 700;
}

.badge-relaxation {
    background: rgba(108, 92, 231, 0.1);
    color: #5b4bc4;
    border: 1px solid rgba(108, 92, 231, 0.2);
}

.badge-balance {
    background: rgba(0, 184, 148, 0.1);
    color: #009473;
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.badge-organs {
    background: rgba(9, 132, 227, 0.1);
    color: #0b69b5;
    border: 1px solid rgba(9, 132, 227, 0.2);
}

.card-duration {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.attitude-card h3 {
    font-family: var(--font-header);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.01em;
}

.attitude-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.3rem;
    font-size: 0.85rem;
    font-weight: 600;
}

.card-play-hint {
    color: var(--accent);
    opacity: 0.8;
    transform: translateX(0);
    transition: all 0.3s ease;
}

.attitude-card:hover .card-play-hint {
    opacity: 1;
    transform: translateX(2px);
}

.attitude-card.active .card-play-hint {
    color: var(--secondary);
    font-weight: 700;
}

/* Spinner */
.loading-spinner {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 400;
}

/* Reader Panel */
.reader-panel {
    display: flex;
    flex-direction: column;
    max-height: 75vh;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.reader-empty {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 5rem 2rem;
    flex-grow: 1;
    color: var(--text-muted);
}

.empty-icon {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 184, 148, 0.15));
    animation: float-icon 4s infinite ease-in-out;
}

@keyframes float-icon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.reader-empty h3 {
    font-family: var(--font-header);
    font-size: 1.45rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 700;
}

.reader-empty p {
    max-width: 480px;
    font-size: 0.98rem;
    line-height: 1.6;
}

.reader-content {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.reader-header {
    padding: 1.8rem 2rem 1.3rem 2rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    background: rgba(255, 255, 255, 0.3);
}

.reader-header h2 {
    font-family: var(--font-header);
    font-size: 1.7rem;
    margin: 0.6rem 0;
    color: var(--text-main);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.attitude-desc {
    color: var(--text-muted);
    font-size: 0.98rem;
    line-height: 1.5;
}

.reader-tools {
    display: flex;
    justify-content: flex-end;
    padding: 0.7rem 2rem;
    background: rgba(255, 255, 255, 0.45);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Toggle switch design */
.toggle-switch {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.88rem;
    color: var(--text-muted);
    font-weight: 600;
}

.toggle-switch input {
    display: none;
}

.slider {
    position: relative;
    width: 40px;
    height: 22px;
    background-color: rgba(0, 0, 0, 0.08);
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.slider::before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: #ffffff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.toggle-switch input:checked + .slider {
    background-color: var(--accent);
}

.toggle-switch input:checked + .slider::before {
    transform: translateX(18px);
}

.toggle-label {
    user-select: none;
}

/* Reader Body */
.reader-body {
    padding: 2rem;
    overflow-y: auto;
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.2);
}

.attitude-text {
    font-size: 1.15rem;
    line-height: 1.85;
    color: #333f44;
    letter-spacing: 0.01em;
    text-align: justify;
    font-weight: 400;
}

.attitude-text span.accent-vowel {
    color: #d63031; /* Bright warm red/coral for high positive visibility */
    font-weight: 700;
    border-bottom: 2px solid rgba(214, 48, 49, 0.4);
    padding-bottom: 1px;
}

/* Footer disclaimer */
.app-footer {
    margin-top: 3.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    align-items: center;
}

.disclaimer-box {
    padding: 1.6rem 2rem;
    border-radius: 18px;
    text-align: left;
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.9);
}

.disclaimer-box h4 {
    font-family: var(--font-header);
    color: #e17055; /* Uplifting orange warning */
    font-size: 1.1rem;
    margin-bottom: 0.6rem;
    font-weight: 700;
}

.disclaimer-box p {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-muted);
}

.copyright {
    font-size: 0.88rem;
    color: rgba(99, 110, 114, 0.6);
}

/* Sticky Player Bar */
.audio-player-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    padding: 1.2rem 2rem;
    z-index: 100;
    box-shadow: 0 -8px 30px rgba(9, 41, 32, 0.06);
    transform: translateY(100%);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.audio-player-bar.active {
    transform: translateY(0);
}

.player-container {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 280px auto 1fr 280px;
    gap: 2rem;
    align-items: center;
}

.player-info {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.player-avatar {
    font-size: 1.8rem;
    width: 46px;
    height: 46px;
    background: linear-gradient(135deg, rgba(85, 239, 196, 0.3), rgba(116, 185, 255, 0.3));
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 10px rgba(9, 41, 32, 0.05);
}

.player-meta {
    overflow: hidden;
}

.player-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.player-status {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.15rem;
    font-weight: 500;
}

/* Controls */
.player-controls {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.player-btn {
    background: transparent;
    border: none;
    color: var(--text-main);
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
    cursor: pointer;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.2s ease;
}

.player-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.player-btn.btn-main {
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    width: 50px;
    height: 50px;
    font-size: 1.35rem;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.25);
}

.player-btn.btn-main:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}

/* Progress bar */
.player-progress-container {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.time-display {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
    min-width: 32px;
}

.progress-bar {
    flex-grow: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.08);
    outline: none;
    cursor: pointer;
}

.progress-bar::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 184, 148, 0.3);
    transition: transform 0.1s ease;
}

.progress-bar::-webkit-slider-thumb:hover {
    transform: scale(1.25);
}

/* Extra controls */
.player-extra {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 1.2rem;
}

.volume-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.volume-icon {
    font-size: 1.05rem;
    color: var(--text-muted);
}

.volume-slider {
    -webkit-appearance: none;
    appearance: none;
    height: 4px;
    width: 80px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.08);
    outline: none;
    cursor: pointer;
}

.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--text-muted);
    cursor: pointer;
}

.download-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    padding: 0.45rem 0.85rem;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s ease;
}

.download-link:hover {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-main);
    border-color: rgba(0, 0, 0, 0.12);
}

/* Utility Hidden */
.hidden {
    display: none !important;
}

/* Modals styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(9, 41, 32, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    width: 90%;
    max-width: 600px;
    padding: 2.2rem;
    position: relative;
    animation: modal-zoom 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid var(--border-glass);
}

@keyframes modal-zoom {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Step-by-step wizard inside order modal */
.steps-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    margin-bottom: 2rem;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.steps-progress::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    z-index: 1;
    transform: translateY(-50%);
}

.step-indicator {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.step-indicator.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.3);
}

.step-indicator.completed {
    background: var(--secondary);
    border-color: var(--secondary);
    color: #ffffff;
}

.wizard-step {
    display: none;
}

.wizard-step.active {
    display: block;
    animation: modal-zoom 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.wizard-buttons {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
}

.wizard-btn-prev {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    color: var(--text-main);
    padding: 0.85rem 1.4rem;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wizard-btn-prev:hover {
    background: rgba(0, 0, 0, 0.03);
}

/* Questionnaire options */
.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1rem;
}

.pill-option {
    cursor: pointer;
    user-select: none;
}

.pill-option input {
    display: none;
}

.pill-content {
    display: inline-block;
    padding: 0.55rem 1.1rem;
    border-radius: 50px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.pill-option input:checked + .pill-content {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 3px 8px rgba(0, 184, 148, 0.15);
}

.pill-content:hover {
    border-color: var(--accent);
    background: rgba(0, 184, 148, 0.03);
}

.close-btn {
    position: absolute;
    right: 1.2rem;
    top: 1rem;
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-muted);
    cursor: pointer;
    transition: color 0.2s;
}

.close-btn:hover {
    color: var(--text-main);
}

.modal h3 {
    font-family: var(--font-header);
    font-size: 1.55rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.modal-sub {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-main);
}

.form-group input, .form-group textarea {
    width: 100%;
    padding: 0.85rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-main);
    font-family: var(--font-body);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 10px rgba(0, 184, 148, 0.15);
}

.submit-btn {
    width: 100%;
    padding: 0.95rem;
    border-radius: 12px;
    border: none;
    background: linear-gradient(135deg, var(--accent), var(--secondary));
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.2);
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.35);
}

/* Order btn in header */
.order-btn {
    padding: 0.65rem 1.3rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, var(--accent), #0984e3);
    color: #ffffff;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 184, 148, 0.2);
    transition: all 0.3s;
}

.order-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 184, 148, 0.35);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Admin panel table styling */
.admin-content {
    max-width: 900px;
}

.admin-table-wrapper {
    overflow-x: auto;
    margin-top: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
    text-align: left;
    background: #ffffff;
}

.admin-table th, .admin-table td {
    padding: 0.95rem 1.2rem;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.admin-table th {
    background: rgba(85, 239, 196, 0.1);
    color: var(--text-main);
    font-weight: 700;
}

.admin-table tbody tr:hover {
    background: rgba(85, 239, 196, 0.03);
}

.badge-status {
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-created {
    background: #ffeaa7;
    color: #d63031;
}

.status-paid {
    background: #55efc4;
    color: #00b894;
}

.status-completed {
    background: #74b9ff;
    color: #0984e3;
}

.btn-action {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.2rem;
    transition: transform 0.1s;
}

.btn-action:hover {
    transform: scale(1.2);
}

.alert-box {
    max-width: 420px;
    text-align: center;
    padding: 2.5rem 2rem;
}

.alert-icon {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

/* Responsive Grid and Panel adjustments */
@media (max-width: 1100px) {
    .main-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .attitudes-grid {
        max-height: none !important;
        overflow: visible !important;
    }
    .reader-panel {
        max-height: none !important;
        overflow: visible !important;
    }
    .player-container {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto auto;
        gap: 1rem;
    }
    .player-extra {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    .dashboard-controls {
        grid-template-columns: 1fr;
    }
    .hero-section h2 {
        font-size: 1.85rem;
    }
}

/* Smartphone Adjustments */
@media (max-width: 600px) {
    body {
        padding-bottom: 180px !important; /* Ensure player doesn't cover footer content */
    }

    .app-container {
        padding: 1rem 0.8rem;
    }

    .app-header {
        align-items: center;
        text-align: center;
        gap: 0.8rem;
    }

    .header-logo {
        justify-content: center;
        width: 100%;
    }

    .header-actions {
        width: 100%;
        justify-content: center;
        flex-direction: row;
        gap: 0.4rem;
    }

    .order-btn {
        width: 100%;
        text-align: center;
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }

    .header-tagline {
        text-align: center;
        width: 100%;
        font-size: 0.78rem;
    }

    .hero-section {
        text-align: center;
        padding: 1.5rem 1rem;
        margin-bottom: 1.2rem;
    }

    .hero-section h2 {
        font-size: 1.45rem;
        line-height: 1.3;
    }

    .hero-section p {
        font-size: 0.88rem;
        line-height: 1.4;
    }

    .dashboard-controls {
        gap: 0.8rem;
    }

    .category-filters {
        display: flex;
        gap: 0.5rem;
        overflow-x: auto;
        width: 100%;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
        justify-content: flex-start;
    }

    .category-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        flex: 0 0 auto;
        padding: 0.55rem 1rem;
        font-size: 0.82rem;
    }

    .attitudes-grid {
        max-height: none !important;
        overflow: visible !important;
        padding-right: 0;
    }

    .attitude-card {
        padding: 1rem;
    }

    .attitude-card h3 {
        font-size: 1.05rem;
    }

    .attitude-card p {
        font-size: 0.82rem;
    }

    .reader-panel {
        max-height: none !important;
        overflow: visible !important;
    }

    .reader-header {
        padding: 1rem;
    }

    .reader-header h2 {
        font-size: 1.25rem;
    }

    .reader-body {
        padding: 1rem;
    }

    .attitude-text {
        font-size: 1.05rem;
        line-height: 1.7;
    }

    /* Compact Audio Player for Smartphones */
    .audio-player-bar {
        padding: 0.8rem 1rem;
    }

    .player-container {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto;
        gap: 0.5rem;
        text-align: center;
    }

    .player-info {
        justify-content: center;
        margin-bottom: 0.1rem;
    }

    .player-avatar {
        display: none; /* Hide 3D icon on small screens to save space */
    }

    .player-meta {
        text-align: center;
    }

    .player-title {
        font-size: 0.95rem;
        font-weight: 700;
    }

    .player-status {
        font-size: 0.75rem;
    }

    .player-controls {
        justify-content: center;
        gap: 1rem;
        margin: 0.2rem 0;
    }

    .player-btn {
        width: 38px;
        height: 38px;
        font-size: 1.1rem;
    }

    .player-btn.btn-main {
        width: 44px;
        height: 44px;
        font-size: 1.25rem;
    }

    .player-progress-container {
        width: 100%;
        margin: 0.2rem 0;
        gap: 0.4rem;
    }

    .progress-bar {
        flex-grow: 1;
    }

    .player-extra {
        justify-content: space-between;
        width: 100%;
        gap: 0.8rem;
        border-top: 1px solid rgba(0, 0, 0, 0.05);
        padding-top: 0.5rem;
        margin-top: 0.2rem;
    }

    .volume-container {
        flex-grow: 1;
        max-width: 110px;
    }

    .download-link {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    /* Modal Form / Wizard Adjustments for mobile viewports */
    .modal-content {
        width: 95%;
        padding: 1.2rem;
        border-radius: 16px;
    }

    .modal-content h3 {
        font-size: 1.3rem;
    }

    .steps-progress {
        margin-bottom: 1.2rem;
        max-width: 250px;
    }

    .step-indicator {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }

    .pill-content {
        padding: 0.45rem 0.9rem;
        font-size: 0.8rem;
    }

    .wizard-buttons {
        margin-top: 1.2rem;
    }

    .wizard-btn-prev, .submit-btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }

    .admin-content {
        padding: 1rem;
    }
}
