/* Uzman Paneli — Dashboard */
.section--dashboard {
    padding: 2rem 0 4rem;
    background: #f1f5f9;
}

.container--wide {
    width: min(100% - 2rem, 1280px);
}

.emaks-dash {
    width: 100%;
}

.emaks-dash--login {
    display: flex;
    justify-content: center;
    padding: 2rem 0;
}

.emaks-dash-login {
    width: min(100%, 440px);
    padding: 2.5rem;
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08);
    text-align: center;
}

.emaks-dash-login__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    display: grid;
    place-items: center;
    font-size: 1.75rem;
    background: linear-gradient(135deg, #ecfdf5, #ccfbf1);
    border-radius: 50%;
}

.emaks-dash-login h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
}

.emaks-dash-login p {
    color: #64748b;
    margin: 0 0 1.5rem;
}

.emaks-dash-login #emaks-loginform {
    text-align: left;
}

.emaks-dash-login #emaks-loginform label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.emaks-dash-login #emaks-loginform input[type="text"],
.emaks-dash-login #emaks-loginform input[type="password"] {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 1px solid #d5dde5;
    border-radius: 10px;
    margin-bottom: 1rem;
    font: inherit;
}

.emaks-dash-login #emaks-loginform input[type="submit"] {
    width: 100%;
    padding: 0.9rem;
    background: var(--color-primary, #0f766e);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 1rem;
}

.emaks-dash-login #emaks-loginform .login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.emaks-dash-login__footer {
    margin-top: 1.5rem;
    font-size: 0.9rem;
    color: #64748b;
}

/* Dashboard layout */
.emaks-dash__topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    padding: 1.5rem 1.75rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.emaks-dash__eyebrow {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-primary, #0f766e);
    margin-bottom: 0.35rem;
}

.emaks-dash__welcome h2 {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
}

.emaks-dash__welcome p {
    margin: 0;
    color: #64748b;
    font-size: 0.92rem;
}

.emaks-dash__actions {
    display: flex;
    gap: 0.65rem;
    flex-shrink: 0;
}

.emaks-dash__status {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.emaks-dash__status-item {
    padding: 0.45rem 0.85rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    font-size: 0.85rem;
}

.emaks-dash__status-item--ok {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.emaks-dash__status-item--warn {
    background: #fffbeb;
    border-color: #fde68a;
    color: #92400e;
}

.emaks-dash-stats {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1rem;
}

.emaks-dash-stats__head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
}

.emaks-dash-stats__head p {
    margin: 0 0 1rem;
    color: #64748b;
    font-size: 0.9rem;
}

.emaks-dash-stats__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.emaks-dash-stats__period {
    padding: 0.9rem 1rem;
    background: var(--tint-1, #f0fdfa);
    border-radius: 12px;
}

.emaks-dash-stats__label {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--color-primary, #0f766e);
}

.emaks-dash-stats__views {
    display: block;
    font-size: 1.9rem;
    line-height: 1.15;
    margin-top: 0.25rem;
}

.emaks-dash-stats__sub {
    font-size: 0.82rem;
    color: #64748b;
}

.emaks-dash-stats__period ul {
    list-style: none;
    margin: 0.6rem 0 0;
    padding: 0.6rem 0 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    font-size: 0.88rem;
}

.emaks-dash-stats__period li {
    display: flex;
    justify-content: space-between;
    padding: 0.12rem 0;
}

.emaks-dash-stats__chart {
    display: flex;
    align-items: flex-end;
    gap: 3px;
    height: 70px;
    margin-top: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.emaks-dash-stats__chart span {
    flex: 1;
    min-height: 2px;
    background: var(--color-primary, #0f766e);
    opacity: 0.75;
    border-radius: 3px 3px 0 0;
}

.emaks-dash-stats__note {
    margin: 0.4rem 0 0;
    font-size: 0.8rem;
    color: #94a3b8;
}

@media (max-width: 700px) {
    .emaks-dash-stats {
        padding: 1rem;
    }

    .emaks-dash-stats__grid {
        grid-template-columns: 1fr;
    }

    .emaks-dash-stats__period {
        display: grid;
        grid-template-columns: auto 1fr;
        column-gap: 1rem;
        align-items: center;
    }

    .emaks-dash-stats__label,
    .emaks-dash-stats__period ul {
        grid-column: 1 / -1;
    }
}

.emaks-dash__tabs {
    display: none;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.emaks-dash__tab {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #fff;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}

.emaks-dash__tab.is-active {
    background: var(--color-primary, #0f766e);
    color: #fff;
    border-color: var(--color-primary, #0f766e);
}

.emaks-dash__layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 1.5rem;
    align-items: start;
}

.emaks-dash-section {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 1rem;
}

.emaks-dash-section__head {
    margin-bottom: 1.25rem;
}

.emaks-dash-section__head h3 {
    margin: 0 0 0.25rem;
    font-size: 1.05rem;
}

.emaks-dash-section__head p {
    margin: 0;
    color: #64748b;
    font-size: 0.88rem;
}

/* Photo upload */
.emaks-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.emaks-photo-slot {
    border: 2px dashed #cbd5e1;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.emaks-photo-slot:hover {
    border-color: var(--color-primary, #0f766e);
}

.emaks-photo-slot__preview {
    aspect-ratio: 1;
    background: #f8fafc;
    display: grid;
    place-items: center;
    overflow: hidden;
    position: relative;
}

.emaks-photo-slot__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emaks-photo-slot__empty {
    font-size: 2rem;
    color: #94a3b8;
}

.emaks-photo-slot__info {
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.emaks-photo-slot__info strong {
    font-size: 0.88rem;
}

.emaks-photo-slot__info small {
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.35;
}

.emaks-photo-slot__input {
    font-size: 0.8rem;
    margin-top: 0.25rem;
}

.emaks-photo-slot__remove {
    background: none;
    border: none;
    color: #dc2626;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    text-align: left;
}

/* Form */
.emaks-form__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.emaks-form__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}

.emaks-form__field input,
.emaks-form__field textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #d5dde5;
    border-radius: 10px;
    font: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.emaks-form__field input:focus,
.emaks-form__field textarea:focus {
    outline: none;
    border-color: var(--color-primary, #0f766e);
    box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 15, 118, 110), 0.12);
}

.emaks-form__field--full {
    grid-column: 1 / -1;
}

.emaks-dash-form__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.5rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
}

.emaks-form__note {
    color: #64748b;
    font-size: 0.85rem;
    margin: 0;
}

.emaks-btn--lg {
    padding: 0.9rem 1.75rem;
    font-size: 1rem;
}

.emaks-btn--outline {
    background: #fff;
    color: var(--color-primary, #0f766e);
    border: 2px solid var(--color-primary, #0f766e);
}

/* Preview panel */
.emaks-dash__preview-col {
    position: sticky;
    top: 96px;
}

.emaks-preview {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.06);
}

.emaks-preview__label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1.25rem;
    background: linear-gradient(135deg, var(--color-primary, #0f766e), var(--color-secondary, #134e4a));
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
}

.emaks-preview__open {
    color: #ecfdf5;
    font-size: 0.82rem;
    text-decoration: underline;
}

.emaks-preview__card {
    padding: 0;
}

.emaks-preview__hero {
    position: relative;
}

.emaks-preview__photos {
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #ccfbf1, #99f6e4);
    position: relative;
    overflow: hidden;
}

.emaks-preview__photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

.emaks-preview__photo.is-active {
    opacity: 1;
}

.emaks-preview__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    font-size: 4rem;
    font-weight: 800;
    color: var(--color-primary, #0f766e);
}

.emaks-preview__thumbs {
    display: flex;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
}

.emaks-preview__thumb {
    width: 52px;
    height: 52px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    background: none;
}

.emaks-preview__thumb.is-active {
    border-color: var(--color-primary, #0f766e);
}

.emaks-preview__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.emaks-preview__body {
    padding: 1.25rem;
}

.emaks-preview__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}

.emaks-preview__top h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.3;
}

.emaks-preview__meta {
    color: var(--color-primary, #0f766e);
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 0.35rem;
}

.emaks-preview__address {
    color: #64748b;
    font-size: 0.82rem;
    margin: 0 0 0.75rem;
}

.emaks-preview__bio {
    font-size: 0.88rem;
    color: #334155;
    line-height: 1.55;
    margin-bottom: 0.75rem;
}

.emaks-preview__bio p {
    margin: 0 0 0.5rem;
}

.emaks-preview__section {
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
}

.emaks-preview__section strong {
    display: block;
    margin-bottom: 0.25rem;
    color: #0f172a;
}

.emaks-preview__section--hidden {
    display: none;
}

.emaks-preview__contact {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e2e8f0;
}

.emaks-preview__contact-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.82rem;
    color: #475569;
}

/* Alerts */
.emaks-alert {
    padding: 0.85rem 1.25rem;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.emaks-alert--success {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

.emaks-alert--error {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.emaks-dash--error,
.emaks-dash--notice {
    padding: 2rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

/* Responsive */
@media (max-width: 1024px) {
    .emaks-dash__layout {
        grid-template-columns: 1fr;
    }

    .emaks-dash__preview-col {
        position: static;
        display: none;
    }

    .emaks-dash__preview-col.is-visible {
        display: block;
    }

    .emaks-dash__form-col.is-hidden {
        display: none;
    }

    .emaks-dash__tabs {
        display: flex;
    }

    .emaks-photo-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .emaks-dash__topbar {
        flex-direction: column;
    }

    .emaks-dash__actions {
        width: 100%;
        flex-direction: column;
    }

    .emaks-dash__actions .emaks-btn {
        width: 100%;
        justify-content: center;
    }

    .emaks-form__grid {
        grid-template-columns: 1fr;
    }

    .emaks-dash-form__footer {
        flex-direction: column;
        align-items: stretch;
    }

    .emaks-dash-form__footer .emaks-btn {
        width: 100%;
    }
}
