/* =====================================================
   ZFileo - DASHBOARD
===================================================== */

* {
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    margin: 0;

    background: #f7f7fb;

    color: #151515;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    min-height: 100vh;
}



/* =====================================================
   HEADER
===================================================== */

.dashboard-header {

    width: 100%;

    height: 86px;

    background: #ffffff;

    border-bottom:
        1px solid #e6e6ed;

    position: sticky;

    top: 0;

    z-index: 100;
}


.header-inner {

    width: min(
        1180px,
        calc(100% - 40px)
    );

    height: 100%;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;
}



/* =====================================================
   BRAND
===================================================== */

.brand-logo {

    display: inline-flex;

    align-items: center;

    gap: 11px;

    text-decoration: none;

    color: #151515;

    font-size: 25px;

    font-weight: 700;

    letter-spacing: -0.5px;
}


.brand-logo img {

    width: 45px;

    height: 45px;

    object-fit: contain;

    display: block;
}


.brand-logo:hover {

    color: #151515;

    text-decoration: none;
}



/* =====================================================
   NAVIGATION
===================================================== */

.dashboard-nav {

    display: flex;

    align-items: center;

    gap: 10px;
}


.nav-button {

    height: 44px;

    padding:
        0 20px;

    border-radius: 10px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    font-size: 14px;

    font-weight: 600;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}


.home-button {

    background: #ffffff;

    color: #222;

    border:
        1px solid #dcdce5;
}


.home-button:hover {

    background: #f5f5ff;

    border-color: #5b5cf0;

    color: #5b5cf0;
}


.logout-button {

    background: #ffffff;

    color: #222;

    border:
        1px solid #dcdce5;
}


.logout-button:hover {

    background: #fff5f5;

    border-color: #e1a3a3;

    color: #b42318;
}



/* =====================================================
   MAIN
===================================================== */

.dashboard-main {

    width: 100%;

    padding:
        38px 0 70px;
}


.dashboard-container {

    width: min(
        1110px,
        calc(100% - 40px)
    );

    margin: 0 auto;
}



/* =====================================================
   WELCOME CARD
===================================================== */

.welcome-card {

    width: 100%;

    background: #ffffff;

    border:
        1px solid #e5e5ec;

    border-radius: 18px;

    padding:
        32px 34px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    box-shadow:
        0 8px 30px rgba(
            20,
            20,
            50,
            0.04
        );
}


.welcome-left {

    display: flex;

    align-items: center;

    gap: 22px;
}


.profile-avatar {

    width: 84px;

    height: 84px;

    flex-shrink: 0;

    border-radius: 50%;

    background: #ededff;

    color: #5b5cf0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 35px;

    font-weight: 700;
}


.welcome-label {

    margin:
        0 0 7px;

    color: #5d6270;

    font-size: 15px;
}


.welcome-content h1 {

    margin: 0;

    font-size: 34px;

    line-height: 1.1;

    letter-spacing: -1px;
}


.user-email {

    margin:
        9px 0 0;

    color: #697080;

    font-size: 15px;

    word-break: break-word;
}


.account-badge {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    padding:
        9px 14px;

    border-radius: 999px;

    background: #f1faf4;

    color: #20753c;

    font-size: 13px;

    font-weight: 700;
}


.status-dot {

    width: 8px;

    height: 8px;

    border-radius: 50%;

    background: #25a244;
}



/* =====================================================
   SECTION
===================================================== */

.section-block {

    margin-top: 34px;
}


.section-heading {

    margin-bottom: 18px;
}


.section-kicker {

    margin:
        0 0 5px;

    color: #5b5cf0;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 1.3px;
}


.section-heading h2 {

    margin: 0;

    font-size: 23px;

    letter-spacing: -0.4px;
}


.section-description {

    margin:
        7px 0 0;

    color: #737886;

    font-size: 14px;

    line-height: 1.6;
}



/* =====================================================
   STATS
===================================================== */

.stats-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap: 15px;
}


.stat-card {

    background: #ffffff;

    border:
        1px solid #e5e5ec;

    border-radius: 15px;

    padding: 20px;

    min-height: 115px;

    display: flex;

    align-items: center;

    gap: 15px;

    box-shadow:
        0 5px 20px rgba(
            20,
            20,
            50,
            0.025
        );
}


.stat-icon {

    width: 43px;

    height: 43px;

    flex-shrink: 0;

    border-radius: 11px;

    background: #f0f0ff;

    color: #5b5cf0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 19px;

    font-weight: 700;
}


.stat-content p {

    margin: 0 0 7px;

    color: #737886;

    font-size: 12px;

    line-height: 1.3;
}


.stat-content strong {

    display: block;

    font-size: 22px;

    color: #17181c;
}



/* =====================================================
   QUICK TOOLS
===================================================== */

.quick-tools-grid {

    display: grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap: 15px;
}


.tool-card {

    position: relative;

    display: flex;

    align-items: center;

    gap: 16px;

    min-height: 110px;

    padding: 20px 22px;

    background: #ffffff;

    border:
        1px solid #e5e5ec;

    border-radius: 15px;

    text-decoration: none;

    color: #151515;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}


.tool-card:hover {

    transform: translateY(-2px);

    border-color: #c9c9f7;

    box-shadow:
        0 9px 25px rgba(
            20,
            20,
            50,
            0.06
        );
}


.tool-icon {

    width: 52px;

    height: 52px;

    flex-shrink: 0;

    border-radius: 13px;

    background: #f0f0ff;

    color: #5b5cf0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.5px;
}


.tool-card h3 {

    margin:
        0 0 5px;

    font-size: 16px;
}


.tool-card p {

    margin: 0;

    color: #747986;

    font-size: 13px;

    line-height: 1.5;

    padding-right: 25px;
}


.tool-arrow {

    position: absolute;

    right: 20px;

    top: 50%;

    transform:
        translateY(-50%);

    color: #8b8d98;

    font-size: 20px;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}


.tool-card:hover .tool-arrow {

    color: #5b5cf0;

    transform:
        translate(
            3px,
            -50%
        );
}



/* =====================================================
   RECENT CONVERSIONS
===================================================== */

.recent-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 20px;
}


.clear-button {

    border: 0;

    background: transparent;

    color: #666b78;

    font-size: 13px;

    font-weight: 600;

    cursor: pointer;

    padding: 7px 0;
}


.clear-button:hover {

    color: #b42318;
}


.recent-card {

    width: 100%;

    min-height: 270px;

    background: #ffffff;

    border:
        1px solid #e5e5ec;

    border-radius: 16px;

    display: flex;

    align-items: center;

    justify-content: center;

    padding: 0;

    overflow: hidden;

    box-shadow:
        0 5px 20px rgba(
            20,
            20,
            50,
            0.025
        );
}



/* =====================================================
   EMPTY STATE
===================================================== */

.empty-state {

    max-width: 430px;

    text-align: center;

    padding: 35px;
}


.empty-icon {

    width: 58px;

    height: 58px;

    margin:
        0 auto 16px;

    border-radius: 16px;

    background: #f0f0ff;

    color: #5b5cf0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;

    font-weight: 700;
}


.empty-state h3 {

    margin:
        0 0 8px;

    font-size: 18px;
}


.empty-state p {

    margin:
        0 auto 20px;

    color: #747986;

    font-size: 14px;

    line-height: 1.6;
}


.primary-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 43px;

    padding:
        0 19px;

    border-radius: 9px;

    background: #5b5cf0;

    color: #ffffff;

    text-decoration: none;

    font-size: 14px;

    font-weight: 700;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.primary-button:hover {

    background: #4e4fdc;

    transform:
        translateY(-1px);
}



/* =====================================================
   RECENT CONVERSIONS TABLE
===================================================== */

.conversion-table-wrapper {

    width: 100%;

    overflow-x: auto;

    overflow-y: hidden;

    align-self: stretch;

    -webkit-overflow-scrolling: touch;

    scrollbar-width: none;
}


.conversion-table-wrapper::-webkit-scrollbar {

    display: none;

    width: 0;

    height: 0;
}


.conversion-table {

    width: 100%;

    min-width: 900px;

    border-collapse: collapse;

    table-layout: fixed;
}


.conversion-table thead {

    background: #fafaff;
}


.conversion-table th {

    padding:
        15px 16px;

    border-bottom:
        1px solid #e8e8ef;

    color: #747986;

    font-size: 11px;

    font-weight: 800;

    letter-spacing: 0.5px;

    text-align: left;

    white-space: nowrap;

    text-transform: uppercase;
}


.conversion-table td {

    padding:
        17px 16px;

    border-bottom:
        1px solid #eeeeF3;

    color: #25262b;

    font-size: 13px;

    vertical-align: middle;
}


.conversion-table tbody tr:last-child td {

    border-bottom: 0;
}


.conversion-table tbody tr:hover {

    background: #fcfcff;
}



/* =====================================================
   TABLE COLUMN WIDTHS
===================================================== */

.conversion-table th:nth-child(1),
.conversion-table td:nth-child(1) {

    width: 28%;
}


.conversion-table th:nth-child(2),
.conversion-table td:nth-child(2) {

    width: 17%;
}


.conversion-table th:nth-child(3),
.conversion-table td:nth-child(3) {

    width: 13%;
}


.conversion-table th:nth-child(4),
.conversion-table td:nth-child(4) {

    width: 12%;
}


.conversion-table th:nth-child(5),
.conversion-table td:nth-child(5) {

    width: 19%;
}


.conversion-table th:nth-child(6),
.conversion-table td:nth-child(6) {

    width: 11%;
}



/* =====================================================
   FILE CELL
===================================================== */

.conversion-file-cell {

    min-width: 0;
}


.conversion-file-name {

    display: block;

    width: 100%;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    font-size: 13px;

    font-weight: 600;

    color: #202127;
}


.conversion-file-name[title] {

    cursor: default;
}



/* =====================================================
   TOOL CELL
===================================================== */

.conversion-tool {

    display: block;

    overflow: hidden;

    white-space: nowrap;

    text-overflow: ellipsis;

    color: #292a30;

    font-weight: 500;
}



/* =====================================================
   FORMAT CELL
===================================================== */

.conversion-format {

    white-space: nowrap;

    color: #363842;

    font-weight: 500;
}



/* =====================================================
   STATUS CELL
===================================================== */

.conversion-status {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-width: 78px;

    padding:
        5px 9px;

    border-radius: 999px;

    font-size: 11px;

    font-weight: 800;

    white-space: nowrap;
}


.conversion-status.success {

    background: #effaf2;

    color: #20753c;
}


.conversion-status.failed {

    background: #fff1f1;

    color: #b42318;
}



/* =====================================================
   DATE CELL
===================================================== */

.conversion-date {

    white-space: nowrap;

    color: #4d505a;

    font-size: 12px;
}



/* =====================================================
   SIZE CELL
===================================================== */

.conversion-size {

    white-space: nowrap;

    color: #33353d;

    font-size: 12px;

    font-weight: 600;
}



/* =====================================================
   ERROR
===================================================== */

.conversion-error {

    margin-top: 5px;

    color: #b42318;

    font-size: 11px;

    line-height: 1.4;
}



/* =====================================================
   ACCOUNT INFORMATION
===================================================== */

.account-card {

    background: #ffffff;

    border:
        1px solid #e5e5ec;

    border-radius: 16px;

    padding:
        0 24px;

    box-shadow:
        0 5px 20px rgba(
            20,
            20,
            50,
            0.025
        );
}


.account-row {

    min-height: 68px;

    display: flex;

    align-items: center;

    border-bottom:
        1px solid #eeeeF3;
}


.account-row:last-child {

    border-bottom: 0;
}


.account-label {

    display: block;

    margin-bottom: 5px;

    color: #858995;

    font-size: 12px;
}


.account-row strong {

    display: block;

    color: #202127;

    font-size: 14px;

    font-weight: 600;

    word-break: break-word;
}



/* =====================================================
   INFO CARD
===================================================== */

.info-card {

    margin-top: 25px;

    padding: 21px 23px;

    border:
        1px solid #dfe0ff;

    border-radius: 15px;

    background: #f8f8ff;

    display: flex;

    align-items: flex-start;

    gap: 15px;
}


.info-icon {

    width: 38px;

    height: 38px;

    flex-shrink: 0;

    border-radius: 10px;

    background: #e8e8ff;

    color: #5b5cf0;

    display: flex;

    align-items: center;

    justify-content: center;

    font-weight: 800;
}


.info-card h3 {

    margin:
        0 0 6px;

    font-size: 15px;
}


.info-card p {

    margin: 0;

    color: #6d7180;

    font-size: 13px;

    line-height: 1.6;
}



/* =====================================================
   FOOTER
===================================================== */

.dashboard-footer {

    width: 100%;

    padding:
        0 20px 30px;

    text-align: center;
}


.dashboard-footer p {

    margin: 0;

    color: #999daa;

    font-size: 12px;
}



/* =====================================================
   TABLET
===================================================== */

@media (max-width: 900px) {

    .stats-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }

}



/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 650px) {

    .dashboard-header {

        height: 74px;
    }


    .header-inner {

        width:
            calc(100% - 24px);
    }


    .brand-logo {

        font-size: 20px;

        gap: 8px;
    }


    .brand-logo img {

        width: 38px;

        height: 38px;
    }


    .dashboard-nav {

        gap: 6px;
    }


    .nav-button {

        height: 39px;

        padding:
            0 12px;

        font-size: 12px;

        border-radius: 8px;
    }


    .dashboard-main {

        padding:
            22px 0 50px;
    }


    .dashboard-container {

        width:
            calc(100% - 24px);
    }


    .welcome-card {

        padding: 23px 19px;

        align-items: flex-start;

        flex-direction: column;

        gap: 18px;
    }


    .welcome-left {

        gap: 14px;
    }


    .profile-avatar {

        width: 62px;

        height: 62px;

        font-size: 26px;
    }


    .welcome-content h1 {

        font-size: 27px;
    }


    .welcome-label {

        font-size: 13px;
    }


    .user-email {

        font-size: 13px;
    }


    .account-badge {

        align-self: flex-start;
    }


    .section-block {

        margin-top: 27px;
    }


    .section-heading h2 {

        font-size: 20px;
    }


    .stats-grid {

        grid-template-columns:
            1fr;

        gap: 10px;
    }


    .stat-card {

        min-height: 92px;

        padding: 16px;
    }


    .quick-tools-grid {

        grid-template-columns:
            1fr;

        gap: 10px;
    }


    .tool-card {

        min-height: 95px;

        padding: 17px;
    }


    .recent-heading {

        align-items: flex-start;

        flex-direction: column;

        gap: 4px;
    }


    .clear-button {

        padding: 4px 0;
    }


    .recent-card {

        min-height: 245px;

        padding: 0;

        display: block;
    }


    .conversion-table-wrapper {

        width: 100%;
    }


    .conversion-table {

        min-width: 900px;
    }


    .conversion-table th,
    .conversion-table td {

        padding:
            14px 13px;
    }


    .account-card {

        padding:
            0 17px;
    }


    .account-row {

        min-height: 72px;
    }


    .info-card {

        padding: 18px;

    }

}



/* =====================================================
   VERY SMALL DEVICES
===================================================== */

@media (max-width: 400px) {

    .brand-logo span {

        font-size: 18px;
    }


    .home-button {

        display: none;
    }


    .welcome-content h1 {

        font-size: 24px;
    }


    .tool-card p {

        font-size: 12px;
    }

}