/* ============================================================
   Shopee Seller Kalkulator — Custom CSS (plain, no @apply)
   ============================================================ */

/* ----------------------------------------------------------
   Input
   ---------------------------------------------------------- */
.ssk-input {
    display: block;
    width: 100%;
    border-radius: 0.75rem;
    border: 1px solid #d1d5db;
    background-color: #ffffff;
    color: #111827;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding: 0.5rem 0.75rem;
    outline: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.ssk-input:focus {
    border-color: #ee4d2d;
    box-shadow: 0 0 0 3px rgba(238, 77, 45, 0.15);
}
.ssk-input::placeholder { color: #9ca3af; }
.dark .ssk-input {
    border-color: #4b5563;
    background-color: #374151;
    color: #f9fafb;
}
.dark .ssk-input::placeholder { color: #6b7280; }
select.ssk-input { cursor: pointer; }

/* ----------------------------------------------------------
   Buttons
   ---------------------------------------------------------- */
.ssk-btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background-color: #ee4d2d;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease, opacity 0.15s ease;
    text-decoration: none;
}
.ssk-btn-primary:hover:not(:disabled) { background-color: #d44025; }
.ssk-btn-primary:active:not(:disabled) { background-color: #b8341d; }
.ssk-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.ssk-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    color: #374151;
    font-weight: 500;
    font-size: 0.875rem;
    padding: 0.625rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.15s ease;
    text-decoration: none;
}
.ssk-btn-secondary:hover { background-color: #f9fafb; }
.dark .ssk-btn-secondary {
    background-color: #374151;
    border-color: #4b5563;
    color: #d1d5db;
}
.dark .ssk-btn-secondary:hover { background-color: #4b5563; }

/* ----------------------------------------------------------
   Status badges
   ---------------------------------------------------------- */
.status-profit { background-color: #dcfce7; color: #166534; }
.status-tipis  { background-color: #fef9c3; color: #854d0e; }
.status-rugi   { background-color: #fee2e2; color: #991b1b; }
.dark .status-profit { background-color: rgba(22,101,52,0.3);  color: #86efac; }
.dark .status-tipis  { background-color: rgba(133,77,14,0.3);  color: #fde047; }
.dark .status-rugi   { background-color: rgba(153,27,27,0.3);  color: #fca5a5; }

/* ----------------------------------------------------------
   Result card animation
   ---------------------------------------------------------- */
.result-card {
    animation: sskFadeIn 0.25s ease;
}
@keyframes sskFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Fee row hover */
.fee-row:hover { background-color: rgba(238, 77, 45, 0.04); }

/* ----------------------------------------------------------
   Number input — hide browser spinner
   ---------------------------------------------------------- */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type=number] { -moz-appearance: textfield; }

/* ----------------------------------------------------------
   AlpineJS cloak
   ---------------------------------------------------------- */
[x-cloak] { display: none !important; }

/* ----------------------------------------------------------
   Mobile scrollbar-none (pill tabs, horizontal scroll)
   ---------------------------------------------------------- */
.scrollbar-none { scrollbar-width: none; -ms-overflow-style: none; }
.scrollbar-none::-webkit-scrollbar { display: none; }

/* ----------------------------------------------------------
   Mobile bottom nav safe area
   ---------------------------------------------------------- */
.safe-area-inset-bottom { padding-bottom: env(safe-area-inset-bottom, 0); }

/* ----------------------------------------------------------
   Mobile: input & button touch targets minimum 44px
   ---------------------------------------------------------- */
@media (max-width: 1023px) {
    .ssk-input { min-height: 44px; font-size: 1rem; }
    .ssk-btn-primary { min-height: 48px; font-size: 1rem; }
    .ssk-btn-secondary { min-height: 44px; }
}
