/* ========== SHARED STYLES - PUBLIC PAGES ========== */

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

body {
    font-family: 'Instrument Sans', sans-serif;
    width: 100%;
    min-height: 100vh;
    background: #131559;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
}

/* ========== HEADER ========== */
.header {
    position: absolute;
    width: 100%;
    height: 188px;
    left: 0;
    top: 0;
}

.nav-pill {
    position: absolute;
    right: 0;
    top: 120px;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #131559;
    border-radius: 19px 0 0 19px;
    padding: 8px 10px;
    min-width: 280px;
    width: auto;
    height: 41px;
}

.nav-pill a {
    display: flex;
    align-items: center;
}

.nav-pill img {
    width: 24px;
    height: 25px;
}

/* ========== FOOTER ========== */
.footer {
    position: absolute;
    width: 100%;
    height: 70px;
    left: 0;
    bottom: 0;
    background: #131559;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 27px;
    margin-bottom: 20px;
}

.footer-logos {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.footer-logos img {
    height: 40px;
}

.footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.page-label {
    display: flex;
    flex-direction: column;
}

.page-label span {
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    color: #FFFFFF;
}

.page-label .underline {
    width: 177px;
    height: 5px;
    background: #FFFFFF;
    margin-top: 17px;
}

.footer-icon-btn {
    width: 48px;
    height: 38px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-icon-btn img {
    width: 48px;
}

/* ========== MAIN CONTENT ========== */
.main-content {
    position: absolute;
    width: 100%;
    top: 240px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ========== ICONS ========== */
.icon-circle {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.icon-circle img {
    width: 100%;
    height: 100%;
}


/* ========== PAGE ICONS (antes do título) ========== */
.page-icon {
    width: 78px;
    height: 66px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.page-icon img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
}

/* ========== TITLES ========== */
.page-title {
    max-width: 602px;
    font-weight: 400;
    font-size: 22px;
    line-height: 27px;
    text-align: center;
    color: #FFFFFF;
    margin-bottom: 25px;
}

.page-title.bold {
    font-weight: 700;
}

/* ========== BOXES ========== */
.content-box {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 97.5px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content-box.wide {
    width: 847px;
    padding: 34px 60px;
}

.content-box.medium {
    width: 434px;
    padding: 20px 60px;
}

.content-box.horizontal {
    flex-direction: row;
    justify-content: center;
}

/* ========== FORM ELEMENTS ========== */
.form-group {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

.form-group.icon-right {
    flex-direction: row-reverse;
}

.form-group .icon {
    width: 45px;
    height: 46px;
    flex-shrink: 0;
}

.form-group .icon img {
    width: 45px;
    height: 46px;
}

/* Form row with icon on left and label+input on right */
.form-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.form-icon {
    width: 45px;
    height: 46px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 22px; /* Align with input */
}

.form-icon img {
    width: 100%;
    height: auto;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-field label {
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #FFFFFF;
}

.input-field {
    width: 232px;
    height: 41px;
    background: #131559;
    border-radius: 19px;
    border: none;
    padding: 0 20px;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #FFFFFF;
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.input-field:focus {
    outline: none;
    background: #1a1d70;
}

/* ========== BUTTONS ========== */
.btn {
    height: 41px;
    border-radius: 19px;
    border: none;
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 20px;
    text-align: center;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 25px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: #0067BE;
}

.btn-primary:hover {
    background: #0078d4;
}

.btn-dark {
    background: #131559;
}

.btn-dark:hover {
    background: #1a1d70;
}

.btn-row {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
}

/* ========== ALERTS ========== */
.alert {
    max-width: 600px;
    padding: 12px 25px;
    border-radius: 19px;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.alert-danger {
    background: rgba(220, 38, 38, 0.2);
    color: #fecaca;
    border: 1px solid rgba(220, 38, 38, 0.3);
}

.alert-success {
    background: rgba(5, 150, 105, 0.2);
    color: #a7f3d0;
    border: 1px solid rgba(5, 150, 105, 0.3);
}

/* ========== EXTRA LINKS ========== */
.extra-links {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.extra-links a {
    font-size: 13px;
    color: #FFFFFF;
    text-decoration: none;
    opacity: 0.8;
}

.extra-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

/* ========== REMEMBER ME ========== */
.remember-me {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 8px 0 15px;
}

.remember-me input[type="checkbox"] {
    width: 12px;
    height: 12px;
    accent-color: #FFFFFF;
}

.remember-me label {
    font-weight: 400;
    font-size: 12px;
    line-height: 15px;
    color: #FFFFFF;
}

/* ========== RESPONSIVE ========== */
@media (max-width: 900px) {
    .page-title {
        width: 90%;
        font-size: 18px;
    }
    
    .content-box.wide,
    .content-box.medium {
        width: 95%;
        padding: 25px 20px;
        border-radius: 60px;
    }

    .content-box.horizontal {
        flex-direction: column;
    }
}



/* ========== INTERNAL PAGES - ITEMS BOX ========== */
.items-box {
    width: 847px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 97.5px;
    padding: 35px 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

/* ========== INTERNAL PAGES - CATEGORY/ITEM BUTTONS ========== */
.category-btn,
.folder-btn,
.item-btn {
    width: 170px;
    height: 44px;
    background: #131559;
    border-radius: 20.5px;
    border: 2px solid var(--accent-color, #7ED957);
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.category-btn:hover,
.folder-btn:hover,
.item-btn:hover {
    background: var(--accent-color, #7ED957);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

/* ========== INTERNAL PAGES - PRODUCT BUTTONS ========== */
.product-title-btn {
    width: 170px;
    height: 44px;
    background: var(--accent-color, #7ED957);
    border-radius: 20.5px;
    border: 2px solid var(--accent-color, #7ED957);
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
}

.file-btn {
    width: 170px;
    height: 44px;
    background: #131559;
    border-radius: 20.5px;
    border: 2px solid var(--accent-color, #7ED957);
    font-family: 'Instrument Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    color: #FFFFFF;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.file-btn:hover {
    background: var(--accent-color, #7ED957);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.file-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.file-btn.disabled:hover {
    background: #131559;
    transform: none;
    box-shadow: none;
}

.files-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

/* ========== INTERNAL PAGES - NAV PILL WITH LOCATION ========== */
.nav-pill.with-location {
    flex-direction: row;
    padding: 8px 10px;
    height: 41px;
    min-width: 350px;
    gap: 12px;
}

.nav-pill .nav-links {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.nav-pill .location-text {
    font-size: 11px;
    font-weight: 700;
    color: #FFFFFF;
    white-space: nowrap;
}

/* ========== INTERNAL PAGES - BACK LINK ========== */
.back-link {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 14px;
    margin-top: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: #FFFFFF;
}

/* ========== INTERNAL PAGES - EMPTY MESSAGE ========== */
.empty-message {
    color: #FFFFFF;
    text-align: center;
    opacity: 0.8;
}

/* ========== INTERNAL PAGES - PRODUCT DESCRIPTION ========== */
.product-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    text-align: center;
    max-width: 600px;
    margin-bottom: 15px;
}

/* ========== INTERNAL PAGES - CATEGORIES BOX ========== */
.categories-box {
    width: 847px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 97.5px;
    padding: 35px 60px;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 17px;
}

/* ========== RESPONSIVE - INTERNAL PAGES ========== */
@media (max-width: 900px) {
    .items-box,
    .categories-box {
        width: 95%;
        padding: 25px 20px;
        border-radius: 60px;
    }

    .category-btn,
    .folder-btn,
    .item-btn,
    .file-btn,
    .product-title-btn {
        width: 140px;
        font-size: 14px;
    }

    /* Footer mobile */
    .footer {
        height: auto;
        flex-direction: column;
        gap: 15px;
        padding: 15px 20px;
        margin-bottom: 10px;
    }

    .footer-logos {
        width: 100%;
        justify-content: center;
        gap: 20px;
        flex-wrap: wrap;
    }

    .footer-logos img {
        height: 30px;
    }

    .footer-right {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .page-label {
        align-items: center;
    }

    .page-label .underline {
        width: 120px;
        height: 3px;
        margin-top: 8px;
    }

    .footer-icon-btn {
        width: 40px;
        height: 32px;
    }

    .footer-icon-btn img {
        width: 40px;
    }

    /* Nav pill mobile */
    .nav-pill {
        position: relative;
        top: auto;
        right: auto;
        width: auto;
        min-width: 200px;
        border-radius: 19px;
        margin-bottom: 15px;
    }

    .nav-pill.with-location {
        flex-direction: column;
        height: auto;
        padding: 10px 15px;
        gap: 5px;
    }

    .location-text {
        font-size: 10px;
    }

    /* Main content mobile */
    .main-content {
        position: relative;
        top: auto;
        padding: 120px 15px 100px;
    }

    /* Page icon mobile */
    .page-icon {
        width: 60px;
        height: 50px;
    }

    /* Page title mobile */
    .page-title {
        font-size: 18px;
        padding: 0 15px;
    }

    /* Form elements mobile */
    .form-row {
        flex-direction: column;
        align-items: center;
    }

    .form-icon {
        margin-top: 0;
    }

    .form-field {
        align-items: center;
    }

    .input-field {
        width: 200px;
    }

    /* Login box mobile */
    .login-box {
        width: 95%;
        padding: 25px 20px;
        border-radius: 40px;
    }
}
