@font-face {
    font-family: 'JunigardenSwash';
    src: url('../fonts/JunigardenSwash.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --space-dark: #0a0a1a;
    --space-darker: #0f0f23;
    --space-blue: #1e1b4b;
    --space-purple: #4c1d95;
    --space-pink: #7e22ce;
    --blue-accent: #3b82f6;
    --purple-accent: #8b5cf6;
    --pink-accent: #c084fc;
    --pink-light: #d8b4fe;
    --white: #ffffff;
    --gray-light: #f8fafc;
    --gray: #cbd5e1;
    --gray-dark: #64748b;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --glow-blue: 0 0 20px rgba(59, 130, 246, 0.3);
    --glow-purple: 0 0 20px rgba(139, 92, 246, 0.3);
    --glow-pink: 0 0 20px rgba(192, 132, 252, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: linear-gradient(135deg, var(--space-dark) 0%, var(--space-darker) 30%, var(--space-blue) 70%, var(--space-purple) 100%);
    color: var(--white);
    line-height: 1.5;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
    font-size: 14px;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 10% 20%, rgba(59, 130, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(139, 92, 246, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 50% 50%, rgba(192, 132, 252, 0.05) 0%, transparent 50%);
    z-index: -1;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Hero Section */
.hero {
    padding: 20px 0 15px;
    text-align: center;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
    z-index: -1;
}

.logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
    z-index: 2;
}

/* JUDUL PRESENSYNC - UKURAN DIPERKECIL */
.logo-text {
    font-family: 'JunigardenSwash', 'Poppins', sans-serif;
    color: var(--white);
    text-shadow: 
        0 0 10px rgba(255, 255, 255, 0.7),
        0 0 20px rgba(192, 132, 252, 0.5),
        0 0 30px rgba(139, 92, 246, 0.3);
    transition: all 0.3s ease;
    letter-spacing: 1px;
    margin-top: 10px;
    
    /* Ukuran font yang lebih kecil dan responsif */
    font-size: clamp(1.8rem, 6vw, 2.8rem);
}

.logo-text:hover {
    transform: scale(1.05);
    text-shadow: 
        0 0 15px rgba(255, 255, 255, 0.8),
        0 0 25px rgba(192, 132, 252, 0.6),
        0 0 35px rgba(139, 92, 246, 0.4);
}

.hero p {
    font-family: 'Outfit', sans-serif;
    color: var(--gray);
    max-width: 650px;
    margin: 0 auto 25px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: -0.2px;
    position: relative;
    z-index: 1;
    margin-top: 15px;
    
    /* Ukuran font yang lebih kecil untuk paragraf */
    font-size: clamp(0.85rem, 2.2vw, 1rem);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0 0 60px;
}

/* Form Section */
.form-container {
    background: rgba(15, 15, 35, 0.7);
    border-radius: 16px;
    padding: 25px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: var(--glow-purple), 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.form-container::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.form-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--white);
    letter-spacing: -0.3px;
}

.form-subtitle {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.85rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.1px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--gray-light);
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.1px;
}

/* Style untuk Input dan Textarea */
input, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(10, 10, 30, 0.8);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    letter-spacing: -0.1px;
}

input:focus, textarea:focus {
    outline: none;
    border-color: var(--purple-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(10, 10, 30, 0.9);
}

/* ========== CUSTOM SELECT STYLES ========== */
.custom-select-wrapper {
    position: relative;
    width: 100%;
}

.custom-select {
    position: relative;
    cursor: pointer;
}

.custom-select-trigger {
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(139, 92, 246, 0.2);
    background: rgba(10, 10, 30, 0.8);
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.85rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s ease;
    min-height: 42px;
}

.custom-select-trigger:hover {
    border-color: var(--purple-accent);
    background: rgba(10, 10, 30, 0.9);
}

.custom-select.open .custom-select-trigger {
    border-color: var(--purple-accent);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2);
    background: rgba(10, 10, 30, 0.9);
}

.arrow {
    transition: transform 0.3s ease;
    font-size: 0.8rem;
    color: var(--purple-accent);
}

.custom-select.open .arrow {
    transform: rotate(180deg);
}

.custom-options {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(15, 15, 35, 0.98);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    margin-top: 5px;
    max-height: 250px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.custom-select.open .custom-options {
    display: block;
}

.custom-optgroup {
    border-bottom: 1px solid rgba(139, 92, 246, 0.2);
}

.custom-optgroup:last-child {
    border-bottom: none;
}

.optgroup-label {
    padding: 8px 12px;
    background: rgba(30, 30, 60, 0.95);
    color: var(--pink-light);
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    border-bottom: 1px solid rgba(139, 92, 246, 0.3);
    position: sticky;
    top: 0;
    z-index: 1;
}

.custom-option {
    padding: 8px 12px;
    color: var(--white);
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.8rem;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
    cursor: pointer;
}

.custom-option:hover {
    background: rgba(139, 92, 246, 0.2);
    border-left-color: var(--purple-accent);
}

.custom-option.selected {
    background: rgba(139, 92, 246, 0.3);
    border-left-color: var(--purple-accent);
}

/* Scrollbar untuk custom options */
.custom-options::-webkit-scrollbar {
    width: 6px;
}

.custom-options::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.custom-options::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--purple-accent) 100%);
    border-radius: 3px;
}

/* ========== RESPONSIVE CUSTOM SELECT ========== */

/* Tablet */
@media (max-width: 767px) {
    .custom-select-trigger {
        padding: 8px 10px;
        font-size: 0.8rem;
        min-height: 38px;
    }
    
    .custom-option {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
    
    .optgroup-label {
        padding: 6px 10px;
        font-size: 0.75rem;
    }
    
    .custom-options {
        max-height: 200px;
    }
}

/* Mobile Medium */
@media (max-width: 575px) {
    .custom-select-trigger {
        padding: 7px 9px;
        font-size: 0.78rem;
        min-height: 36px;
    }
    
    .custom-option {
        padding: 5px 8px;
        font-size: 0.76rem;
    }
    
    .optgroup-label {
        padding: 5px 8px;
        font-size: 0.72rem;
    }
    
    .custom-options {
        max-height: 180px;
    }
}

/* Mobile Small */
@media (max-width: 424px) {
    .custom-select-trigger {
        padding: 6px 8px;
        font-size: 0.76rem;
        min-height: 34px;
    }
    
    .custom-option {
        padding: 4px 6px;
        font-size: 0.74rem;
    }
    
    .optgroup-label {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
    
    .custom-options {
        max-height: 160px;
    }
    
    .arrow {
        font-size: 0.7rem;
    }
}

/* Mobile Extra Small */
@media (max-width: 374px) {
    .custom-select-trigger {
        padding: 5px 7px;
        font-size: 0.74rem;
        min-height: 32px;
    }
    
    .custom-option {
        padding: 3px 5px;
        font-size: 0.72rem;
    }
    
    .optgroup-label {
        padding: 3px 5px;
        font-size: 0.68rem;
    }
    
    .custom-options {
        max-height: 150px;
    }
}

/* Very Small Devices */
@media (max-width: 319px) {
    .custom-select-trigger {
        padding: 4px 6px;
        font-size: 0.72rem;
        min-height: 30px;
    }
    
    .custom-option {
        padding: 2px 4px;
        font-size: 0.7rem;
    }
    
    .optgroup-label {
        padding: 2px 4px;
        font-size: 0.66rem;
    }
    
    .custom-options {
        max-height: 140px;
    }
}
/* ========== END CUSTOM SELECT STYLES ========== */

textarea {
    resize: vertical;
    min-height: 90px;
}

.char-count {
    text-align: right;
    font-size: 0.7rem;
    color: var(--gray-dark);
    margin-top: 5px;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.1px;
}

.mood-selector {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

/* ========== PERBAIKAN MOOD SELECTOR ========== */
.mood-option {
    font-size: 1.4rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: all 0.3s ease;
    background: rgba(10, 10, 30, 0.8);
    border: 1px solid rgba(139, 92, 246, 0.2);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hover effect hanya untuk yang tidak selected */
.mood-option:not(.selected):hover {
    transform: scale(1.05);
    background: rgba(139, 92, 246, 0.2);
    border-color: var(--purple-accent);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.3);
}

/* Style untuk yang selected - lebih kuat agar tidak tertimpa hover */
.mood-option.selected {
    background: rgba(139, 92, 246, 0.3) !important;
    border-color: var(--purple-accent) !important;
    box-shadow: 0 0 12px rgba(139, 92, 246, 0.5) !important;
    transform: scale(1.05) !important;
}

/* Animation untuk mood selector */
.mood-option {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mood-option:active {
    transform: scale(0.95);
}
/* ========== END PERBAIKAN MOOD SELECTOR ========== */

.submit-btn {
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--purple-accent) 50%, var(--pink-accent) 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s ease;
    width: 100%;
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    position: relative;
    overflow: hidden;
    z-index: 1;
    font-family: 'Poppins', sans-serif;
    letter-spacing: -0.2px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
    z-index: -1;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(139, 92, 246, 0.5);
}

.submit-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Messages Section */
.messages-section {
    background: rgba(15, 15, 35, 0.6);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(59, 130, 246, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: var(--glow-blue), 0 15px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    max-height: 450px;
    display: flex;
    flex-direction: column;
}

.messages-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.messages-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.messages-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.3px;
}

.messages-count {
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--purple-accent) 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.7rem;
    font-weight: 500;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.1px;
}

.messages-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding-right: 6px;
    flex-grow: 1;
}

.messages-list::-webkit-scrollbar {
    width: 6px;
}

.messages-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
}

.messages-list::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--purple-accent) 100%);
    border-radius: 8px;
}

.message-card {
    background: rgba(10, 10, 30, 0.7);
    border-radius: 12px;
    padding: 14px;
    border: 1px solid rgba(192, 132, 252, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.message-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: linear-gradient(to bottom, var(--blue-accent), var(--purple-accent), var(--pink-accent));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.message-card:hover::before {
    opacity: 1;
}

.message-card:hover {
    border-color: rgba(192, 132, 252, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.message-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.message-info {
    flex: 1;
}

.message-name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--white);
    margin-bottom: 3px;
    letter-spacing: -0.1px;
}

.message-school {
    color: var(--pink-light);
    font-size: 0.75rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.1px;
}

.message-mood {
    font-size: 1.3rem;
    margin-left: 8px;
    filter: drop-shadow(0 0 4px rgba(192, 132, 252, 0.5));
}

.message-text {
    color: var(--gray);
    font-size: 0.8rem;
    line-height: 1.5;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.1px;
}

.message-time {
    color: var(--gray-dark);
    font-size: 0.65rem;
    margin-top: 6px;
    text-align: right;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.1px;
}

.empty-state {
    text-align: center;
    padding: 40px 15px;
    color: var(--gray);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: 12px;
    opacity: 0.5;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 30, 0.95);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(10px);
}

.modal-content {
    background: rgba(15, 15, 35, 0.95);
    border-radius: 16px;
    padding: 25px;
    text-align: center;
    max-width: 400px;
    width: 90%;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 25px rgba(139, 92, 246, 0.5), 0 20px 40px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
}

.modal-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    filter: drop-shadow(0 0 8px rgba(139, 92, 246, 0.5));
}

.modal-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--white);
    letter-spacing: -0.3px;
}

.modal-message {
    color: var(--gray);
    margin-bottom: 20px;
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.1px;
}

.modal-close {
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--purple-accent) 100%);
    color: white;
    border: none;
    padding: 8px 18px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.1px;
}

.modal-close:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(139, 92, 246, 0.4);
}

/* Footer */
footer {
    padding: 25px 0;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    background: rgb(10 10 30 / 45%);
    text-align: center;
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--purple-accent), transparent);
}

.footer-text {
    color: var(--gray);
    font-size: 0.75rem;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.1px;
}

/* Particle Background */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.star {
    background: white;
    box-shadow: 0 0 5px white;
}

.blue-particle {
    background: var(--blue-accent);
    box-shadow: 0 0 10px var(--blue-accent);
}

.purple-particle {
    background: var(--purple-accent);
    box-shadow: 0 0 10px var(--purple-accent);
}

.pink-particle {
    background: var(--pink-accent);
    box-shadow: 0 0 10px var(--pink-accent);
}

@keyframes float {
    0% {
        transform: translateY(0) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100vh) translateX(100px);
        opacity: 0;
    }
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
    }
    50% {
        opacity: 1;
    }
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 16px;
    background: rgba(10, 10, 30, 0.5);
    border-radius: 10px;
    padding: 3px;
    border: 1px solid rgba(139, 92, 246, 0.2);
}

.tab {
    flex: 1;
    padding: 8px 12px;
    text-align: center;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.8rem;
    font-family: 'Outfit', sans-serif;
}

.tab.active {
    background: linear-gradient(135deg, var(--blue-accent) 0%, var(--purple-accent) 100%);
    box-shadow: 0 3px 10px rgba(139, 92, 246, 0.3);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Responsif Tambahan untuk Mobile */
@media (max-width: 767px) {
    .hero {
        padding: 15px 0 15px;
    }
    
    .logo-container {
        margin-bottom: 12px;
    }
    
    .hero p {
        margin-bottom: 20px;
        margin-top: 12px;
    }

    .form-container {
        padding: 20px;
    }

    .messages-section {
        padding: 18px 16px;
        max-height: 420px;
    }

    .mood-selector {
        grid-template-columns: repeat(4, 1fr);
        gap: 6px;
    }

    .mood-option {
        font-size: 1.3rem;
        padding: 7px;
    }
    
    .submit-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    
    .tabs {
        margin-bottom: 14px;
    }
    
    .tab {
        padding: 6px 10px;
        font-size: 0.78rem;
    }
    
    input, textarea {
        padding: 8px 10px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 10px 0 15px;
    }
    
    .logo-container {
        margin-bottom: 10px;
    }
    
    .mood-selector {
        grid-template-columns: repeat(4, 1fr);
        gap: 4px;
    }

    .mood-option {
        font-size: 1.2rem;
        padding: 6px;
    }
    
    .messages-section {
        max-height: 380px;
        padding: 16px 14px;
    }
    
    .form-container {
        padding: 18px 16px;
    }
    
    .submit-btn {
        padding: 9px 18px;
        font-size: 0.82rem;
    }
    
    .tabs {
        margin-bottom: 12px;
    }
    
    .tab {
        padding: 5px 8px;
        font-size: 0.76rem;
    }
    
    input, textarea {
        padding: 7px 9px;
        font-size: 0.78rem;
    }
}

@media (max-width: 360px) {
    .form-container {
        padding: 16px 14px;
    }
    
    .messages-section {
        padding: 14px 12px;
    }
    
    .mood-selector {
        gap: 3px;
    }
    
    .mood-option {
        font-size: 1.1rem;
        padding: 5px;
    }
    
    .submit-btn {
        padding: 8px 16px;
        font-size: 0.8rem;
    }
}

/* Animasi */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(139, 92, 246, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0);
    }
}

/* Additional styles for form validation */
.required {
    color: #ef4444;
    font-weight: 600;
}

.optional {
    color: var(--gray-dark);
    font-size: 0.75rem;
    font-weight: 400;
}

.required-info {
    text-align: center;
    color: var(--gray-dark);
    font-size: 0.75rem;
    margin-bottom: 10px;
    font-family: 'Outfit', sans-serif;
}

.form-footer {
    margin-top: 20px;
    border-top: 1px solid rgba(139, 92, 246, 0.2);
    padding-top: 15px;
}

.field-note {
    color: var(--gray-dark);
    font-size: 0.7rem;
    margin-top: 4px;
    display: block;
    font-family: 'Outfit', sans-serif;
}

.field-required .field-note {
    color: #ef4444;
    font-weight: 500;
}

/* Loading spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Toast notifications */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(15, 15, 35, 0.95);
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 10px;
    padding: 12px 16px;
    color: white;
    z-index: 10000;
    transform: translateX(400px);
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 350px;
    backdrop-filter: blur(10px);
}

.toast.show {
    transform: translateX(0);
    opacity: 1;
}

.toast.hide {
    transform: translateX(400px);
    opacity: 0;
}

.toast-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.toast-message {
    flex: 1;
    font-size: 0.85rem;
    line-height: 1.4;
}

.toast-close {
    background: none;
    border: none;
    color: var(--gray);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-close:hover {
    color: white;
}

.toast-error {
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.1);
}

.toast-success {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.1);
}

/* Input validation states */
input:invalid, textarea:invalid {
    border-color: rgba(239, 68, 68, 0.3);
}

input:valid, textarea:valid {
    border-color: rgba(34, 197, 94, 0.3);
}

/* Focus states untuk accessibility */
input:focus-visible, textarea:focus-visible, .custom-select-trigger:focus-visible {
    outline: 2px solid var(--purple-accent);
    outline-offset: 2px;
}

/* Smooth transitions untuk semua interactive elements */
button, input, textarea, .custom-select, .mood-option, .tab {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --space-dark: #000000;
        --space-darker: #111111;
        --blue-accent: #0066cc;
        --purple-accent: #6633cc;
    }
    
    .form-container, .messages-section {
        border-width: 2px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .particle {
        animation: none;
        opacity: 0.3;
    }
}