:root {
    --primary-dark: #07586a;
    --primary: #0b8f94;
    --primary-light: #39bbb6;

    --background: #f3f7f8;
    --surface: #ffffff;
    --surface-soft: #f7fafb;

    --text: #18242d;
    --muted: #667580;

    --border: #dce5e8;
    --border-dark: #cbd7db;

    --success: #43a65c;
    --success-dark: #24753a;

    --warning: #e4b83d;
    --warning-dark: #785d08;

    --danger: #d9534f;

    --shadow:
        0 4px 12px rgba(22, 47, 58, 0.10),
        0 1px 3px rgba(22, 47, 58, 0.08);

    --radius: 8px;
}

/*
|--------------------------------------------------------------------------
| TEMEL
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    min-height: 100vh;
    margin: 0;

    display: flex;
    flex-direction: column;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(11, 143, 148, 0.05),
            transparent 360px
        ),
        var(--background);

    color: var(--text);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

.sr-only {
    position: absolute;

    width: 1px;
    height: 1px;

    padding: 0;
    margin: -1px;

    overflow: hidden;
    clip: rect(0, 0, 0, 0);

    white-space: nowrap;
    border: 0;
}

/*
|--------------------------------------------------------------------------
| ÜST BAR
|--------------------------------------------------------------------------
*/

.topbar {
    width: 100%;

    background:
        linear-gradient(
            110deg,
            var(--primary-dark) 0%,
            var(--primary) 55%,
            var(--primary-light) 100%
        );

    border-bottom: 1px solid rgba(255, 255, 255, 0.22);

    box-shadow:
        0 3px 10px rgba(18, 57, 67, 0.16);

    color: #ffffff;
}

.topbar-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 92px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;

    gap: 11px;

    color: #ffffff;
    text-decoration: none;
}

.brand-logo {
    width: 58px;
    height: 58px;

    object-fit: contain;

    filter:
        drop-shadow(
            0 1px 2px rgba(0, 0, 0, 0.16)
        );
}

.brand-text {
    display: flex;
    flex-direction: column;

    line-height: 1;
    letter-spacing: 2px;
}

.brand-text strong {
    font-size: 23px;
    font-weight: 800;
}

.brand-text span {
    margin-top: 5px;

    font-size: 11px;
    font-weight: 600;

    letter-spacing: 4px;
}

.topbar-title {
    font-size: 15px;
    font-weight: 600;

    opacity: 0.92;
}

/*
|--------------------------------------------------------------------------
| ANA SAYFA
|--------------------------------------------------------------------------
*/

.page {
    width: min(920px, calc(100% - 32px));

    flex: 1;

    margin: 22px auto 42px;
}

/*
|--------------------------------------------------------------------------
| ARAMA
|--------------------------------------------------------------------------
*/

.search-panel {
    margin-bottom: 16px;

    padding: 6px;

    background: var(--surface);

    border: 1px solid var(--border-dark);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.search-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 152px;

    align-items: stretch;

    gap: 8px;
}

.search-form input {
    width: 100%;
    min-width: 0;

    height: 50px;

    padding: 0 17px;

    background: #ffffff;

    border: 1px solid var(--border-dark);
    border-radius: 5px;

    color: var(--text);
    font-size: 16px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.search-form input::placeholder {
    color: #84929a;
}

.search-form input:focus {
    border-color: var(--primary);

    box-shadow:
        0 0 0 3px rgba(11, 143, 148, 0.14);
}

.search-form button {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    padding: 0 24px;

    background:
        linear-gradient(
            180deg,
            #197e8f,
            #0d6476
        );

    border: 0;
    border-radius: 5px;

    color: #ffffff;
    font-weight: 700;

    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    transition:
        transform 0.15s ease,
        filter 0.15s ease;
}

.search-form button:hover {
    filter: brightness(1.07);
}

.search-form button:active {
    transform: translateY(1px);
}

.search-icon {
    font-size: 22px;
    line-height: 1;
}

/*
|--------------------------------------------------------------------------
| SERVİS KARTI
|--------------------------------------------------------------------------
*/

.service-card {
    overflow: hidden;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.service-status {
    width: fit-content;

    margin: 15px auto 9px;

    padding: 7px 14px;

    border-radius: 999px;

    font-size: 13px;
    font-weight: 800;

    letter-spacing: 0.2px;
}

.status-closed {
    background: var(--success);
    color: #ffffff;

    box-shadow:
        0 2px 5px rgba(67, 166, 92, 0.24);
}

.status-open {
    background: #efb63a;
    color: #3d2d00;

    box-shadow:
        0 2px 5px rgba(239, 182, 58, 0.25);
}

.status-waiting {
    background: #377fca;
    color: #ffffff;

    box-shadow:
        0 2px 5px rgba(55, 127, 202, 0.24);
}

.service-columns {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);

    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.product-section,
.timeline-section {
    min-width: 0;

    padding: 17px 20px 20px;
}

.product-section {
    border-right: 1px solid var(--border);
}

.product-section h2,
.timeline-section h2 {
    margin: 0 0 13px;

    font-size: 18px;
    font-weight: 750;
}

.product-name {
    margin-bottom: 18px;
}

.product-name span,
.detail-item span,
.resolution-item span {
    display: block;

    margin-bottom: 5px;

    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.product-name strong {
    display: block;

    font-size: 18px;
    line-height: 1.28;
}

.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;

    gap: 13px 22px;
}

.detail-item {
    min-width: 0;
}

.detail-item strong,
.inline-new-serial {
    display: block;

    overflow-wrap: anywhere;

    font-size: 14px;
    font-weight: 650;

    line-height: 1.35;
}

.detail-full {
    grid-column: 1 / -1;
}

.inline-new-serial {
    color: var(--primary-dark);
    text-decoration: none;
}

.inline-new-serial:hover {
    text-decoration: underline;
}

/*
|--------------------------------------------------------------------------
| SERVİS TABLOSU
|--------------------------------------------------------------------------
*/

.table-wrapper {
    overflow-x: auto;
}

.service-table {
    width: 100%;

    border-collapse: collapse;

    font-size: 13px;
}

.service-table th,
.service-table td {
    padding: 10px 8px;

    border: 1px solid var(--border);

    text-align: left;
    vertical-align: middle;
}

.service-table th {
    background: #f0f4f5;

    color: #34434b;
    font-weight: 700;
}

.service-table td {
    background: #ffffff;
    font-weight: 500;
}

.fault-section {
    margin-top: 15px;
}

.fault-section h3 {
    margin: 0 0 8px;

    font-size: 15px;
}

.fault-section p {
    margin: 0;

    color: #5c6971;
    font-size: 14px;

    line-height: 1.55;
}

/*
|--------------------------------------------------------------------------
| ÇÖZÜM VE YENİ SERİ
|--------------------------------------------------------------------------
*/

.resolution-strip {
    margin: 14px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(240px, 0.72fr);

    align-items: stretch;

    overflow: hidden;

    background:
        linear-gradient(
            100deg,
            #f9fbf8,
            #e4f7f6
        );

    border: 2px solid #dfc24e;
    border-radius: 8px;

    box-shadow:
        inset 0 0 12px rgba(255, 255, 255, 0.68);
}

.resolution-item {
    min-width: 0;

    padding: 13px 15px;
}

.resolution-item strong {
    display: block;

    overflow-wrap: anywhere;

    font-size: 15px;
    line-height: 1.4;
}

.resolution-divider {
    width: 1px;
    margin: 9px 0;

    background: rgba(109, 133, 140, 0.22);
}

.serial-actions {
    display: flex;
    align-items: center;

    gap: 8px;
}

.new-serial-link {
    overflow-wrap: anywhere;

    color: #075d6c;
    font-size: 17px;
    font-weight: 800;

    text-decoration: none;
}

.new-serial-link:hover {
    text-decoration: underline;
}

.copy-button {
    width: 32px;
    height: 32px;

    flex: 0 0 32px;

    padding: 0;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: transparent;

    border: 0;
    border-radius: 5px;

    color: var(--primary-dark);
    font-size: 20px;

    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.copy-button:hover {
    background: rgba(11, 143, 148, 0.11);
}

.copy-button.copied {
    background: var(--success);
    color: #ffffff;
}

/*
|--------------------------------------------------------------------------
| KART ALT AKSİYONLARI
|--------------------------------------------------------------------------
*/

.service-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;

    gap: 9px;

    padding: 0 14px 14px;
}

.secondary-button,
.primary-link {
    min-height: 38px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 0 17px;

    border-radius: 5px;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none;
}

.secondary-button {
    background: #ffffff;

    border: 1px solid var(--border-dark);

    color: #43535c;
}

.secondary-button:hover {
    background: #f5f8f9;
}

.primary-link {
    background: var(--primary);

    color: #ffffff;
}

.primary-link:hover {
    filter: brightness(0.94);
}

/*
|--------------------------------------------------------------------------
| MESAJLAR
|--------------------------------------------------------------------------
*/

.message-card {
    padding: 20px;

    display: flex;
    align-items: flex-start;

    gap: 14px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.message-icon {
    width: 34px;
    height: 34px;

    flex: 0 0 34px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    font-size: 18px;
    font-weight: 800;
}

.message-card strong {
    display: block;

    margin-bottom: 5px;

    font-size: 16px;
}

.message-card p {
    margin: 0;

    color: var(--muted);
    line-height: 1.5;
}

.message-warning {
    border-left: 5px solid var(--warning);
}

.message-warning .message-icon {
    background: #fff1bd;
    color: var(--warning-dark);
}

.message-error {
    border-left: 5px solid var(--danger);
}

.message-error .message-icon {
    background: #ffe3e2;
    color: #9f2925;
}

/*
|--------------------------------------------------------------------------
| KARŞILAMA
|--------------------------------------------------------------------------
*/

.welcome-card {
    padding: 30px;

    background: #ffffff;

    border: 1px solid var(--border);
    border-radius: var(--radius);

    box-shadow: var(--shadow);
}

.welcome-card > h1 {
    margin: 0 0 9px;

    font-size: 23px;
}

.welcome-card > p {
    max-width: 680px;

    margin: 0;

    color: var(--muted);
    line-height: 1.55;
}

.welcome-steps {
    margin-top: 24px;

    display: grid;
    grid-template-columns: repeat(3, 1fr);

    gap: 14px;
}

.welcome-step {
    min-width: 0;

    padding: 16px;

    display: flex;
    align-items: flex-start;

    gap: 12px;

    background: var(--surface-soft);

    border: 1px solid var(--border);
    border-radius: 7px;
}

.welcome-step > span {
    width: 31px;
    height: 31px;

    flex: 0 0 31px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    background: var(--primary);

    border-radius: 50%;

    color: #ffffff;
    font-weight: 800;
}

.welcome-step strong {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
}

.welcome-step p {
    margin: 0;

    color: var(--muted);
    font-size: 13px;

    line-height: 1.4;
}

/*
|--------------------------------------------------------------------------
| FOOTER
|--------------------------------------------------------------------------
*/

.site-footer {
    margin-top: auto;

    background: #ffffff;

    border-top: 1px solid var(--border);
}

.footer-inner {
    width: min(1180px, calc(100% - 36px));
    min-height: 104px;

    margin: 0 auto;

    display: grid;
    grid-template-columns: 1fr auto 1fr;

    align-items: center;

    gap: 26px;
}

.footer-copyright {
    color: #35444c;
    font-size: 13px;
}

.footer-logo {
    width: 54px;
    height: 54px;

    object-fit: contain;
}

.footer-links {
    display: flex;
    justify-content: flex-end;

    gap: 18px;
}

.footer-links a,
.footer-links button {
    padding: 0;

    background: transparent;

    border: 0;

    color: #35444c;
    font-size: 13px;

    text-decoration: none;
}

.footer-links a:hover,
.footer-links button:hover {
    color: var(--primary);
}

/*
|--------------------------------------------------------------------------
| RESPONSIVE
|--------------------------------------------------------------------------
*/

@media (max-width: 760px) {

    .topbar-inner {
        min-height: 80px;
    }

    .brand-logo {
        width: 49px;
        height: 49px;
    }

    .brand-text strong {
        font-size: 19px;
    }

    .topbar-title {
        display: none;
    }

    .page {
        width: min(100% - 22px, 920px);

        margin-top: 14px;
    }

    .search-form {
        grid-template-columns: 1fr;
    }

    .search-form button {
        min-height: 46px;
    }

    .service-columns {
        grid-template-columns: 1fr;
    }

    .product-section {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .resolution-strip {
        grid-template-columns: 1fr;
    }

    .resolution-divider {
        width: auto;
        height: 1px;

        margin: 0 12px;
    }

    .welcome-steps {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        grid-template-columns: 1fr;

        padding: 22px 0;

        justify-items: center;
        text-align: center;

        gap: 14px;
    }

    .footer-links {
        justify-content: center;
    }

}

@media (max-width: 480px) {

    .brand-text {
        display: none;
    }

    .product-detail-grid {
        grid-template-columns: 1fr;
    }

    .detail-full {
        grid-column: auto;
    }

    .product-section,
    .timeline-section {
        padding: 15px;
    }

    .service-table {
        min-width: 440px;
    }

    .service-actions {
        justify-content: stretch;
    }

    .secondary-button,
    .primary-link {
        flex: 1;
    }

}

/*
|--------------------------------------------------------------------------
| YAZDIRMA
|--------------------------------------------------------------------------
*/

@media print {

    body {
        display: block;

        background: #ffffff;
    }

    .topbar,
    .search-panel,
    .site-footer,
    .service-actions,
    .copy-button {
        display: none !important;
    }

    .page {
        width: 100%;
        max-width: none;

        margin: 0;
        padding: 0;
    }

    .service-card {
        box-shadow: none;

        border: 1px solid #999;
    }

}