:root {
    --primary: #004c4c; /* Teekse Professional Teal */
    --primary-light: rgba(0, 76, 76, 0.08);
    --primary-shadow: rgba(0, 76, 76, 0.15);
    --bg: #ffffff;
    --surface: #ffffff;
    --text: #0f172a;
    --text-muted: #94a3b8;
    --border: #f1f5f9;
}

body { 
    font-family: 'Outfit', sans-serif; 
    background-color: #f8fafc;
    color: var(--text);
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}


#app {
    background-color: var(--surface);
    min-height: 100vh;
    width: 100%; /* Total width on mobile */
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Premium Desktop/Tablet Presentation */
@media (min-width: 480px) {
    body {
        background-color: #f1f5f9;
        padding: 2rem 1rem;
    }
    #app {
        width: 440px; 
        max-width: 100%;
        min-height: 850px;
        max-height: 95vh;
        border-radius: 3.5rem;
        box-shadow: 0 40px 100px -20px rgba(0, 76, 76, 0.15);
        border: 1px solid rgba(0, 76, 76, 0.05);
        margin: auto;
        overflow: hidden;
    }
}

/* --- THE PREMIUM TEMPLATE --- */

.header-premium {
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.input-premium {
    background-color: #ffffff;
    border: 2px solid #0f172a; /* Strong identity border */
    padding: 1.1rem 1.5rem;
    border-radius: 9999px; /* Official Pill Shape */
    width: 100%;
    font-size: 0.9rem;
    font-weight: 700;
    color: #0f172a;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom Arrow for Premium Selects */
select.input-premium {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%230f172a' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M19 9l-7 7-7-7' /%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1.5rem center;
    background-size: 1.25rem;
    padding-right: 3.5rem;
}

.input-premium:focus {
    border-color: var(--primary);
    box-shadow: 0 10px 25px -5px var(--primary-shadow);
}

.btn-modern {
    background-color: var(--primary);
    color: white;
    width: 100%;
    height: 2.8rem; /* Professional compact height */
    border-radius: 9999px;
    font-weight: 900;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer;
    box-shadow: 0 12px 24px -8px var(--primary-shadow);
}

.btn-modern:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
    box-shadow: 0 20px 40px -12px var(--primary-shadow);
}

.btn-modern:active { 
    transform: scale(0.96); 
}

.btn-modern:disabled {
    background-color: #f1f5f9;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.card-premium {
    background: white;
    border: 1px solid #f1f5f9;
    border-radius: 2.25rem;
    padding: 1.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: all 0.3s ease;
}
.card-premium:hover {
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.section-label {
    font-size: 10px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.3em;
    color: var(--text-muted);
    padding-left: 0.25rem;
}

.btn-action-premium {
    width: 3rem; /* Compact Circular Action */
    height: 3rem;
    border-radius: 9999px; /* Perfect Circle */
    background-color: #ffffff; /* Clean Minimal White */
    border: 2px solid #f1f5f9;
    color: var(--primary); /* Plant Green Accent Splash */
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    box-shadow: 0 4px 10px -2px rgba(15, 23, 42, 0.05);
    flex-shrink: 0; /* Never shrink button regardless of text */
}

.btn-action-premium:hover {
    background-color: var(--primary); /* Splash of green on interaction */
    border-color: var(--primary);
    color: #ffffff;
    transform: translateY(-3px) scale(1.08);
    box-shadow: 0 15px 30px -10px var(--primary-shadow);
}

.btn-action-premium:active {
    transform: scale(0.94);
}

/* Premium Global Alert System (System-style Modals) */
.modal-alert-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2.5rem;
    animation: modal-fade-in 0.3s ease-out forwards;
}

@keyframes modal-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-alert-card {
    background: #ffffff;
    width: 100%;
    max-width: 320px;
    border-radius: 2.5rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.25);
    transform: scale(0.9);
    opacity: 0;
    animation: modal-pop 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
    border: 1px solid rgba(0, 76, 76, 0.05);
}

@keyframes modal-pop {
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-alert-icon {
    width: 4rem;
    height: 4rem;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    background: #f1f5f9;
    color: #004c4c;
}

.modal-alert-icon.error {
    background: #fef2f2;
    color: #b91c1c;
}

.modal-alert-icon.success {
    background: #f0fdf4;
    color: #15803d;
}

.modal-alert-title {
    font-size: 1.15rem;
    font-weight: 900;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.modal-alert-message {
    font-size: 0.85rem;
    color: #64748b;
    line-height: 1.6;
    font-weight: 500;
    margin-bottom: 2rem;
}

.modal-alert-btn {
    width: 100%;
    padding: 1.25rem;
    background: #0f172a;
    color: #ffffff;
    border-radius: 1.5rem;
    font-size: 0.85rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px -5px rgba(15, 23, 42, 0.3);
}

.modal-alert-btn:active {
    transform: scale(0.96);
    opacity: 0.8;
}

.modal-alert-btn.success {
    background: #004c4c;
    box-shadow: 0 10px 20px -5px rgba(0, 76, 76, 0.3);
}

/* Side Menu Transition */
#side-menu {
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(100%);
}
#side-menu.open {
    transform: translateX(0);
}
#menu-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
#menu-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* utility classes */
.no-scrollbar::-webkit-scrollbar { display: none; }

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Premium Custom Tooltips */
.tooltip-container {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.premium-tooltip {
    position: absolute;
    bottom: calc(100% + 12px);
    right: -10px;
    width: 200px;
    background: #0f172a;
    color: #ffffff;
    padding: 1rem 1.25rem;
    border-radius: 1.5rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.5;
    box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.4);
    z-index: 100;
    pointer-events: none;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 1px solid rgba(255, 255, 255, 0.08);
    text-align: left;
    text-transform: none;
    letter-spacing: normal;
}

.tooltip-container:hover .premium-tooltip {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.premium-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    right: 20px;
    border-width: 6px;
    border-style: solid;
    border-color: #0f172a transparent transparent transparent;
}

/* Filter Buttons */
.spec-filter-btn {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.spec-filter-btn.active {
    background-color: var(--primary) !important;
    color: #ffffff !important;
    box-shadow: 0 10px 20px -5px var(--primary-shadow) !important;
    transform: translateY(-1px);
}

/* Toast Styles */
.toast-simple {
    position: fixed;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(8px);
    color: white;
    padding: 0.35rem 1rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    z-index: 20000;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
    animation: toast-fade-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-simple.fade-out {
    animation: toast-fade-out 0.5s ease-out forwards;
}

@keyframes toast-fade-in {
    from { opacity: 0; transform: translate(-50%, 20px); }
    to { opacity: 1; transform: translate(-50%, 0); }
}

@keyframes toast-fade-out {
    from { opacity: 1; transform: translate(-50%, 0); }
    to { opacity: 0; transform: translate(-50%, -10px); }
}
