@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
}

.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    display: flex;
    justify-content: center; 
    align-items: center;
    background: transparent;
    z-index: 1000;
    padding-top: 120px;
}

.header-logo {
    width: 100px;
}

/* NAVBAR */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    background-color: #e92027;
    display: flex;
    align-items: center;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    align-items: center;
}

.nav-logo {
    height: 50px;
}

.dashboard-container {
    padding-top: 120px;
}

.convert-dropdown {
    margin-left: auto;
}

.convert-dropdown select {
    padding: 8px 12px;
    border-radius: 6px;
    border: none;
    font-family: 'Montserrat', sans-serif;
}

/* Index */
.hero {
    padding-top: 80px;
    position: relative;
    height: 100vh;
    background: url("../images/background.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.07);
}

.container {
    position: relative;
    z-index: 2;
    max-width: 900px;
    padding: 20px;
}

.welcome {
    font-size: 40px;
    font-weight: 400;
}

.title {
    font-size: 64px;
    font-weight: 600;
    margin-bottom: 20px;
}

.subtitle {
    font-size: 18px;
    color: #121212;
    line-height: 1.6;
    margin: 40px 0 80px 0;
}

/* Button */
button {
    background-color: #e92027;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}

button:hover {
    opacity: 0.9;
}

/* Login and Verify Page */
.login-page {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f5f5f5; 
    text-align: center;
}

.login-content {
    width: 100%;
    max-width: 400px;
}

.login-title {
    margin-top: 10px;
    font-size: 42px;
    margin-bottom: 40px;
    font-weight: 500;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form input {
    padding: 14px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 16px;
    margin-bottom: 100px;
}

.login-form button {
    width: 70%;
    align-self: center;
}

.error {
    color: #e92027;
    font-size: 14px;
    margin-bottom: 10px;
    text-align: left;
    min-height: 20px;
}

.message {
    color: orange;
    margin-bottom: 10px;
    text-align: center;
}

/* Dashboard Layout */
.dashboard-container {
    min-height: 100vh;
    background: #f5f5f5;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 120px;
    text-align: center;
}

.dashboard-content {
    width: 90%;
    max-width: 900px;
}

.dashboard-title {
    font-size: 48px;
    font-weight: 500;
    margin-bottom: 60px;
}

.dashboard-subtitle {
    font-size: 18px;
    color: #666;
    max-width: 750px;
    margin: 0 auto 60px auto;
    line-height: 1.6;
}

.upload-box {
    border: 3px dashed #cfcfcf;
    border-radius: 25px;
    padding: 40px 20px;
    transition: 0.3s ease;
    background: #ffffff;
    position: relative;
}

.upload-box.dragover {
    border-color: #e92027;
    background: #fff5f5;
}

.upload-icon {
    width: 90px;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 18px;
    color: #777;
    margin-bottom: 40px;
}

.upload-btn {
    background-color: #e92027;
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s ease;
}

.upload-btn:hover {
    opacity: 0.9;
}

.cancel-btn {
    display: inline-block;
    text-decoration: none;
    text-align: center;
}

.upload-label {
    font-size: 22px;
    margin-bottom: 20px;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 60px;
}

.platform-icons img {
    width: 90px;
    height: 90px;
    background: white;
    padding: 20px;
    border-radius: 50%;
    transition: 0.3s ease;
}

.platform-icons img:hover {
    transform: scale(1.1);
}

.download-btn {
    display: inline-block;
    background-color: #e92027;
    color: white;
    padding: 16px 60px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 18px;
    transition: 0.3s ease;
}

.download-btn:hover {
    opacity: 0.9;
}

/* Result pop-up */
.result-popup-overlay {
    position: fixed;
    top: 80px; /* below navbar */
    left: 0;
    width: 100%;
    height: calc(100% - 80px);
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 80px;
    z-index: 2000;
}

.result-popup {
    background: #000;
    color: white;
    width: 600px; /* smaller than before */
    max-width: 90%;
    border-radius: 20px;
    padding: 50px 40px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 26px;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.popup-title {
    font-size: 32px;
    font-weight: 500;
    margin-bottom: 30px;
}

.popup-size {
    font-size: 16px;
    margin-bottom: 30px;
}

.platform-icons {
    display: flex;
    justify-content: center;
    gap: 25px;
    margin-bottom: 40px;
}

.platform-icons img {
    width: 70px;
    height: 70px;
    background: white;
    padding: 15px;
    border-radius: 50%;
    transition: 0.3s ease;
}

.platform-icons img:hover {
    transform: scale(1.1);
}

@media (max-width: 600px) {

    .site-header {
        padding-left: 20px;
        height: 70px;
    }

    .header-logo {
        width: 70px;
    }

    .welcome { font-size: 26px; }
    .title { font-size: 36px; }
    .subtitle { font-size: 14px; }

    .login-title {
        font-size: 30px;
    }

    .login-form button {
        width: 100%;
    }

    button {
        width: 100%;
    }

    .dashboard-container {
        min-height: 100vh;
        background: #f5f5f5;
        display: flex;
        flex-direction: column;
        padding-top: 120px; /* space for navbar */
    }

    .dashboard-content {
        width: 90%;
        max-width: 900px;
        margin: 0 auto;
        flex: 1; /* THIS makes it stretch */
        display: flex;
        flex-direction: column;
    }

    .upload-box {
        border: 3px dashed #cfcfcf;
        border-radius: 25px;
        background: #ffffff;
        position: relative;

        flex: 1; /* THIS makes it expand */
        display: flex;
        flex-direction: column;
        justify-content: center; /* center content inside */
        align-items: center;
        padding: 40px 20px;
    }

     .dashboard-title {
        font-size: 34px;
        flex-shrink: 0;
    }

    .dashboard-subtitle {
        font-size: 18px;
        margin-bottom: 40px;
    }

    .upload-text {
        font-size: 20px;
    }

    .upload-label {
        font-size: 24px;
    }

    .upload-btn {
        font-size: 18px;
        padding: 16px 40px;
    }
}