﻿/* ============================================================
   TRACK PAGE — FULLSCREEN HERO LAYOUT
   ============================================================ */

.track-wrap {
    position: relative;
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
    overflow: hidden;
    margin: 0;
}

    /* Arxa fon şəkili */
    .track-wrap::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background-image: url('/Client/css/657448.jpg');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        filter: brightness(0.45);
        z-index: 0;
    }

    /* Qaranlıq gradient overlay */
    .track-wrap::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(10, 37, 64, 0.5) 0%, rgba(11, 95, 255, 0.3) 100%);
        z-index: 1;
    }

    /* === LOQO === */
    .track-wrap .imageforlogo {
        display: block;
        position: relative;
        z-index: 10;
        width: 220px;
        max-width: 70%;
        height: auto;
        margin: 0 auto 32px auto;
        filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.5));
    }

    /* === FORMA KART === */
    .track-wrap .content {
        position: relative;
        z-index: 10;
        background: rgba(255, 255, 255, 0.97);
        padding: 40px 36px;
        border-radius: 20px;
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.4);
        text-align: center;
        width: 100%;
        max-width: 460px;
        backdrop-filter: blur(15px);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }

        .track-wrap .content::before {
            content: 'Müştəri nömrəsi ilə yükünüzü izləyin';
            display: block;
            font-size: 18px;
            font-weight: 700;
            color: #0f1e36;
            margin-bottom: 6px;
        }

        .track-wrap .content::after {
            content: 'Sizə təqdim olunmuş müştəri nömrəsini daxil edin';
            display: block;
            font-size: 14px;
            color: #64748b;
            margin-bottom: 24px;
        }

        /* === INPUT === */
        .track-wrap .content .input {
            width: 100%;
            padding: 16px 20px;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            margin-bottom: 16px;
            font-size: 16px;
            box-sizing: border-box;
            transition: all 0.2s;
            background: #f8fafc;
            color: #0f1e36;
            font-family: inherit;
        }

            .track-wrap .content .input:focus {
                outline: none;
                border-color: #0b5fff;
                background: white;
                box-shadow: 0 0 0 4px rgba(11, 95, 255, 0.1);
            }

        /* === BUTTON === */
        .track-wrap .content .btn {
            width: 100%;
            padding: 16px 24px;
            background: linear-gradient(135deg, #0b5fff 0%, #0846c4 100%);
            color: white;
            border: none;
            border-radius: 12px;
            cursor: pointer;
            font-size: 16px;
            font-weight: 700;
            letter-spacing: 0.3px;
            transition: all 0.2s;
            box-shadow: 0 8px 20px rgba(11, 95, 255, 0.3);
            font-family: inherit;
        }

            .track-wrap .content .btn:hover {
                transform: translateY(-2px);
                box-shadow: 0 12px 30px rgba(11, 95, 255, 0.5);
                background: linear-gradient(135deg, #0846c4 0%, #0b5fff 100%);
            }

            .track-wrap .content .btn:active {
                transform: translateY(0);
            }

/* === BACK HOME LINK === */
.back-home {
    position: relative;
    z-index: 10;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    transition: all 0.2s;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

    .back-home:hover {
        opacity: 1;
        color: white;
        background: rgba(255, 255, 255, 0.2);
        text-decoration: none;
    }

/* === FOOTER COPYRIGHT === */
.track-wrap .footkam {
    position: relative;
    z-index: 10;
    margin-top: 32px;
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    left: auto;
    top: auto;
    bottom: auto;
    transform: none;
}

/* ============================================================
   MOBILE (< 576px)
   ============================================================ */
@media (max-width: 576px) {
    .track-wrap {
        padding: 30px 16px;
    }

        .track-wrap .imageforlogo {
            width: 160px;
            max-width: 60%;
            margin-bottom: 24px;
        }

        .track-wrap .content {
            padding: 32px 24px;
            max-width: 100%;
            border-radius: 16px;
        }

            .track-wrap .content::before {
                font-size: 16px;
            }

            .track-wrap .content::after {
                font-size: 13px;
                margin-bottom: 20px;
            }

            .track-wrap .content .input {
                font-size: 15px;
                padding: 14px 16px;
            }

            .track-wrap .content .btn {
                font-size: 15px;
                padding: 14px 20px;
            }

        .track-wrap .footkam {
            font-size: 12px;
            margin-top: 24px;
        }

    .back-home {
        font-size: 13px;
        padding: 6px 14px;
    }
}

/* ============================================================
   TABLET (576-992px)
   ============================================================ */
@media (min-width: 576px) and (max-width: 992px) {
    .track-wrap .imageforlogo {
        width: 190px;
        max-width: 50%;
    }

    .track-wrap .content {
        max-width: 440px;
    }
}

/* ============================================================
   LARGE DESKTOP (≥ 1400px)
   ============================================================ */
@media (min-width: 1400px) {
    .track-wrap .imageforlogo {
        width: 240px;
        margin-bottom: 40px;
    }

    .track-wrap .content {
        max-width: 500px;
        padding: 48px 40px;
    }
}
/* ============================================================
   CLIENT LIST TABLE — Modern data table
   ============================================================ */

.main-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #f0f4ff 0%, #e8efff 100%);
    padding: 40px 20px;
    box-sizing: border-box;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === HEADER === */
.page-header {
    max-width: 1400px;
    margin: 0 auto 32px auto;
    text-align: center;
}

.header-title {
    font-size: 26px;
    font-weight: 800;
    color: #0f1e36;
    margin: 0;
    padding: 24px 32px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(11, 95, 255, 0.08);
    border: 1px solid #e2e8f0;
    line-height: 1.4;
    word-break: break-word;
}

/* === CONTENT === */
.content-container {
    max-width: 1400px;
    margin: 0 auto;
}

.table-wrapper {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(11, 95, 255, 0.1);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

/* === SCROLL WRAPPER (cədvəl mobile-də sürüşür) === */
.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* === DATA TABLE === */
.data-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
    font-size: 14.5px;
}

    /* === TABLE HEADER === */
    .data-table .table-header {
        background: linear-gradient(135deg, #0b5fff 0%, #0846c4 100%);
    }

    .data-table .header-cell {
        padding: 18px 16px;
        text-align: left;
        font-weight: 700;
        color: white;
        font-size: 13px;
        letter-spacing: 0.4px;
        text-transform: uppercase;
        white-space: nowrap;
        border-bottom: none;
        position: sticky;
        top: 0;
        z-index: 1;
    }

        .data-table .header-cell:first-child {
            padding-left: 28px;
        }

        .data-table .header-cell:last-child {
            padding-right: 28px;
        }

    /* Hər foreach üçün ayrı thead olduğundan ikinciləri gizlət */
    .data-table thead.table-header:not(:first-of-type) {
        display: none;
    }

    /* === TABLE BODY === */
    .data-table .table-body {
        background: white;
    }

    .data-table .table-row {
        transition: background 0.15s ease;
        border-bottom: 1px solid #f1f5f9;
    }

        .data-table .table-row:hover {
            background: #f8fafc;
        }

        .data-table .table-row:last-child {
            border-bottom: none;
        }

    .data-table .table-cell {
        padding: 16px;
        color: #1e293b;
        font-size: 14.5px;
        vertical-align: middle;
        white-space: nowrap;
    }

        .data-table .table-cell:first-child {
            padding-left: 28px;
            font-weight: 600;
            color: #0f1e36;
        }

        .data-table .table-cell:last-child {
            padding-right: 28px;
        }

        /* === STATUS TAGS (2-ci sütun: Gəliş Növü) === */
        .data-table .table-cell:nth-child(2) {
            font-weight: 600;
        }

        /* === EMPTY VALUE ("----") === */
        .data-table .table-cell:has-text("----") {
            color: #cbd5e1;
        }

    /* === ZEBRA STRIPING === */
    .data-table .table-row:nth-child(even) {
        background: #fafbfc;
    }

        .data-table .table-row:nth-child(even):hover {
            background: #f1f5f9;
        }

/* ============================================================
   ERROR PAGE (Yük tapılmadı)
   ============================================================ */
.errorkk {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
    color: white;
    text-align: center;
    padding: 40px 20px;
    box-sizing: border-box;
    gap: 16px;
}

    .errorkk h1 {
        font-size: 32px !important;
        font-weight: 800;
        margin: 0 0 8px 0;
    }

    .errorkk p {
        font-size: 17px !important;
        margin: 0 0 24px 0;
        max-width: 500px;
        opacity: 0.95;
        line-height: 1.6;
    }

    .errorkk button {
        padding: 14px 32px !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        cursor: pointer;
        background: white !important;
        color: #b91c1c !important;
        border: none !important;
        border-radius: 12px !important;
        transition: all 0.2s;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }

        .errorkk button:hover {
            transform: translateY(-2px);
            box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
        }

/* ============================================================
   RESPONSIVE — Mobile (< 768px)
   ============================================================ */
@media (max-width: 768px) {
    .main-container {
        padding: 24px 12px;
    }

    .header-title {
        font-size: 18px;
        padding: 18px 20px;
        border-radius: 16px;
    }

    .data-table {
        font-size: 13.5px;
    }

        .data-table .header-cell {
            padding: 14px 12px;
            font-size: 11.5px;
        }

            .data-table .header-cell:first-child,
            .data-table .table-cell:first-child {
                padding-left: 16px;
            }

            .data-table .header-cell:last-child,
            .data-table .table-cell:last-child {
                padding-right: 16px;
            }

        .data-table .table-cell {
            padding: 12px;
        }

    .table-wrapper {
        border-radius: 16px;
    }

    .errorkk h1 {
        font-size: 24px !important;
    }

    .errorkk p {
        font-size: 15px !important;
    }
}

/* ============================================================
   Large desktop (≥ 1400px)
   ============================================================ */
@media (min-width: 1400px) {
    .header-title {
        font-size: 28px;
        padding: 28px 36px;
    }

    .data-table {
        font-size: 15px;
    }

        .data-table .header-cell {
            padding: 20px 18px;
        }

        .data-table .table-cell {
            padding: 18px;
        }
}

/* ============================================================
   Smooth scroll indicator (mobile)
   ============================================================ */
@media (max-width: 768px) {
    .table-wrapper {
        position: relative;
    }

        .table-wrapper::after {
            content: '→';
            position: absolute;
            top: 50%;
            right: 8px;
            transform: translateY(-50%);
            font-size: 20px;
            color: #94a3b8;
            opacity: 0.5;
            pointer-events: none;
            animation: scrollHint 2s ease-in-out infinite;
        }

    @keyframes scrollHint {
        0%, 100% {
            transform: translateY(-50%) translateX(0);
            opacity: 0.3;
        }

        50% {
            transform: translateY(-50%) translateX(-6px);
            opacity: 0.8;
        }
    }
}