/* meus-servicos.css — Dark professional theme */

.ms-page {
    max-width: 960px;
    margin: 0 auto;
    padding: 32px 20px 120px;
}

.ms-page__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.ms-page__intro h1 {
    font-family: "Sora", sans-serif;
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.ms-page__subtitle {
    color: var(--text-muted, #9b89b0);
    font-size: 0.88rem;
    margin-top: 4px;
}

.ms-page__actions-top {
    display: flex;
    gap: 10px;
    flex-shrink: 0;
}

/* Buttons */
.ms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 40px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    text-decoration: none;
    white-space: nowrap;
}
.ms-btn .material-symbols-rounded { font-size: 1.1rem; }

.ms-btn--primary {
    background: var(--accent, #8a05be);
    color: #fff;
}
.ms-btn--primary:hover { background: #7504a8; transform: translateY(-1px); }

.ms-btn--outline {
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted, #9b89b0);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.ms-btn--outline:hover { border-color: rgba(255, 255, 255, 0.2); color: #fff; }

.ms-btn--sm { height: 34px; padding: 0 14px; font-size: 0.8rem; }

.ms-btn--danger { color: #ef4444; border-color: rgba(239, 68, 68, 0.2); }
.ms-btn--danger:hover { background: rgba(239, 68, 68, 0.08); border-color: rgba(239, 68, 68, 0.4); }

/* Stats */
.ms-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.ms-stat {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 16px;
}

.ms-stat__icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(138, 5, 190, 0.12);
    color: var(--accent, #8a05be);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.ms-stat__icon .material-symbols-rounded { font-size: 1.3rem; }
.ms-stat__icon--warn { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ms-stat__icon--accent { background: rgba(138, 5, 190, 0.12); color: var(--accent, #8a05be); }
.ms-stat__icon--gold { background: rgba(212, 175, 55, 0.08); color: var(--gold, #d4af37); }

.ms-stat__info { display: flex; flex-direction: column; }

.ms-stat__value {
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1.2;
}

.ms-stat__label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted, #9b89b0);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Alert */
.ms-alert {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(245, 158, 11, 0.06);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.ms-alert > .material-symbols-rounded { color: #f59e0b; font-size: 1.4rem; flex-shrink: 0; }
.ms-alert__text { flex: 1; }
.ms-alert__text strong { display: block; font-size: 0.88rem; }
.ms-alert__text span { font-size: 0.8rem; color: var(--text-muted, #9b89b0); }

/* Availability Banner */
.ms-availability-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(239, 68, 68, 0.05);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.ms-availability-banner > .material-symbols-rounded { color: #ef4444; font-size: 1.4rem; flex-shrink: 0; }
.ms-availability-banner__text { flex: 1; }
.ms-availability-banner__text strong { display: block; font-size: 0.88rem; }
.ms-availability-banner__text span { font-size: 0.8rem; color: var(--text-muted, #9b89b0); }

/* Loading */
.ms-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 60px 20px;
}

.ms-loading__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.08);
    border-top-color: var(--accent, #8a05be);
    border-radius: 50%;
    animation: msSpinner 0.7s linear infinite;
}

@keyframes msSpinner {
    to { transform: rotate(360deg); }
}

.ms-loading__text {
    font-size: 0.85rem;
    color: var(--text-muted, #9b89b0);
}

/* Service List */
.ms-list { display: grid; gap: 12px; }

/* Service Card */
.ms-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 20px;
    transition: background 0.2s;
}
.ms-card:hover { background: rgba(255, 255, 255, 0.04); }

.ms-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
}

.ms-card__title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
}

.ms-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 0.8rem;
    color: var(--text-muted, #9b89b0);
}

.ms-card__meta-sep { opacity: 0.3; }

.ms-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    height: 26px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    flex-shrink: 0;
}

.ms-badge--active { background: rgba(34, 197, 94, 0.1); color: #22c55e; }
.ms-badge--paused { background: rgba(245, 158, 11, 0.1); color: #f59e0b; }
.ms-badge--draft { background: rgba(107, 100, 135, 0.08); color: #6d6487; }

.ms-card__actions {
    display: flex;
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Empty State */
.ms-empty {
    text-align: center;
    padding: 60px 20px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.08);
    border-radius: 16px;
}

.ms-empty__icon {
    font-size: 3rem;
    color: var(--text-muted, #9b89b0);
    opacity: 0.4;
}

.ms-empty h2 {
    font-family: "Sora", sans-serif;
    font-size: 1.1rem;
    margin-top: 16px;
}

.ms-empty p {
    color: var(--text-muted, #9b89b0);
    font-size: 0.88rem;
    margin: 8px auto 20px;
    max-width: 36ch;
}

/* Modal */
.ms-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(4px);
}

.ms-modal {
    background: var(--bg, #07030d);
    border-radius: 18px;
    width: 100%;
    max-width: 480px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
}

.ms-modal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 24px 0;
}

.ms-modal__head h2 {
    font-family: "Sora", sans-serif;
    font-size: 1.15rem;
    font-weight: 700;
}

.ms-modal__close {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted, #9b89b0);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s;
}
.ms-modal__close:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }

.ms-modal__body {
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ms-modal__desc {
    font-size: 0.85rem;
    color: var(--text-muted, #9b89b0);
    line-height: 1.6;
}

.ms-modal__foot {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 16px 24px 24px;
}

/* Form fields */
.ms-field-group { display: flex; flex-direction: column; gap: 8px; }
.ms-field-label {
    font-size: 0.82rem;
    font-weight: 700;
}

.ms-date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.ms-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ms-field label {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text-muted, #9b89b0);
}

.ms-input {
    height: 42px;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 0.15s;
}
.ms-input:focus { outline: none; border-color: var(--accent, #8a05be); }

textarea.ms-input {
    height: auto;
    padding: 12px 14px;
    resize: vertical;
    min-height: 80px;
}

.ms-field__counter {
    font-size: 0.72rem;
    color: var(--text-muted, #6d6487);
    text-align: right;
}

.ms-optional {
    font-weight: 400;
    color: var(--text-muted, #6d6487);
}

/* Toggle */
.ms-toggle-row {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    cursor: pointer;
    padding: 14px 16px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.15s;
}
.ms-toggle-row:hover { background: rgba(255, 255, 255, 0.05); }

.ms-toggle {
    width: 44px;
    height: 24px;
    appearance: none;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    border: none;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 2px;
    transition: background 0.2s;
}
.ms-toggle::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}
.ms-toggle:checked { background: var(--accent, #8a05be); }
.ms-toggle:checked::after { transform: translateX(20px); }

.ms-toggle-label { display: flex; flex-direction: column; gap: 2px; }
.ms-toggle-label strong { font-size: 0.85rem; }
.ms-toggle-label span { font-size: 0.78rem; color: var(--text-muted, #9b89b0); line-height: 1.4; }

/* Toast */
.ms-page ~ .toast {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(22, 13, 36, 0.95);
    color: #fff;
    padding: 10px 20px;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    z-index: 10000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

/* Responsive */
@media (max-width: 700px) {
    .ms-page { padding: 20px 14px 120px; }
    .ms-page__top { flex-direction: column; gap: 14px; }
    .ms-page__actions-top { width: 100%; }
    .ms-page__actions-top .ms-btn { flex: 1; }
    .ms-stats { grid-template-columns: 1fr 1fr; }
    .ms-card__actions { flex-wrap: wrap; }
    .ms-card__actions .ms-btn { flex: 1; min-width: 0; }
    .ms-date-row { grid-template-columns: 1fr; }
    .ms-modal-overlay { padding: 12px; align-items: flex-end; }
    .ms-modal { max-width: 100%; border-radius: 18px 18px 0 0; max-height: 85vh; }
    .ms-modal__head { padding: 20px 18px 0; }
    .ms-modal__head h2 { font-size: 1.05rem; }
    .ms-modal__body { padding: 16px 18px; gap: 16px; }
    .ms-modal__desc { font-size: 0.82rem; }
    .ms-modal__foot { padding: 14px 18px 20px; gap: 8px; }
    .ms-modal__foot .ms-btn { flex: 1; }
    .ms-toggle-row { padding: 12px 14px; gap: 12px; }
    .ms-toggle-label strong { font-size: 0.82rem; }
    .ms-toggle-label span { font-size: 0.75rem; }
    .ms-field label { font-size: 0.75rem; }
    .ms-input { height: 40px; font-size: 0.85rem; }
    textarea.ms-input { min-height: 70px; }
}

@media (max-width: 420px) {
    .ms-stats { gap: 8px; }
    .ms-stat { padding: 12px; }
    .ms-stat__icon { width: 36px; height: 36px; }
    .ms-page__intro h1 { font-size: 1.3rem; }
    .ms-alert { flex-direction: column; text-align: center; gap: 10px; }
    .ms-availability-banner { flex-direction: column; text-align: center; gap: 10px; }
}

