/* =====================================================
   DREALIMA PROJECT PORTAL
   portal/css/portal.css
===================================================== */

:root {
    --primary-green: #5f9368;
    --primary-green-dark: #244b35;
    --primary-green-deep: #173d2d;
    --primary-green-soft: #e9f2e2;

    --accent-yellow: #d0d66a;
    --accent-yellow-light: #e5f39c;
    --accent-yellow-soft: #f8f2cf;

    --background: #f6f9f3;
    --surface: #ffffff;
    --surface-soft: #fafcf8;

    --border: #dce6d7;
    --border-dark: #ccd9c7;

    --text: #24392d;
    --text-dark: #1f3c2b;
    --muted: #748278;

    --success: #4d805a;
    --success-soft: #e5f2e7;

    --warning: #8c7430;
    --warning-soft: #f8f0cd;

    --danger: #a65c48;
    --danger-soft: #f8e8df;

    --shadow:
        0 18px 55px rgba(48, 82, 58, 0.11);
}

/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    width: 100%;
    min-height: 100%;
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body {
    min-height: 100vh;
    color: var(--text);
    background: var(--background);
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

img {
    max-width: 100%;
}

.hidden {
    display: none !important;
}

.auth-loading {
    visibility: hidden;
}

/* =====================================================
   ORTAK LOGO
===================================================== */

.portal-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-text strong {
    font-size: 18px;
    font-weight: 750;
}

.logo-text small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 12px;
}

.logo-image-wrapper {
    width: 58px;
    height: 58px;
    flex: 0 0 58px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 4px;
    border-radius: 17px;
    background: #ffffff;
}

.logo-image-wrapper.small {
    width: 44px;
    height: 44px;
    flex-basis: 44px;
    border-radius: 13px;
}

.portal-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 12px;
}

/* =====================================================
   ORTAK FORM ELEMANLARI
===================================================== */

.section-label {
    color: var(--primary-green);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.5px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 19px;
}

.form-group label {
    color: #344c3c;
    font-size: 14px;
    font-weight: 700;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    color: var(--text);
    background: #ffffff;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.form-group textarea {
    resize: vertical;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #7fa66d;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(127, 166, 109, 0.15);
}

.form-row {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.primary-button,
.secondary-button {
    border: 0;
    border-radius: 12px;
    font-weight: 750;
    transition:
        transform 0.2s ease,
        opacity 0.2s ease,
        color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.primary-button {
    padding: 13px 20px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #4f8f61 0%,
            #78ad63 58%,
            #c9cf61 100%
        );
    box-shadow:
        0 12px 25px rgba(91, 142, 91, 0.2);
}

.secondary-button {
    padding: 11px 17px;
    color: #355341;
    background: #edf3e9;
}

.primary-button:hover,
.secondary-button:hover {
    transform: translateY(-1px);
}

.primary-button:hover {
    box-shadow:
        0 16px 31px rgba(91, 142, 91, 0.28);
}

.secondary-button:hover {
    color: #ffffff;
    background: #648d5a;
}

.primary-button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
    transform: none;
}

.full-width {
    width: 100%;
}

.form-message {
    min-height: 22px;
    margin: 13px 0 0;
    font-size: 14px;
    line-height: 1.5;
}

.form-message.error {
    color: #b94848;
}

.form-message.success {
    color: #45815a;
}

/* =====================================================
   DAKİKA GİRİŞİ
===================================================== */

.duration-input-wrapper {
    position: relative;
}

.duration-input-wrapper input {
    padding-right: 82px;
}

.input-suffix {
    position: absolute;
    top: 50%;
    right: 14px;
    pointer-events: none;
    color: var(--muted);
    font-size: 14px;
    transform: translateY(-50%);
}

.field-helper {
    display: block;
    margin-top: -2px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* =====================================================
   LOGIN SAYFASI
===================================================== */

body.login-page {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 100vh;
    min-height: 100svh;
    overflow: hidden;
    color: #20352a;
    background: #f7faf3;
}

body.login-page .login-layout {
    width: 100%;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    display: grid;
    grid-template-columns:
        minmax(500px, 1.15fr)
        minmax(430px, 0.85fr);
    gap: 0;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* LOGIN SOL PANEL */

body.login-page .login-showcase {
    position: relative;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 12% 12%,
            rgba(255, 225, 124, 0.24),
            transparent 35%
        ),
        radial-gradient(
            circle at 90% 84%,
            rgba(153, 220, 160, 0.22),
            transparent 38%
        ),
        linear-gradient(
            145deg,
            #173d2d 0%,
            #286047 48%,
            #4c9362 100%
        );
}

body.login-page .login-showcase::before {
    position: absolute;
    top: -170px;
    right: -120px;
    width: 430px;
    height: 430px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    content: "";
}

body.login-page .login-showcase::after {
    position: absolute;
    right: 70px;
    bottom: -280px;
    width: 560px;
    height: 560px;
    border: 1px solid rgba(255, 255, 255, 0.075);
    border-radius: 50%;
    content: "";
}

body.login-page .showcase-overlay {
    position: absolute;
    inset: 0;
    opacity: 0.22;
    background-image:
        linear-gradient(
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.045) 1px,
            transparent 1px
        );
    background-size: 62px 62px;
    mask-image:
        linear-gradient(
            to bottom,
            rgba(0, 0, 0, 0.8),
            transparent
        );
}

body.login-page .showcase-content {
    position: relative;
    z-index: 2;
    height: 100vh;
    height: 100svh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    padding:
        clamp(24px, 3.4vh, 38px)
        clamp(34px, 5vw, 76px);
    overflow: hidden;
}

body.login-page .showcase-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
}

body.login-page .portal-logo-light {
    color: #ffffff;
}

body.login-page .portal-logo-light .logo-image-wrapper {
    border: 1px solid rgba(255, 255, 255, 0.38);
    box-shadow:
        0 10px 28px rgba(17, 48, 34, 0.2);
}

body.login-page .portal-logo-light .logo-text strong {
    color: #ffffff;
}

body.login-page .portal-logo-light .logo-text small {
    color: rgba(255, 255, 255, 0.68);
}

body.login-page .secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.82);
    background: rgba(255, 255, 255, 0.075);
    font-size: 12px;
    font-weight: 650;
    backdrop-filter: blur(8px);
}

body.login-page .secure-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d8e96f;
    box-shadow:
        0 0 0 4px rgba(216, 233, 111, 0.16);
}

body.login-page .showcase-main {
    max-width: 680px;
    margin: auto 0;
    padding: clamp(22px, 4vh, 48px) 0;
}

body.login-page .showcase-label {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #e5f39c;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 2px;
}

body.login-page .showcase-label::before {
    width: 34px;
    height: 1px;
    content: "";
    background: #d8ea7c;
}

body.login-page .showcase-main h1 {
    max-width: 720px;
    margin:
        clamp(12px, 2vh, 20px)
        0
        clamp(12px, 2.2vh, 20px);
    color: #ffffff;
    font-size:
        clamp(
            38px,
            min(4.7vw, 7vh),
            68px
        );
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -2.5px;
}

body.login-page .showcase-main h1 span {
    display: block;
    color: #e2f29f;
}

body.login-page .showcase-main > p {
    max-width: 600px;
    margin: 0;
    color: rgba(255, 255, 255, 0.75);
    font-size: clamp(14px, 1.6vw, 17px);
    line-height: 1.55;
}

body.login-page .feature-list {
    max-width: 620px;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 11px;
    margin-top: clamp(20px, 3.5vh, 36px);
}

body.login-page .feature-item {
    min-height: 126px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.075);
    backdrop-filter: blur(10px);
}

body.login-page .feature-icon {
    width: 27px;
    height: 27px;
    display: grid;
    place-items: center;
    margin-bottom: 13px;
    border-radius: 8px;
    color: #fffde8;
    background: rgba(224, 239, 130, 0.22);
    font-size: 13px;
    font-weight: 800;
}

body.login-page .feature-item strong {
    display: block;
    margin-bottom: 5px;
    color: #ffffff;
    font-size: 13px;
}

body.login-page .feature-item small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 11px;
    line-height: 1.45;
}

body.login-page .showcase-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
}

/* LOGIN SAĞ PANEL */

body.login-page .login-panel {
    height: 100vh;
    height: 100svh;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding:
        clamp(20px, 4vh, 42px)
        clamp(24px, 4.5vw, 70px);
    overflow: hidden;
    background:
        radial-gradient(
            circle at top right,
            rgba(213, 229, 117, 0.15),
            transparent 36%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(120, 187, 137, 0.12),
            transparent 34%
        ),
        #f8fbf3;
}

body.login-page .mobile-logo {
    display: none;
}

body.login-page .login-panel .logo-text strong {
    color: #244333;
}

body.login-page .login-panel .logo-text small {
    color: #728477;
}

body.login-page .login-card {
    width: min(100%, 470px);
    max-height: calc(100svh - 86px);
    overflow: hidden;
    padding:
        clamp(25px, 3.5vh, 38px)
        clamp(24px, 3.2vw, 38px);
    border: 1px solid #dfe8d9;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.97);
    box-shadow:
        0 28px 75px rgba(54, 91, 65, 0.13);
}

body.login-page .login-card-heading {
    margin-bottom: clamp(19px, 2.8vh, 28px);
}

body.login-page .login-card-heading h2 {
    margin: 8px 0;
    color: #203b2b;
    font-size: clamp(25px, 2.4vw, 30px);
    font-weight: 720;
    letter-spacing: -0.8px;
}

body.login-page .login-card-heading p {
    margin: 0;
    color: #748278;
    font-size: 14px;
    line-height: 1.55;
}

body.login-page .label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

body.login-page .text-button {
    padding: 0;
    border: 0;
    color: #648f58;
    background: transparent;
    font-size: 12px;
    font-weight: 750;
}

body.login-page .text-button:hover {
    color: #456f3e;
    text-decoration: underline;
}

body.login-page .input-container {
    position: relative;
}

body.login-page .input-container input {
    width: 100%;
    min-height: 48px;
    padding: 12px 74px 12px 45px;
    border: 1px solid #d9e3d5;
    border-radius: 13px;
    outline: none;
    color: #253b2d;
    background: #fbfdf9;
}

body.login-page .input-container input::placeholder {
    color: #9ca99f;
}

body.login-page .input-container input:focus {
    border-color: #7fa66d;
    background: #ffffff;
    box-shadow:
        0 0 0 4px rgba(127, 166, 109, 0.16);
}

body.login-page .input-icon {
    position: absolute;
    top: 50%;
    left: 15px;
    z-index: 2;
    width: 20px;
    color: #7d9582;
    font-size: 15px;
    font-weight: 700;
    text-align: center;
    transform: translateY(-50%);
}

body.login-page .password-toggle {
    position: absolute;
    top: 50%;
    right: 13px;
    padding: 5px 6px;
    border: 0;
    color: #668f5b;
    background: transparent;
    font-size: 11px;
    font-weight: 750;
    transform: translateY(-50%);
}

body.login-page .login-button {
    width: 100%;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 7px;
    padding: 0 18px;
    border: 0;
    border-radius: 13px;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #4f8f61 0%,
            #79ad63 58%,
            #c9cf61 100%
        );
    box-shadow:
        0 13px 27px rgba(91, 142, 91, 0.24);
    font-weight: 750;
}

body.login-page .login-button:hover {
    transform: translateY(-2px);
    box-shadow:
        0 17px 34px rgba(91, 142, 91, 0.3);
}

body.login-page .button-arrow {
    font-size: 20px;
    font-weight: 400;
}

body.login-page .login-security-note {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    margin-top: clamp(15px, 2.3vh, 22px);
    padding: 11px 13px;
    border: 1px solid #e0e8da;
    border-radius: 12px;
    background: #f7faf4;
}

body.login-page .security-icon {
    flex: 0 0 auto;
    width: 23px;
    height: 23px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: #547d49;
    background: #e5f1dc;
    font-size: 11px;
    font-weight: 800;
}

body.login-page .login-security-note p {
    margin: 0;
    color: #718075;
    font-size: 11px;
    line-height: 1.55;
}

body.login-page .login-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    margin-top: clamp(15px, 2.2vh, 22px);
    padding-top: clamp(13px, 2vh, 19px);
    border-top: 1px solid #e9eee5;
    color: #7b897e;
    font-size: 12px;
    text-align: center;
}

body.login-page .login-footer a {
    color: #5e8954;
    font-weight: 750;
    text-decoration: none;
}

body.login-page .login-footer a:hover {
    text-decoration: underline;
}

body.login-page .back-to-site {
    margin-top: clamp(13px, 2.2vh, 21px);
    color: #728276;
    font-size: 12px;
    text-decoration: none;
}

body.login-page .back-to-site:hover {
    color: #4f7950;
}

/* =====================================================
   PORTAL ORTAK SAYFA YAPISI
   ADMIN + MÜŞTERİ
===================================================== */

.portal-page {
    min-height: 100vh;
    color: var(--text);
    background: var(--background);
}

.portal-header {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding:
        13px max(
            22px,
            calc((100% - 1200px) / 2)
        );
    border-bottom: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.96);
}

.header-user {
    display: flex;
    align-items: center;
    gap: 14px;
}

.header-user-information {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-user-information strong {
    color: var(--text-dark);
}

.header-user-information small {
    margin-top: 3px;
    color: var(--muted);
}

.portal-container {
    width: min(1200px, calc(100% - 40px));
    margin: auto;
    padding: 46px 0 80px;
}

.project-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 30px;
}

.project-heading h1 {
    margin: 8px 0;
    color: var(--text-dark);
    font-size: clamp(30px, 4vw, 45px);
    letter-spacing: -1.3px;
}

.project-heading p {
    margin: 0;
    color: var(--muted);
}

.status-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 800;
}

.status-pill.active {
    color: var(--success);
    background: var(--success-soft);
}

.status-pill.passive {
    color: var(--danger);
    background: var(--danger-soft);
}

/* =====================================================
   ÖZET KARTLARI
===================================================== */

.summary-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.summary-card {
    position: relative;
    min-height: 132px;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.summary-card::before {
    position: absolute;
    inset: 0 auto auto 0;
    width: 100%;
    height: 4px;
    content: "";
    background:
        linear-gradient(
            90deg,
            var(--primary-green),
            #90b56e,
            var(--accent-yellow)
        );
}

.summary-card > span {
    display: block;
    margin-bottom: 13px;
    color: var(--muted);
    font-size: 14px;
}

.summary-card strong {
    color: var(--text-dark);
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -1px;
    overflow-wrap: anywhere;
}

.summary-card small {
    margin-left: 5px;
    color: var(--muted);
}

/* =====================================================
   İÇERİK KARTLARI
===================================================== */

.content-card {
    margin-top: 22px;
    padding: 27px;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.content-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.content-heading h2 {
    margin: 0 0 6px;
    color: var(--text-dark);
    font-size: 21px;
}

.content-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

/* =====================================================
   PROGRESS
===================================================== */

.progress-track {
    height: 12px;
    overflow: hidden;
    margin-top: 23px;
    border-radius: 99px;
    background: #e7eee2;
}

.progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background:
        linear-gradient(
            90deg,
            #5d9368 0%,
            #8bb46c 58%,
            #d0d66a 100%
        );
    box-shadow:
        0 3px 10px rgba(112, 158, 96, 0.22);
    transition: width 0.4s ease;
}

/* =====================================================
   LOG KAYITLARI
===================================================== */

.logs-container {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 24px;
}

.log-item {
    position: relative;
    display: grid;
    grid-template-columns: 135px 1fr auto;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 17px;
    background: var(--surface-soft);
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.log-item::before {
    position: absolute;
    top: 15px;
    bottom: 15px;
    left: 0;
    width: 3px;
    border-radius: 0 8px 8px 0;
    content: "";
    background:
        linear-gradient(
            180deg,
            #679869,
            #d0d66a
        );
}

.log-item:hover {
    transform: translateY(-1px);
    border-color: var(--border-dark);
    box-shadow:
        0 10px 28px rgba(67, 101, 73, 0.08);
}

.log-date-column {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.log-date-column strong {
    color: #2c4937;
}

.log-date-column span {
    color: var(--muted);
    font-size: 13px;
}

.log-content-column h3 {
    margin: 0 0 8px;
    color: #253f30;
    font-size: 17px;
}

.log-content-column p {
    margin: 0;
    color: #5f6f63;
    line-height: 1.65;
}

.next-step {
    display: flex;
    gap: 5px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e3eadf;
    color: #647367;
    font-size: 13px;
}

.log-badges {
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.hours-badge,
.status-badge {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    padding: 5px 9px;
    border-radius: 99px;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.hours-badge {
    color: #466d45;
    background: #e9f2e2;
}

.status-badge.analysis {
    color: #8b742f;
    background: #f8f0cd;
}

.status-badge.in-progress {
    color: #527c4f;
    background: #e8f1e1;
}

.status-badge.completed {
    color: #427353;
    background: #e3f2e7;
}

.status-badge.waiting {
    color: #9b6543;
    background: #f7eade;
}

.empty-state {
    margin-top: 24px;
    padding: 42px 20px;
    border: 1px dashed var(--border);
    border-radius: 17px;
    color: var(--muted);
    background: var(--surface-soft);
    text-align: center;
}

/* =====================================================
   CUSTOMER DASHBOARD
===================================================== */

body.customer-dashboard {
    color: #24392d;
    background:
        radial-gradient(
            circle at top right,
            rgba(218, 230, 124, 0.12),
            transparent 32%
        ),
        radial-gradient(
            circle at bottom left,
            rgba(126, 185, 139, 0.1),
            transparent 34%
        ),
        #f7faf3;
}

body.customer-dashboard .portal-header {
    min-height: 78px;
    border-bottom: 1px solid #dde7d8;
    background: rgba(255, 255, 255, 0.94);
    box-shadow:
        0 6px 24px rgba(54, 87, 61, 0.055);
    backdrop-filter: blur(12px);
}

body.customer-dashboard .dashboard-logo {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: #244331;
    text-decoration: none;
}

body.customer-dashboard .dashboard-logo-wrapper {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 3px;
    border: 1px solid #dce7d7;
    border-radius: 14px;
    background: #ffffff;
    box-shadow:
        0 8px 22px rgba(55, 91, 64, 0.12);
}

body.customer-dashboard .dashboard-logo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: contain;
    border-radius: 10px;
}

body.customer-dashboard .dashboard-logo .logo-text strong {
    color: #234230;
}

body.customer-dashboard .dashboard-logo .logo-text small {
    color: #748379;
}

body.customer-dashboard .portal-container {
    padding-top: 38px;
}

body.customer-dashboard .summary-card {
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.98),
            rgba(249, 252, 246, 0.98)
        );
    box-shadow:
        0 12px 34px rgba(63, 94, 69, 0.07);
}

body.customer-dashboard .content-card {
    background: rgba(255, 255, 255, 0.96);
    box-shadow:
        0 14px 38px rgba(60, 93, 67, 0.07);
}

body.customer-dashboard #progressPercentage {
    color: #5d8954;
}

body.customer-dashboard .status-pill.active {
    border: 1px solid #d5e5cc;
}

/* =====================================================
   ADMIN
===================================================== */

.admin-grid {
    display: grid;
    grid-template-columns:
        minmax(0, 1.15fr)
        minmax(320px, 0.85fr);
    gap: 22px;
    align-items: start;
}

.admin-grid .content-card {
    margin-top: 0;
}

.admin-log-list {
    display: flex;
    flex-direction: column;
    gap: 11px;
    margin-top: 23px;
}

.admin-log-item {
    display: flex;
    justify-content: space-between;
    gap: 13px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 13px;
    background: var(--surface-soft);
}

.admin-log-item > div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.admin-log-item strong {
    color: var(--text-dark);
}

.admin-log-item span {
    color: var(--muted);
    font-size: 12px;
}

/* =====================================================
   RESPONSIVE — GENEL
===================================================== */

@media (max-width: 900px) {
    .summary-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    .admin-grid {
        grid-template-columns: 1fr;
    }

    .log-item {
        grid-template-columns: 110px 1fr;
    }

    .log-badges {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 620px) {
    .portal-header {
        padding: 13px 12px;
    }

    .header-user-information {
        display: none;
    }

    .portal-container {
        width: calc(100% - 24px);
        padding: 30px 0 60px;
    }

    .project-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .summary-grid {
        gap: 10px;
    }

    .summary-card {
        min-height: 116px;
        padding: 18px 14px;
        border-radius: 16px;
    }

    .summary-card strong {
        font-size: 22px;
        line-height: 1.2;
    }

    .content-card {
        padding: 19px 15px;
        border-radius: 18px;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .log-item {
        grid-template-columns: 1fr;
        gap: 13px;
    }

    .log-badges {
        grid-column: auto;
        justify-content: flex-start;
    }

    .next-step {
        flex-direction: column;
    }

    body.customer-dashboard .portal-header {
        min-height: 70px;
    }

    body.customer-dashboard .dashboard-logo-wrapper {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    body.customer-dashboard .dashboard-logo .logo-text strong {
        font-size: 16px;
    }

    body.customer-dashboard .dashboard-logo .logo-text small {
        font-size: 10px;
    }

    body.customer-dashboard .portal-container {
        padding-top: 26px;
    }
}

/* =====================================================
   LOGIN RESPONSIVE
===================================================== */

@media (max-width: 1100px) {
    body.login-page .login-layout {
        grid-template-columns:
            minmax(420px, 1fr)
            minmax(400px, 0.9fr);
    }

    body.login-page .showcase-content {
        padding-inline: 42px;
    }

    body.login-page .feature-list {
        grid-template-columns: 1fr;
        max-width: 470px;
    }

    body.login-page .feature-item {
        min-height: auto;
        display: grid;
        grid-template-columns: 30px 1fr;
        column-gap: 13px;
    }

    body.login-page .feature-icon {
        grid-row: 1 / span 2;
        margin-bottom: 0;
    }
}

@media (max-height: 780px) and (min-width: 821px) {
    body.login-page .secure-badge {
        padding: 7px 11px;
    }

    body.login-page .showcase-main h1 {
        font-size: clamp(36px, 5.8vh, 55px);
    }

    body.login-page .feature-item {
        min-height: 105px;
        padding: 13px;
    }

    body.login-page .feature-icon {
        margin-bottom: 9px;
    }

    body.login-page .login-card {
        padding: 25px 30px;
    }

    body.login-page .login-security-note {
        margin-top: 13px;
    }

    body.login-page .login-footer {
        margin-top: 13px;
        padding-top: 13px;
    }
}

@media (max-height: 680px) and (min-width: 821px) {
    body.login-page .showcase-main {
        padding: 12px 0;
    }

    body.login-page .showcase-main h1 {
        margin: 10px 0;
        font-size: 42px;
    }

    body.login-page .showcase-main > p {
        font-size: 14px;
    }

    body.login-page .feature-list {
        margin-top: 17px;
    }

    body.login-page .feature-item {
        min-height: 90px;
    }

    body.login-page .feature-item small {
        display: none;
    }

    body.login-page .showcase-footer {
        font-size: 11px;
    }

    body.login-page .login-card-heading p,
    body.login-page .login-security-note {
        display: none;
    }

    body.login-page .login-card-heading {
        margin-bottom: 16px;
    }

    body.login-page .login-footer {
        margin-top: 11px;
        padding-top: 11px;
    }
}

@media (max-width: 820px) {
    body.login-page .login-layout {
        display: block;
    }

    body.login-page .login-showcase {
        display: none;
    }

    body.login-page .login-panel {
        height: 100vh;
        height: 100svh;
        justify-content: center;
        padding: 18px 16px;
    }

    body.login-page .mobile-logo {
        width: min(100%, 470px);
        display: block;
        margin-bottom: clamp(15px, 3vh, 25px);
    }

    body.login-page .login-card {
        width: min(100%, 470px);
        max-height: calc(100svh - 110px);
        padding:
            clamp(21px, 3.5vh, 31px)
            clamp(18px, 5vw, 28px);
    }

    body.login-page .back-to-site {
        display: none;
    }
}

@media (max-width: 820px) and (max-height: 720px) {
    body.login-page .mobile-logo {
        margin-bottom: 12px;
    }

    body.login-page .login-card {
        padding: 20px 18px;
    }

    body.login-page .login-card-heading {
        margin-bottom: 15px;
    }

    body.login-page .login-card-heading h2 {
        font-size: 24px;
    }

    body.login-page .login-card-heading p {
        display: none;
    }

    body.login-page .form-group {
        margin-bottom: 12px;
    }

    body.login-page .input-container input {
        min-height: 45px;
    }

    body.login-page .login-button {
        min-height: 45px;
    }

    body.login-page .login-security-note {
        display: none;
    }

    body.login-page .login-footer {
        margin-top: 12px;
        padding-top: 12px;
    }
}

@media (max-width: 420px) and (max-height: 650px) {
    body.login-page .mobile-logo {
        margin-bottom: 8px;
    }

    body.login-page .logo-image-wrapper.small {
        width: 39px;
        height: 39px;
        flex-basis: 39px;
    }

    body.login-page .logo-text strong {
        font-size: 15px;
    }

    body.login-page .logo-text small {
        font-size: 10px;
    }

    body.login-page .login-card {
        padding: 16px;
    }

    body.login-page .login-footer {
        display: none;
    }
}
/* =====================================================
   DASHBOARD LOG TABLOSU
===================================================== */

body.customer-dashboard .logs-table-card {
    overflow: visible;
}

body.customer-dashboard .logs-heading {
    margin-bottom: 22px;
}

/* TARİH FİLTRESİ */

body.customer-dashboard .log-filter-panel {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 18px;
    border: 1px solid #dde7d8;
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #f9fcf7,
            #f5f9f1
        );
}

body.customer-dashboard .log-filter-group {
    flex: 1;
    display: grid;
    grid-template-columns:
        repeat(3, minmax(150px, 220px));
    gap: 14px;
}

body.customer-dashboard .filter-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

body.customer-dashboard .filter-field label {
    color: #405a48;
    font-size: 12px;
    font-weight: 750;
}

body.customer-dashboard .filter-field input,
body.customer-dashboard .filter-field select {
    width: 100%;
    min-height: 43px;
    padding: 9px 11px;
    border: 1px solid #d7e2d2;
    border-radius: 11px;
    outline: none;
    color: #294132;
    background: #ffffff;
}

body.customer-dashboard .filter-field input:focus,
body.customer-dashboard .filter-field select:focus {
    border-color: #7fa66d;
    box-shadow:
        0 0 0 4px rgba(127, 166, 109, 0.13);
}

body.customer-dashboard .log-filter-actions {
    display: flex;
    gap: 9px;
}

body.customer-dashboard .filter-button {
    min-height: 43px;
    padding: 10px 17px;
}

body.customer-dashboard .filter-summary {
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid #dce8d6;
    border-radius: 12px;
    color: #506a57;
    background: #f3f8ef;
    font-size: 13px;
    line-height: 1.5;
}

/* TABLO */

body.customer-dashboard .logs-table-wrapper {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #dde7d8;
    border-radius: 16px;
}

body.customer-dashboard .logs-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: auto;
    background: #ffffff;
}

body.customer-dashboard .logs-table th {
    padding: 14px 15px;
    border-bottom: 1px solid #dce6d7;
    color: #46604e;
    background:
        linear-gradient(
            180deg,
            #f5f9f2,
            #eef5ea
        );
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.2px;
    text-align: left;
    white-space: nowrap;
}

body.customer-dashboard .logs-table td {
    padding: 15px;
    border-bottom: 1px solid #e7ede3;
    color: #526258;
    font-size: 13px;
    line-height: 1.5;
    vertical-align: top;
}

body.customer-dashboard .logs-table tbody tr:last-child td {
    border-bottom: 0;
}

body.customer-dashboard .logs-table tbody tr {
    transition:
        background 0.2s ease;
}

body.customer-dashboard .logs-table tbody tr:hover {
    background: #fafcf8;
}

body.customer-dashboard .table-date {
    color: #2e4a38;
    font-size: 13px;
    white-space: nowrap;
}

body.customer-dashboard .table-title {
    display: block;
    min-width: 130px;
    color: #294333;
    font-size: 13px;
}

body.customer-dashboard .table-item-badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 8px;
    border-radius: 999px;
    color: #55774f;
    background: #edf4e8;
    font-size: 11px;
    font-weight: 750;
    white-space: nowrap;
}

body.customer-dashboard .table-description {
    min-width: 240px;
    max-width: 470px;
}

body.customer-dashboard .table-description > span {
    display: block;
}

body.customer-dashboard .table-description small {
    display: block;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid #e6ece2;
    color: #718075;
    font-size: 11px;
}

/* PAGINATION */

body.customer-dashboard .pagination-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
}

body.customer-dashboard .pagination-summary {
    color: #758379;
    font-size: 12px;
}

body.customer-dashboard .pagination-controls,
body.customer-dashboard .page-numbers {
    display: flex;
    align-items: center;
    gap: 6px;
}

body.customer-dashboard .pagination-button {
    min-width: 35px;
    height: 35px;
    display: inline-grid;
    place-items: center;
    padding: 0 9px;
    border: 1px solid #d9e3d5;
    border-radius: 9px;
    color: #4f6a56;
    background: #ffffff;
    font-size: 13px;
    font-weight: 700;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

body.customer-dashboard .pagination-button:hover:not(:disabled) {
    transform: translateY(-1px);
    border-color: #9fba95;
    color: #31513b;
    background: #f4f8f1;
}

body.customer-dashboard .pagination-button.active {
    border-color: #6f9d69;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #5b9166,
            #8ab56c
        );
}

body.customer-dashboard .pagination-button:disabled {
    cursor: not-allowed;
    opacity: 0.42;
}

body.customer-dashboard .pagination-dots {
    min-width: 25px;
    color: #829086;
    text-align: center;
}

/* TABLET */

@media (max-width: 900px) {
    body.customer-dashboard .log-filter-panel {
        align-items: stretch;
        flex-direction: column;
    }

    body.customer-dashboard .log-filter-group {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));
    }

    body.customer-dashboard .log-filter-actions {
        justify-content: flex-end;
    }
}

/* MOBİL TABLO KART GÖRÜNÜMÜ */

@media (max-width: 680px) {
    body.customer-dashboard .log-filter-group {
        grid-template-columns: 1fr;
    }

    body.customer-dashboard .log-filter-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    body.customer-dashboard .filter-button {
        width: 100%;
    }

    body.customer-dashboard .logs-table-wrapper {
        overflow: visible;
        border: 0;
        border-radius: 0;
    }

    body.customer-dashboard .logs-table,
    body.customer-dashboard .logs-table thead,
    body.customer-dashboard .logs-table tbody,
    body.customer-dashboard .logs-table tr,
    body.customer-dashboard .logs-table th,
    body.customer-dashboard .logs-table td {
        display: block;
        width: 100%;
    }

    body.customer-dashboard .logs-table thead {
        display: none;
    }

    body.customer-dashboard .logs-table tbody {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    body.customer-dashboard .logs-table tbody tr {
        overflow: hidden;
        padding: 8px 14px;
        border: 1px solid #dfe8db;
        border-radius: 15px;
        background: #ffffff;
        box-shadow:
            0 8px 24px rgba(58, 91, 65, 0.06);
    }

    body.customer-dashboard .logs-table td {
        display: grid;
        grid-template-columns: 110px 1fr;
        gap: 12px;
        padding: 10px 0;
        border-bottom: 1px solid #e9eee6;
    }

    body.customer-dashboard .logs-table td:last-child {
        border-bottom: 0;
    }

    body.customer-dashboard .logs-table td::before {
        content: attr(data-label);
        color: #718075;
        font-size: 11px;
        font-weight: 800;
    }

    body.customer-dashboard .table-description {
        min-width: 0;
        max-width: none;
    }

    body.customer-dashboard .pagination-container {
        align-items: stretch;
        flex-direction: column;
    }

    body.customer-dashboard .pagination-summary {
        text-align: center;
    }

    body.customer-dashboard .pagination-controls {
        justify-content: center;
        flex-wrap: wrap;
    }
}
/* =====================================================
   HIZLI TARİH FİLTRELERİ
===================================================== */

body.customer-dashboard .log-filter-panel {
    display: block;
}

body.customer-dashboard .quick-filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #dfe8da;
    flex-wrap: wrap;
}

body.customer-dashboard .quick-filter-button {
    min-height: 36px;
    padding: 7px 13px;
    border: 1px solid #d7e2d2;
    border-radius: 999px;
    color: #58705e;
    background: #ffffff;
    font-size: 12px;
    font-weight: 750;
    transition:
        color 0.2s ease,
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

body.customer-dashboard
.quick-filter-button:hover {
    transform: translateY(-1px);
    border-color: #9cb994;
    color: #35553d;
    background: #f5f9f2;
}

body.customer-dashboard
.quick-filter-button.active {
    border-color: #789f6e;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #5d9166,
            #8eb56d
        );
    box-shadow:
        0 7px 18px
        rgba(88, 139, 91, 0.19);
}

body.customer-dashboard .log-filter-main {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 900px) {
    body.customer-dashboard
    .log-filter-main {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (max-width: 680px) {
    body.customer-dashboard
    .quick-filter-group {
        display: grid;
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

    body.customer-dashboard
    .quick-filter-button {
        width: 100%;
    }
}

body.customer-dashboard .export-button {
    border: 1px solid #d5dfcf;
    color: #46654d;
    background: #ffffff;
}

body.customer-dashboard .export-button:hover {
    border-color: #98b28e;
    color: #ffffff;
    background:
        linear-gradient(
            135deg,
            #527f5b,
            #84aa67
        );
}

@media (max-width: 680px) {
    body.customer-dashboard
    .log-filter-actions {
        grid-template-columns:
            1fr 1fr;
    }

    body.customer-dashboard
    .export-button {
        grid-column: 1 / -1;
    }
}