/* Career Link Agency - Professional CSS Styling */

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

:root {
    --primary-color: #2C3E50;
    --secondary-color: #E74C3C;
    --accent-color: #3498DB;
    --success-color: #27AE60;
    --warning-color: #F39C12;
    --danger-color: #E74C3C;
    --light-bg: #ECF0F1;
    --white: #FFFFFF;
    --dark-text: #2C3E50;
    --gray-text: #7F8C8D;
    --border-color: #BDC3C7;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--light-bg);
}

a {
    text-decoration: none;
    color: var(--accent-color);
    transition: all 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

button, .btn {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--accent-color);
    color: white;
}

.btn-primary:hover {
    background-color: #2980B9;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover {
    background-color: #C0392B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.3);
}

.btn-success {
    background-color: var(--success-color);
    color: white;
}

.btn-success:hover {
    background-color: #229954;
}

/* Header/Navigation */
header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--accent-color);
    display: flex;
    align-items: center;
}

.logo a {
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.logo a:hover {
    color: var(--accent-color);
}

.logo-img {
    height: 50px;
    width: auto;
    transition: transform 0.3s ease;
}

.logo a:hover .logo-img {
    transform: scale(1.1);
}

.logo-text {
    font-size: 1.3rem;
    font-weight: bold;
    color: white;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-links a {
    color: white;
    font-weight: 500;
}

.nav-links a:hover {
    color: var(--accent-color);
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background-color: white;
    margin: 5px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 80px 20px;
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Page-specific Hero Sections */
.hero-about {
    animation: slideInUp 0.8s ease-out;
}

.hero-services {
    animation: slideInUp 0.8s ease-out;
}

.hero-contact {
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Services/Categories Grid */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.service-card {
    background: white;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.service-icon {
    width: 70px;
    height: 70px;
    background-color: var(--accent-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin: 0 auto 20px;
    color: white;
}

.service-card h3 {
    margin: 20px 0;
    font-size: 1.3rem;
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray-text);
    margin-bottom: 20px;
}

/* Section Styles */
section {
    padding: 60px 0;
}

section h2 {
    font-size: 2.2rem;
    margin-bottom: 40px;
    text-align: center;
    color: var(--primary-color);
}

/* Job Listings */
.job-card {
    background: white;
    border-left: 5px solid var(--accent-color);
    padding: 30px;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.job-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.2);
    border-left-color: var(--secondary-color);
}

.job-card h3 {
    color: var(--primary-color);
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.job-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray-text);
}

.job-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Forms */
form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="phone"],
input[type="number"],
input[type="date"],
textarea,
select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 5px rgba(52, 152, 219, 0.3);
}

textarea {
    resize: vertical;
    min-height: 150px;
}

/* Footer */
footer {
    background-color: var(--primary-color);
    color: white;
    padding: 40px 0;
    margin-top: 80px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h4 {
    margin-bottom: 15px;
    color: var(--accent-color);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #BDC3C7;
}

.footer-section a:hover {
    color: var(--accent-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 20px;
    text-align: center;
    color: #BDC3C7;
}

/* Live Chat Button */
.chat-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 40px;
    right: 40px;
    background: linear-gradient(135deg, #3498DB, #194D7F);
    color: white;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 100;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.chat-float:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(52, 152, 219, 0.5);
}

.chat-popup {
    display: none;
    position: fixed;
    bottom: 120px;
    right: 40px;
    width: 350px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 40px rgba(0, 0, 0, 0.2);
    z-index: 101;
    flex-direction: column;
    max-height: 500px;
}

.chat-popup.active {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #3498DB, #194D7F);
    color: white;
    padding: 15px;
    border-radius: 10px 10px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-body {
    flex: 1;
    padding: 15px;
    overflow-y: auto;
    max-height: 300px;
}

.chat-message {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.message-user {
    background-color: #DCF8C6;
    margin-left: 20px;
    text-align: right;
}

.message-bot {
    background-color: #E2E2EA;
    margin-right: 20px;
}

.chat-input {
    padding: 15px;
    border-top: 1px solid #E2E2EA;
}

.chat-input input {
    width: 100%;
    padding: 10px;
    border: 1px solid #E2E2EA;
    border-radius: 5px;
    font-size: 0.9rem;
}

.close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
}

/* Admin Panel */
.admin-sidebar {
    background-color: var(--primary-color);
    color: white;
    min-height: 100vh;
    padding: 20px;
    position: fixed;
    width: 250px;
    left: 0;
    top: 0;
}

.admin-sidebar ul {
    list-style: none;
    margin-top: 30px;
}

.admin-sidebar li {
    margin: 20px 0;
}

.admin-sidebar a {
    color: white;
    display: block;
    padding: 10px 15px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.admin-sidebar a:hover,
.admin-sidebar a.active {
    background-color: var(--accent-color);
    color: white;
}

.admin-main {
    margin-left: 250px;
    padding: 20px;
}

.admin-header {
    background: white;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    background: white;
    padding: 25px;
    border-radius: 5px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.stat-box h3 {
    color: var(--gray-text);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-color);
}

.table-responsive {
    overflow-x: auto;
    background: white;
    border-radius: 5px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    text-align: left;
    font-weight: 600;
}

table td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
}

table tr:hover {
    background-color: var(--light-bg);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 5px;
    margin-bottom: 20px;
}

.alert-success {
    background-color: #D4EDDA;
    color: #155724;
    border: 1px solid #C3E6CB;
}

.alert-danger {
    background-color: #F8D7DA;
    color: #721C24;
    border: 1px solid #F5C6CB;
}

.alert-warning {
    background-color: #FFF3CD;
    color: #856404;
    border: 1px solid #FFEAA7;
}

.alert-info {
    background-color: #D1ECF1;
    color: #0C5460;
    border: 1px solid #BEE5EB;
}

/* Responsive Design - Tablet & Below (768px) */
@media (max-width: 768px) {
    /* Navigation */
    nav {
        padding: 0 15px;
    }

    .logo {
        font-size: 1.2rem;
    }

    .logo-img {
        height: 40px;
    }

    .logo-text {
        font-size: 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 60px;
        left: 0;
        flex-direction: column;
        background-color: var(--primary-color);
        width: 100%;
        gap: 0;
        z-index: 99;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        width: 100%;
    }

    .hamburger {
        display: flex;
    }

    /* Hero Section */
    .hero {
        padding: 60px 20px;
        min-height: 400px;
    }

    .hero h1 {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        gap: 15px;
    }

    .hero-buttons a,
    .hero-buttons button {
        width: 100%;
    }

    /* Container */
    .container {
        padding: 0 15px;
    }

    /* Grid Layouts */
    .services-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }

    .service-card {
        padding: 20px;
    }

    .service-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Forms */
    form {
        padding: 20px;
        border-radius: 8px;
    }

    .form-group {
        margin-bottom: 15px;
    }

    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 8px;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 12px;
        width: 100%;
    }

    /* Job Listings */
    .job-card {
        padding: 15px;
        margin-bottom: 15px;
    }

    .job-card h3 {
        font-size: 1.1rem;
    }

    /* Admin Panel */
    .admin-sidebar {
        width: 200px;
        padding: 15px;
    }

    .admin-main {
        margin-left: 200px;
        padding: 15px;
    }

    .admin-sidebar a {
        padding: 8px 12px;
        font-size: 0.9rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .stat-box {
        padding: 15px;
    }

    .stat-number {
        font-size: 1.5rem;
    }

    /* Tables */
    table th {
        padding: 10px;
        font-size: 0.9rem;
    }

    table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    /* Footer */
    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section {
        margin-bottom: 20px;
    }

    footer {
        padding: 30px 15px;
    }

    /* Chat Widget */
    .chat-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
        font-size: 25px;
    }

    .chat-popup {
        width: 90%;
        bottom: 80px;
        right: 5%;
        left: 5%;
        max-height: 80vh;
    }

    /* Buttons */
    button,
    .btn {
        padding: 12px 20px;
        font-size: 0.95rem;
    }

    /* Profile & Messages */
    .profile-section {
        padding: 15px;
    }

    .message-container {
        height: calc(100vh - 200px);
    }
}

/* Mobile - Small devices (480px and below) */
@media (max-width: 480px) {
    /* Base */
    body {
        font-size: 14px;
    }

    /* Navigation */
    nav {
        padding: 0 10px;
    }

    .logo {
        font-size: 1rem;
    }

    .logo-img {
        height: 35px;
    }

    .hamburger span {
        width: 20px;
        height: 2px;
        margin: 4px 0;
    }

    /* Header */
    header {
        padding: 0.7rem 0;
    }

    /* Hero Section */
    .hero {
        padding: 40px 15px;
        min-height: 300px;
    }

    .hero h1 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .hero-buttons {
        gap: 10px;
    }

    .hero-buttons a,
    .hero-buttons button {
        width: 100%;
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    /* Container */
    .container {
        padding: 0 10px;
    }

    /* Cards & Grids */
    .services-grid {
        gap: 15px;
        margin: 20px 0;
    }

    .service-card {
        padding: 15px;
        text-align: center;
    }

    .service-card h3 {
        font-size: 1.1rem;
        margin: 15px 0;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        margin: 0 auto 15px;
    }

    /* Forms */
    form {
        padding: 15px;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }

    .form-group {
        margin-bottom: 12px;
    }

    .form-group label {
        font-size: 0.9rem;
        margin-bottom: 6px;
        display: block;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
        padding: 10px;
        width: 100%;
        border-radius: 4px;
    }

    /* Buttons */
    button,
    .btn {
        padding: 10px 15px;
        font-size: 0.9rem;
        width: 100%;
    }

    /* Admin Panel */
    .admin-sidebar {
        width: 100%;
        position: static;
        min-height: auto;
        margin-bottom: 20px;
        padding: 15px;
    }

    .admin-sidebar ul {
        margin-top: 15px;
        display: flex;
        gap: 10px;
        overflow-x: auto;
        flex-wrap: wrap;
    }

    .admin-sidebar li {
        margin: 5px;
    }

    .admin-main {
        margin-left: 0;
        padding: 10px;
    }

    .admin-header {
        flex-direction: column;
        gap: 10px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .stat-box {
        padding: 12px;
    }

    .stat-number {
        font-size: 1.3rem;
    }

    /* Tables */
    .table-responsive {
        font-size: 0.8rem;
        box-shadow: none;
    }

    table th,
    table td {
        padding: 8px;
    }

    table {
        font-size: 0.8rem;
    }

    /* Footer */
    footer {
        padding: 20px 10px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-section h4 {
        font-size: 1rem;
        margin-bottom: 10px;
    }

    .footer-section ul {
        font-size: 0.9rem;
    }

    .footer-bottom {
        font-size: 0.8rem;
    }

    /* Chat Widget */
    .chat-float {
        width: 45px;
        height: 45px;
        bottom: 15px;
        right: 15px;
        font-size: 22px;
    }

    .chat-popup {
        width: 95%;
        height: auto;
        max-height: 70vh;
        bottom: auto;
        top: 50%;
        right: 2.5%;
        left: 2.5%;
        transform: translateY(-50%);
    }

    .chat-header {
        padding: 15px;
    }

    .chat-messages {
        max-height: 300px;
    }

    /* Job Listings */
    .job-card {
        padding: 12px;
        margin-bottom: 10px;
    }

    .job-card h3 {
        font-size: 1rem;
    }

    /* Profile */
    .profile-section {
        padding: 10px;
    }

    /* Messages */
    .message-box {
        font-size: 0.9rem;
        padding: 8px;
    }

    .message-container {
        height: calc(100vh - 180px);
    }

    /* Headings */
    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.3rem;
    }

    h3 {
        font-size: 1.1rem;
    }

    /* Spacing */
    section {
        padding: 20px 0;
    }

    .container {
        padding: 0 10px;
    }
}

/* Extra Small devices (320px and below) */
@media (max-width: 320px) {
    html {
        font-size: 13px;
    }

    .hero h1 {
        font-size: 1.3rem;
    }

    .hero p {
        font-size: 0.85rem;
    }

    .form-group input,
    .form-group textarea,
    .form-group select {
        font-size: 16px;
    }

    button, .btn {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    table {
        font-size: 0.75rem;
    }

    .service-card {
        padding: 10px;
    }
}

/* ======================================
CONTACT PAGE RESPONSIVE FIX
====================================== */

/* Make images responsive */
img{
    max-width:100%;
    height:auto;
}

/* Contact grid responsiveness */
@media (max-width: 992px){

    /* Contact section two columns -> one column */
    section .container > div[style*="grid-template-columns"]{
        grid-template-columns: 1fr !important;
        gap:30px !important;
    }

}

/* Mobile devices */
@media (max-width: 768px){

    /* Navigation */
    .nav-links{
        display:none;
        flex-direction:column;
        background:#fff;
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        padding:20px;
        box-shadow:0 4px 10px rgba(0,0,0,0.1);
    }

    .nav-links.active{
        display:flex;
    }

    .nav-links li{
        margin:10px 0;
    }

    .hamburger{
        display:block;
        cursor:pointer;
    }

    /* Hero text resize */
    .hero-contact h1{
        font-size:2.2rem !important;
    }

    .hero-contact p{
        font-size:1rem !important;
    }

    /* Contact form padding */
    form{
        padding:20px !important;
    }

    /* Inputs */
    input,
    textarea,
    select{
        width:100%;
        font-size:16px;
    }

    /* FAQ section */
    details{
        padding:15px !important;
    }

    /* Footer layout */
    .footer-content{
        display:block;
        text-align:center;
    }

    .footer-section{
        margin-bottom:25px;
    }

}

/* Small phones */
@media (max-width:480px){

    .hero-contact{
        padding:70px 15px !important;
    }

    .hero-contact h1{
        font-size:1.8rem !important;
    }

    section{
        padding:50px 15px !important;
    }

}

/* ======================================
HAMBURGER MENU FIX
====================================== */

/* Hide hamburger on desktop */
.hamburger{
    display:none;
    flex-direction:column;
    gap:5px;
}

/* Hamburger lines */
.hamburger span{
    width:25px;
    height:3px;
    background:#2C3E50;
    display:block;
    border-radius:3px;
}

/* Show hamburger on mobile */
@media (max-width:768px){

    .hamburger{
        display:flex;
    }

    /* hide menu by default */
    .nav-links{
        display:none;
        flex-direction:column;
        background:#fff;
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        padding:20px;
        box-shadow:0 4px 10px rgba(0,0,0,0.1);
        z-index:999;
    }

    .nav-links.active{
        display:flex;
    }

}

/* =================================
MOBILE NAVIGATION FIX
================================= */

header{
    position:relative;
}

/* hamburger button */
.hamburger{
    display:none;
    flex-direction:column;
    cursor:pointer;
    gap:5px;
}

.hamburger span{
    width:25px;
    height:3px;
    background:#2C3E50;
    border-radius:3px;
}

/* Mobile screen */
@media (max-width:768px){

    nav.container{
        display:flex;
        justify-content:space-between;
        align-items:center;
    }

    .hamburger{
        display:flex;
    }

    .nav-links{
        display:none;
        flex-direction:column;
        position:absolute;
        top:80px;
        left:0;
        width:100%;
        background:white;
        padding:20px;
        box-shadow:0 5px 15px rgba(0,0,0,0.1);
        z-index:999;
    }

    .nav-links li{
        margin:10px 0;
    }

    .nav-links.active{
        display:flex;
    }

}
/* ===== MOBILE NAV FIX ===== */

@media screen and (max-width:768px){

/* show hamburger */
.hamburger{
    display:flex !important;
    flex-direction:column;
    gap:5px;
    cursor:pointer;
}

/* hamburger lines */
.hamburger span{
    width:25px;
    height:3px;
    background:#000;
    display:block;
}

/* hide normal menu */
.nav-links{
    display:none;
    flex-direction:column;
    position:absolute;
    top:80px;
    left:0;
    width:100%;
    background:#fff;
    padding:20px;
    box-shadow:0 5px 10px rgba(0,0,0,0.1);
}

/* show menu when clicked */
.nav-links.active{
    display:flex;
}

nav.container{
    display:flex;
    justify-content:space-between;
    align-items:center;
}

}

/* ===== MOBILE NAVIGATION FIX ===== */

@media screen and (max-width:768px){

.hamburger{
display:flex;
flex-direction:column;
gap:5px;
cursor:pointer;
}

.hamburger span{
width:25px;
height:3px;
background:#000;
display:block;
}

/* mobile dropdown menu */
.nav-links{
display:none;
flex-direction:column;
position:absolute;
top:80px;
left:0;
width:100%;
background:#ffffff;
padding:20px;
box-shadow:0 5px 10px rgba(0,0,0,0.1);
z-index:999;
}

.nav-links li{
list-style:none;
margin:10px 0;
}

/* make links visible */
.nav-links li a{
color:#2C3E50;
font-size:16px;
text-decoration:none;
display:block;
padding:10px 0;
}

/* show menu when clicked */
.nav-links.active{
display:flex;
}

nav.container{
display:flex;
justify-content:space-between;
align-items:center;
position:relative;
}

}

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

@media (max-width: 900px){

/* Sidebar becomes top menu */
.sidebar{
position:relative;
width:100%;
height:auto;
display:flex;
flex-direction:column;
align-items:center;
text-align:center;
}

.sidebar ul{
display:flex;
flex-wrap:wrap;
justify-content:center;
gap:10px;
}

.sidebar li{
margin:5px;
}

.sidebar a{
padding:8px 12px;
font-size:14px;
}

/* Main content full width */
.main-content{
margin-left:0;
padding:15px;
}

/* Header stack */
.header{
flex-direction:column;
align-items:flex-start;
gap:10px;
}

/* Stats cards responsive */
.stats{
grid-template-columns: repeat(2, 1fr);
}

/* Tables scroll horizontally */
table{
display:block;
overflow-x:auto;
white-space:nowrap;
}

/* Message section stack */
.content-box div[style*="grid-template-columns"]{
grid-template-columns:1fr !important;
}

}


/* Extra small phones */

@media (max-width:500px){

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

.stat-number{
font-size:2rem;
}

.sidebar ul{
flex-direction:column;
}

.sidebar{
padding:10px;
}

}

/* ============================= */
/* MOBILE RESPONSIVE FIX */
/* ============================= */

@media screen and (max-width: 768px){

/* sidebar becomes top */
.sidebar{
position:relative !important;
width:100% !important;
height:auto !important;
}

/* remove sidebar spacing */
.main-content{
margin-left:0 !important;
width:100% !important;
}

/* stack header */
.header{
flex-direction:column !important;
align-items:flex-start !important;
gap:10px;
}

/* stats responsive */
.stats{
grid-template-columns:1fr 1fr !important;
}

/* tables scroll */
table{
display:block;
overflow-x:auto;
white-space:nowrap;
}

/* grid sections stack */
.content-box div{
grid-template-columns:1fr !important;
}

}


/* very small phones */

@media screen and (max-width:480px){

.stats{
grid-template-columns:1fr !important;
}

.stat-number{
font-size:1.8rem !important;
}

}

/* ================= MOBILE RESPONSIVE FIX ================= */

@media screen and (max-width:768px){

/* container fix */
.container{
width:100%;
padding:0 15px;
box-sizing:border-box;
}

/* navigation */
nav{
flex-wrap:wrap;
}

/* nav links hidden until menu clicked */
.nav-links{
display:none;
flex-direction:column;
width:100%;
background:white;
position:absolute;
top:70px;
left:0;
padding:20px;
box-shadow:0 5px 10px rgba(0,0,0,0.1);
}

.nav-links.active{
display:flex;
}

/* nav items spacing */
.nav-links li{
margin:10px 0;
}

/* logo scaling */
.logo img{
max-width:150px;
height:auto;
}

/* form boxes */
form{
width:100%;
}

/* inputs fit screen */
input, select, textarea{
width:100%;
box-sizing:border-box;
}

/* prevent overflow */
img{
max-width:100%;
height:auto;
}

/* tables scroll instead of breaking layout */
table{
display:block;
overflow-x:auto;
white-space:nowrap;
}

}

