@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* =========================================
   1. GLOBAL & RESET
   ========================================= */
* {
    box-sizing: border-box;
}

body {
    font-family: "Inter", sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f6f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1; 
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

/* =========================================
   2. HEADER & NAVBAR
   ========================================= */
header {
    background-color: #ffffff;
    padding: 15px 5%;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 1000;
}

.logo img {
    height: 40px;
    width: auto;
}

.logo h3 {
    font-size: 18px;
    color: #333;
}

.nav-container {
    display: flex;
    align-items: center;
    gap: 30px;
}

header nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 25px;
}

header nav ul li a {
    color: #555;
    font-weight: 500;
    font-size: 15px;
    position: relative;
}

header nav ul li a:hover {
    color: #007BFF;
}

.auth-links {
    display: flex;
    gap: 15px;
    align-items: center;
}

.auth-links #login {
    font-weight: 600;
    color: #555;
}

.auth-links #login:hover {
    color: #007BFF;
}

.auth-links #register, .btn-logout {
    background-color: #007BFF;
    color: white !important;
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.auth-links #register:hover, .btn-logout:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 10px rgba(0, 123, 255, 0.3);
}

.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 5px;
}

.hamburger div {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* =========================================
   3. RESPONSIVE NAVBAR (MOBILE LOGIC)
   ========================================= */
@media screen and (max-width: 900px) {
    header {
        padding: 15px 20px;
    }

    .hamburger {
        display: flex;
    }

    .nav-container {
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        flex-direction: column;
        align-items: center;
        padding: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s;
        box-shadow: 0 10px 20px rgba(0,0,0,0.05);
        border-bottom: 1px solid #eee;
    }

    .nav-container.active {
        max-height: 500px;
        padding: 30px 0;
    }

    header nav ul {
        flex-direction: column;
        text-align: center;
        width: 100%;
        margin-bottom: 25px;
        gap: 20px;
    }

    .auth-links {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .auth-links #login, 
    .auth-links #register,
    .btn-logout {
        width: 80%;
        text-align: center;
        display: block;
    }

    .hamburger.toggle div:nth-child(1) {
        transform: rotate(-45deg) translate(-5px, 6px);
    }
    .hamburger.toggle div:nth-child(2) {
        opacity: 0;
        transform: translateX(10px);
    }
    .hamburger.toggle div:nth-child(3) {
        transform: rotate(45deg) translate(-5px, -6px);
    }
}

/* =========================================
   4. LANDING PAGE (HOME)
   ========================================= */
.content1, .content3 {
    background-color: #fafafa;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content2 {
    background-color: #ffffff;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.content4 {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

h2 {
    font-size: 32px;
    margin-bottom: 15px;
    color: #222;
    font-weight: 700;
}

.content4 h2 { color: white; }
.content1 h2 span { color: #007BFF; }

p {
    line-height: 1.6;
    color: #666;
    max-width: 700px;
    margin: 0 auto 30px auto;
}

.content4 p { color: rgba(255,255,255,0.9); }

.stats {
    display: flex;
    justify-content: center;
    gap: 60px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.stat h3 {
    font-size: 36px;
    color: #007BFF;
    margin-bottom: 5px;
    font-weight: 800;
}

.steps {
    display: flex;
    gap: 40px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 30px;
}

.step {
    text-align: center;
    width: 280px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
}

.step img {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
}

.button-group {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

#register-student, #register-business {
    padding: 15px 35px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    min-width: 200px;
    border: 2px solid white;
}

#register-student {
    background-color: white;
    color: #007BFF;
}

#register-business {
    background-color: transparent;
    color: white;
}

#register-student:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

#register-business:hover {
    background-color: rgba(255,255,255,0.1);
    transform: translateY(-3px);
}

/* =========================================
   5. DASHBOARD & JOBS
   ========================================= */
.search-bar {
    margin: 30px 0;
    text-align: center;
}

.search-bar a {
    padding: 12px 30px;
    background-color: #007BFF;
    color: white !important;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 600;
    display: inline-block;
    box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
    transition: all 0.3s;
}

.search-bar a:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 123, 255, 0.4);
}

table {
    width: 90%;
    max-width: 1200px;
    margin: 30px auto;
    border-collapse: separate;
    border-spacing: 0;
    background-color: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

thead {
    background-color: #f8f9fa;
    color: #333;
}

th {
    font-weight: 700;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
    padding: 18px 20px;
    border-bottom: 2px solid #eee;
}

td {
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
    color: #555;
    font-size: 14px;
}

tr:last-child td {
    border-bottom: none;
}

tr:hover td {
    background-color: #fcfcfc;
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.status-pending { background-color: #fff3cd; color: #856404; }
.status-accepted { background-color: #d4edda; color: #155724; }
.status-rejected { background-color: #f8d7da; color: #721c24; }

.gig-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.gig-card {
    background-color: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    border: 1px solid #eee;
    width: 350px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.gig-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #007BFF;
}

.gig-card h3 {
    font-size: 18px;
    margin: 0 0 8px 0;
    color: #222;
}

.gig-card .company {
    font-size: 13px;
    color: #777;
    margin-bottom: 15px;
    font-weight: 500;
}

.gig-card .salary {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
    margin-bottom: 15px;
    display: block;
}

.gig-card .info-row {
    font-size: 13px;
    color: #666;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-detail {
    margin-top: 20px;
    padding: 12px;
    background-color: #f8f9fa;
    color: #333 !important;
    text-align: center;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    transition: 0.3s;
    border: 1px solid #eee;
}

.view-detail:hover {
    background-color: #007BFF;
    color: white !important;
    border-color: #007BFF;
}

/* =========================================
   6. JOB FILTER SECTION
   ========================================= */

   .filter-section {
    background: white;
    padding: 25px 30px;
    width: 90%; 
    max-width: 1200px; 
    margin: 30px auto;
    border-radius: 16px; 
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08); 
    border: 1px solid rgba(0,0,0,0.05);
    box-sizing: border-box; 
}

.filter-form {
    display: grid;
    grid-template-columns: minmax(250px, 3fr) minmax(150px, 1.5fr) minmax(150px, 1.5fr) auto auto;
    gap: 15px; 
    align-items: end; 
    width: 100%; 
}

.filter-form .input-group {
    width: 100%;
    margin-bottom: 0;
}

.filter-form label {
    font-size: 11px;
    font-weight: 700;
    color: #8898aa; 
    margin-bottom: 8px;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.filter-form input, 
.filter-form select {
    height: 48px; 
    border: 1px solid #e0e0e0;
    background-color: #fff;
    border-radius: 8px;
    padding: 0 15px;
    font-size: 14px;
    width: 100%;
    color: #333;
    transition: all 0.2s;
    box-sizing: border-box;
    font-family: inherit; 
}

.filter-form input:focus, 
.filter-form select:focus {
    background-color: #fff;
    border-color: #007BFF;
    outline: none;
    box-shadow: 0 0 0 4px rgba(0, 123, 255, 0.1); 
}

.btn-search, .btn-reset {
    height: 48px; 
    padding: 0 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
    border: none;
}

.btn-search {
    background: #007BFF;
    color: white;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.2);
}

.btn-search:hover {
    background: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.3);
}

.btn-search:active {
    transform: translateY(0);
}

.btn-reset {
    background: #f8f9fa;
    color: #dc3545; 
    border: 1px solid #e0e0e0;
}

.btn-reset:hover {
    background: #fff;
    border-color: #dc3545;
    color: #a71d2a;
}

@media screen and (max-width: 900px) {
    .filter-section {
        width: 95%; 
        padding: 20px;
        margin-top: 20px;
    }

    .filter-form {
        display: flex; 
        flex-direction: column;
        gap: 15px;
        grid-template-columns: none; 
    }
    
    .filter-form .input-group, 
    .btn-search, 
    .btn-reset {
        width: 100%; 
    }
}
/* =========================================
   7. AUTH & FORMS
   ========================================= */
#container {
    display: flex;
    min-height: 100vh;
    background-color: #fff;
}

.img {
    background-image: url("../bg2.png");
    width: 50%;
    background-size: cover;
    background-position: center;
}

.form_container {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ffffff;
    width: 50%;
    padding: 40px;
}

form {
    width: 100%;
    max-width: 400px;
}

form h2 {
    font-size: 28px;
    margin-bottom: 5px;
    text-align: left;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.input-group label {
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
    font-size: 14px;
}

.input-group input,
.input-group textarea,
.input-group select {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.3s, box-shadow 0.3s;
    background-color: #fcfcfc;
    width: 100%;
}

.input-group input:focus,
.input-group textarea:focus,
.input-group select:focus {
    outline: none;
    border-color: #007BFF;
    background-color: #fff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

#button_register, .btn-submit {
    padding: 14px;
    width: 100%;
    border: none;
    border-radius: 8px;
    background-color: #007BFF;
    color: white;
    font-weight: 700;
    cursor: pointer;
    margin-top: 15px;
    font-size: 16px;
    transition: 0.3s;
}

#button_register:hover {
    background-color: #0056b3;
}

.form-container {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    width: 100%;
    max-width: 700px;
    margin: 40px auto;
}

.salary-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 0 15px;
    background-color: #fcfcfc;
}

.salary-wrapper:focus-within {
    border-color: #007BFF;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
    background-color: #fff;
}

.salary-wrapper input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding-left: 10px;
}

/* =========================================
   8. FOOTER
   ========================================= */
footer {
    background-color: #ffffff;
    border-top: 1px solid #eaeaea;
    padding: 40px 20px;
    text-align: center;
    margin-top: auto; 
}

.footer-content nav ul {
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.footer-content nav ul li a {
    color: #666;
    font-size: 14px;
}

.footer-content nav ul li a:hover {
    color: #007BFF;
}

/* =========================================
   8. GLOBAL RESPONSIVE FIXES
   ========================================= */
@media screen and (max-width: 900px) {
    #container {
        flex-direction: column;
    }
    .img {
        display: none;
    }
    .form_container {
        width: 100%;
        padding: 40px 20px;
    }

    .content1, .content2, .content3, .content4 {
        padding: 50px 20px;
    }
    
    h2 { font-size: 26px; }

    .stats { flex-direction: column; gap: 30px; }
    
    .button-group { flex-direction: column; width: 100%; }
    #register-student, #register-business { width: 100%; }

    .gig-card { width: 100%; }

    table {
        display: block;
        width: 100%;
        overflow-x: auto;
        white-space: nowrap;
    }
    
    .form-container { width: 90%; padding: 25px; }
    .time-group { flex-direction: column; gap: 10px; }
}