/* ================================
   General
================================ */

* {
    box-sizing: border-box;
}


body {
    margin: 0;

    min-height: 100vh;

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

    background:
        linear-gradient(
            135deg,
            #071a2b,
            #0b3148
        );

    color: #ffffff;
}


/* ================================
   Main App
================================ */

.app {
    width: 100%;
    max-width: 900px;

    margin: 0 auto;

    padding: 30px 18px 20px;
}


/* ================================
   Header
================================ */

.app-header {
    display: flex;

    align-items: center;

    gap: 15px;

    margin-bottom: 25px;
}


.logo {
    width: 55px;
    height: 55px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    border-radius: 14px;

    background: #1c9c82;

    font-size: 20px;
    font-weight: bold;
}


.header-text h1 {
    margin: 0 0 6px;

    font-size: 25px;
}


.header-text p {
    margin: 0;

    color: #b7c9d6;

    font-size: 14px;
}


/* ================================
   Card
================================ */

.card {
    background: #ffffff;

    color: #17232d;

    border-radius: 18px;

    padding: 24px;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.25);
}


/* ================================
   Drop Zone
================================ */

.drop-zone {
    border: 2px dashed #b7c5ce;

    border-radius: 14px;

    padding: 55px 20px;

    text-align: center;

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


.drop-zone.drag-over {
    border-color: #1c9c82;

    background: #f0faf7;
}


.upload-icon {
    width: 65px;
    height: 65px;

    margin: 0 auto 18px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #e8f6f2;

    color: #16846e;

    font-size: 32px;
    font-weight: bold;
}


.drop-zone h2 {
    margin: 0 0 8px;

    font-size: 22px;
}


.drop-zone p {
    margin: 7px 0;

    color: #647481;

    line-height: 1.5;
}


.small-text {
    margin-top: 20px !important;

    font-size: 12px;

    color: #8a98a2 !important;
}


/* ================================
   Buttons
================================ */

.button {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 44px;

    padding: 0 20px;

    border: none;

    border-radius: 9px;

    font-size: 14px;
    font-weight: bold;

    text-decoration: none;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        opacity 0.15s ease;
}


.button:hover {
    opacity: 0.9;
}


.button:active {
    transform: scale(0.98);
}


.primary-button {
    background: #168b74;

    color: #ffffff;
}


.secondary-button {
    background: #e8edf1;

    color: #263641;
}


/* ================================
   Video Information
================================ */

.video-info {
    display: block;
}


.hidden {
    display: none !important;
}


/* ================================
   File Header
================================ */

.file-header {
    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 15px;

    padding-bottom: 20px;

    border-bottom: 1px solid #e1e7eb;
}


.file-header h2 {
    margin: 0 0 5px;

    font-size: 18px;

    word-break: break-word;
}


.file-header p {
    margin: 0;

    color: #71808a;

    font-size: 13px;
}


/* ================================
   Information Grid
================================ */

.info-grid {
    display: grid;

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

    gap: 12px;

    margin-top: 20px;
}


.info-item {
    padding: 15px;

    border-radius: 10px;

    background: #f4f7f9;
}


.info-item span {
    display: block;

    margin-bottom: 7px;

    color: #71808a;

    font-size: 12px;
}


.info-item strong {
    display: block;

    font-size: 15px;

    word-break: break-word;
}


/* ================================
   Settings
================================ */

.settings {
    margin-top: 28px;

    padding-top: 24px;

    border-top: 1px solid #e1e7eb;
}


.settings h2 {
    margin: 0 0 20px;

    font-size: 19px;
}


.setting-group {
    margin-bottom: 18px;
}


.setting-group label {
    display: block;

    margin-bottom: 8px;

    font-size: 14px;

    font-weight: bold;
}


.setting-group select {
    width: 100%;

    height: 46px;

    padding: 0 12px;

    border: 1px solid #cbd5db;

    border-radius: 9px;

    background: #ffffff;

    color: #17232d;

    font-size: 14px;

    outline: none;
}


.setting-group select:focus {
    border-color: #168b74;
}


/* ================================
   Reduce Button
================================ */

.reduce-button {
    width: 100%;

    margin-top: 5px;

    min-height: 50px;

    font-size: 16px;
}


/* ================================
   Progress
================================ */

.progress-section {
    margin-top: 25px;

    padding: 18px;

    border-radius: 10px;

    background: #f4f7f9;
}


.progress-header {
    display: flex;

    justify-content: space-between;

    gap: 10px;

    margin-bottom: 10px;

    font-size: 13px;

    font-weight: bold;
}


.progress-bar {
    width: 100%;

    height: 10px;

    overflow: hidden;

    border-radius: 10px;

    background: #dce4e9;
}


.progress-fill {
    width: 0%;

    height: 100%;

    border-radius: inherit;

    background: #168b74;

    transition: width 0.2s ease;
}


/* ================================
   Result
================================ */

.result-section {
    margin-top: 25px;

    padding: 25px;

    border-radius: 12px;

    background: #edf9f5;

    text-align: center;
}


.success-icon {
    width: 55px;
    height: 55px;

    margin: 0 auto 12px;

    display: flex;

    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #168b74;

    color: #ffffff;

    font-size: 27px;
    font-weight: bold;
}


.result-section h2 {
    margin: 0 0 8px;
}


.result-section p {
    margin: 0 0 18px;

    color: #63727b;

    font-size: 14px;
}


/* ================================
   Footer
================================ */

footer {
    padding: 18px 0 5px;

    text-align: center;
}


footer p {
    margin: 0;

    color: #9eb2bf;

    font-size: 12px;
}


/* ================================
   Mobile
================================ */

@media (max-width: 700px) {

    .app {
        padding:
            20px 12px;
    }


    .app-header {
        align-items: flex-start;
    }


    .header-text h1 {
        font-size: 21px;
    }


    .header-text p {
        font-size: 13px;
    }


    .card {
        padding: 16px;
    }


    .drop-zone {
        padding: 40px 15px;
    }


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


    .file-header {
        align-items: flex-start;

        flex-direction: column;
    }


    .file-header .button {
        width: 100%;
    }

}


@media (max-width: 400px) {

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

}