/* Tailwind CDN'den geliyor; burada sadece bileşen sınıfları + ufak ek stiller. */

/* --------- form alanları --------- */
.form-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgb(100 116 139); /* slate-500 */
}
.form-input {
    width: 100%;
    border-radius: 0.5rem;
    border: 1px solid rgb(226 232 240); /* slate-200 */
    background: white;
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
    color: rgb(30 41 59); /* slate-800 */
    transition: border-color 150ms, box-shadow 150ms, background-color 150ms;
}
.form-input:focus {
    outline: none;
    border-color: rgb(124 58 237); /* violet-600 */
    box-shadow: 0 0 0 3px rgb(196 181 253 / 0.5); /* violet-300/50 */
}

/* --------- ödeme & uzatma "pill" radio'ları --------- */
.payment-pill input,
.extend-pill input { position: absolute; opacity: 0; pointer-events: none; }

.payment-pill-label,
.extend-pill-label {
    display: flex;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border-radius: 0.5rem;
    border: 1px solid rgb(226 232 240);
    background: white;
    padding: 0.6rem 0.5rem;
    font-size: 0.85rem;
    font-weight: 500;
    color: rgb(71 85 105);
    line-height: 1.2;
    transition: all 150ms ease;
}
.payment-pill input:checked + .payment-pill-label,
.extend-pill input:checked + .extend-pill-label {
    border-color: rgb(124 58 237);
    background: rgb(245 243 255); /* violet-50 */
    color: rgb(91 33 182);        /* violet-800 */
    box-shadow: 0 0 0 1px rgb(124 58 237);
}
.extend-pill input:checked + .extend-pill-label {
    border-color: rgb(16 185 129); /* emerald-500 */
    background: rgb(236 253 245);  /* emerald-50 */
    color: rgb(6 95 70);
    box-shadow: 0 0 0 1px rgb(16 185 129);
}

/* --------- butonlar --------- */
.btn-primary {
    border-radius: 0.5rem;
    background: linear-gradient(to right, rgb(124 58 237), rgb(192 38 211));
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgb(124 58 237 / 0.25);
    transition: filter 150ms;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-success {
    border-radius: 0.5rem;
    background: rgb(5 150 105); /* emerald-600 */
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    box-shadow: 0 4px 12px rgb(16 185 129 / 0.25);
    transition: background-color 150ms;
}
.btn-success:hover { background: rgb(4 120 87); }
.btn-secondary {
    border-radius: 0.5rem;
    border: 1px solid rgb(226 232 240);
    background: white;
    padding: 0.55rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: rgb(71 85 105);
    transition: background-color 150ms;
}
.btn-secondary:hover { background: rgb(248 250 252); }

/* --------- modal kabuğu --------- */
.modal {
    position: fixed; inset: 0; z-index: 50;
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
    animation: modal-fade 150ms ease-out;
}
@media (min-width: 640px) {
    .modal { align-items: center; padding: 1rem; }
}
.modal.hidden { display: none; }
.modal-overlay {
    position: absolute; inset: 0;
    background: rgb(15 23 42 / 0.5);
    backdrop-filter: blur(4px);
}
.modal-panel {
    position: relative;
    display: flex; flex-direction: column;
    width: 100%; max-width: 32rem;
    overflow: hidden;
    background: white;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
    animation: modal-slide 200ms ease-out;
}
@media (min-width: 640px) {
    .modal-panel { border-radius: 1rem; }
}
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    border-bottom: 1px solid rgb(241 245 249);
    padding: 1rem 1.25rem;
}
.modal-title { font-size: 1rem; font-weight: 600; color: rgb(30 41 59); }
.modal-close {
    display: inline-flex; align-items: center; justify-content: center;
    height: 2rem; width: 2rem; border-radius: 0.375rem;
    color: rgb(148 163 184);
    transition: all 150ms;
}
.modal-close:hover { background: rgb(241 245 249); color: rgb(71 85 105); }
.modal-body { max-height: 70vh; overflow-y: auto; padding: 1rem 1.25rem; }
.modal-footer {
    display: flex; flex-direction: column-reverse; gap: 0.5rem;
    border-top: 1px solid rgb(241 245 249);
    background: rgb(248 250 252);
    padding: 0.75rem 1.25rem;
}
@media (min-width: 640px) {
    .modal-footer { flex-direction: row; justify-content: flex-end; }
}
@keyframes modal-fade { from { opacity: 0 } to { opacity: 1 } }
@keyframes modal-slide {
    from { transform: translateY(20px); opacity: 0 }
    to   { transform: translateY(0);    opacity: 1 }
}

/* --------- ince scrollbar (yatay tablo) --------- */
.scrollbar-thin::-webkit-scrollbar { height: 8px; width: 8px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb {
    background: rgb(203 213 225);
    border-radius: 9999px;
}
.scrollbar-thin::-webkit-scrollbar-thumb:hover { background: rgb(148 163 184); }

/* --------- flash mesaj otomatik kayboluş animasyonu --------- */
[data-flash] { animation: flash-in 250ms ease-out; }
@keyframes flash-in {
    from { transform: translateY(-8px); opacity: 0 }
    to   { transform: translateY(0);    opacity: 1 }
}
