/* ============================================
   ThrottleX - Global Styles
   ============================================ */

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

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Make the body a column flex container so footer can be pushed to the bottom
   when page content is short. Use min-height so pages longer than the viewport
   still scroll normally. */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    font-family: 'Montserrat', sans-serif;
    background-color: #FFF7F0;
}

/* Media elements scale nicely */
img, video, canvas, svg {
    max-width: 100%;
    height: auto;
}

/* Make iframes responsive by default */
.responsive-embed {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
}
.responsive-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

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

.throttlex-header {
    width: 100%;
    height: 80px;
    background-color: #FFFFFF;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-container {
    width: 100%;
    max-width: 1440px;
    height: 80px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.logo-link {
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo {
    height: 35px;
    width: auto;
    object-fit: contain;
}

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

/* Sign Up Button */
.btn-signup {
    background-color: #FF7A00;
    color: #FFFFFF;
    padding: 10px 24px;
    border-radius: 50px;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 16px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-signup:hover {
    background-color: #CC6200;
    color: #FFFFFF;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.3);
}

.btn-signup:active {
    transform: translateY(0);
}

/* User Menu */
.user-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.user-link {
    color: #333333;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 16px;
    transition: color 0.3s ease;
}

.user-link:hover {
    color: #FF7A00;
}

/* ============================================
   BODY/MAIN CONTENT STYLES
   ============================================ */

.throttlex-body {
    width: 100%;
    background-color: #FFF7F0;
    padding: 40px 20px;
    /* Allow the main content area to grow and push the footer down */
    flex: 1 0 auto;
    overflow-x: hidden;
}

.content-wrapper {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 40px;
}

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

.throttlex-footer {
    width: 100%;
    height: 70px;
    background-color: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    /* In a column flex layout the footer will stay at the bottom when
       the content is short. If the content grows, the footer follows the flow. */
}

.footer-container {
    width: 100%;
    max-width: 1440px;
    height: 70px;
    padding: 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-text {
    color: #FFFFFF;
    font-family: 'Montserrat', sans-serif;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    margin: 0;
}

.footer-link {
    color: #FFFFFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: #FF7A00;
    text-decoration: underline;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 768px) {
    .header-container,
    .content-wrapper,
    .footer-container {
        padding: 0 20px;
    }

    .logo {
        height: 30px;
    }

    .btn-signup,
    .user-link {
        font-size: 13px;
    }

    .footer-text {
        font-size: 12px;
    }

    /* Tables scroll horizontally on small screens */
    .dashboard-table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        white-space: nowrap;
    }
    .dashboard-table thead,
    .dashboard-table tbody,
    .dashboard-table th,
    .dashboard-table td,
    .dashboard-table tr {
        display: table;
        width: auto;
    }
}

@media (max-width: 480px) {
    .header-container,
    .content-wrapper,
    .footer-container {
        padding: 0 15px;
    }

    .logo {
        height: 35px;
    }

    .btn-signup,
    .user-link {
        font-size: 12px;
        padding: 8px 16px;
    }

    .footer-text {
        font-size: 12px;
    }

    .user-menu {
        gap: 10px;
    }

     /* Reduce global body padding for very small screens */
    .throttlex-body {
        padding: 24px 10px;
    }
}


