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

:root {
    --primary-bg: #3E1E38;
    --accent-pink: #FF2E63;
    --text-white: #ffffff;
    --text-muted: #dcdcdc;
}

* {
    box-sizing: border-box;
}

html {
    overflow-x: hidden;
}

body {
    font-family: 'Poppins', sans-serif;
    background: url('/images/Add-a-heading-1.jpg') no-repeat center center fixed;
    background-size: cover;
    color: var(--text-white);
    margin: 0;
    padding: 0;
    min-height: 100vh; 
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.navbar-custom {
    background-color: rgba(62, 30, 56, 0.85) !important;
    backdrop-filter: blur(10px);
    padding: 15px 0;
    transition: background-color 0.3s ease;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.navbar-nav {
    gap: 0.5rem;
}

.nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 500;
    margin: 0 5px;
    transition: color 0.3s, transform 0.2s;
    position: relative;
    white-space: nowrap;
    font-size: 0.9rem;
}

.nav-link:hover {
    color: white !important;
    transform: translateY(-1px);
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: var(--accent-pink);
    transition: width 0.3s;
}

.nav-link:hover::after {
    width: 100%;
}

.btn-nav-login {
    border: 1px solid var(--accent-pink);
    color: var(--accent-pink) !important;
    border-radius: 20px;
    padding: 5px 15px;
    margin-left: 5px;
    font-size: 0.85rem;
}

.btn-nav-login:hover {
    background-color: var(--accent-pink);
    color: white !important;
}

.btn-nav-register {
    background-color: var(--accent-pink);
    color: white !important;
    border-radius: 20px;
    padding: 5px 15px;
    margin-left: 5px;
    border: 1px solid var(--accent-pink);
    font-size: 0.85rem;
}

.btn-nav-register:hover {
    background-color: #e02655;
    border-color: #e02655;
}

.hero-section {
    min-height: calc(100vh - 150px);
    display: flex;
    align-items: center;
    padding: 20px 15px;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero-desc {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 100%;
}

.btn-pink {
    background-color: var(--accent-pink);
    color: white;
    border: none;
    padding: 12px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 4px;
    width: 160px;
    transition: transform 0.2s;
}

.btn-pink:hover {
    transform: translateY(-2px);
    background-color: #e02655;
    color: white;
}

.btn-outline-white {
    background: transparent;
    border: 1px solid white;
    color: white;
    padding: 10px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    border-radius: 4px;
}

.btn-outline-white:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.hero-image-container {
    position: relative;
    z-index: 10;
}

.hero-img {
    width: 100%;
    max-width: 500px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.footer-contact-bar {
    min-height: 60px;
    background: white;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 15px;
    flex-wrap: wrap;
}

.footer-item {
    font-size: 0.9rem;
    white-space: nowrap;
}

.footer-item i {
    color: var(--accent-pink);
    margin-right: 8px;
    font-size: 1rem;
}

.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
    padding: 1.5rem;
    color: white;
}

.glass-card h2 {
    color: white !important;
    font-weight: 700;
}

.glass-card .form-control {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
}

.glass-card .form-control:focus {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 0.25rem rgba(255, 46, 99, 0.25);
    color: white;
}

.glass-card .form-control::placeholder {
    color: transparent;
}

.glass-card .form-control:focus::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.form-floating > .form-control:-webkit-autofill {
    -webkit-text-fill-color: white !important;
    transition: background-color 5000s ease-in-out 0s;
}

.glass-card .form-floating > .form-control:focus ~ label,
.glass-card .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: rgba(255, 255, 255, 0.9);
    background-color: transparent; 
    transform: scale(0.85) translateY(-0.5rem) translateX(0.15rem);
}

.glass-card .form-floating label {
    color: rgba(255, 255, 255, 0.7);
    padding-left: 1rem;
}

.input-group-text {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none;
    color: white;
    border-radius: 10px 0 0 10px;
}

.input-group .form-control {
    border-left: none;
    border-radius: 0 10px 10px 0;
}

.btn-gradient {
    background: linear-gradient(45deg, var(--accent-pink), #ff6b6b);
    border: none;
    color: white;
    font-weight: 600;
    padding: 12px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-gradient:hover {
    background: linear-gradient(45deg, #ff4757, #e02655);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 46, 99, 0.4);
}

.btn-gradient:active,
.btn-primary-dark:active,
.btn-nav-post-job:active,
.btn-nav-login:active,
.btn-nav-register:active {
    transform: scale(0.98);
}

.glass-card a {
    color: var(--accent-pink) !important;
    text-decoration: none;
    font-weight: 500;
}

.glass-card a:hover {
    text-decoration: underline;
    color: #ff6b6b !important;
}

.glass-card select.form-select {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card select.form-select option {
    background-color: #3E1E38;
    color: white;
}

.glass-card select.form-select:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 0.25rem rgba(255, 46, 99, 0.25);
    color: white;
}

.glass-card textarea.form-control {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-card textarea.form-control:focus {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: var(--accent-pink);
    box-shadow: 0 0 0 0.25rem rgba(255, 46, 99, 0.25);
    color: white;
}

.btn-nav-post-job {
    background-color: transparent;
    color: white !important;
    border: 1px solid white;
    border-radius: 20px;
    padding: 5px 15px;
    margin-left: 5px;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    font-size: 0.85rem;
}

.btn-nav-post-job:hover {
    background-color: white;
    color: var(--primary-bg) !important;
    transform: translateY(-1px);
}

.glass-filter-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.glass-filter-container .form-control,
.glass-filter-container .form-select {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    transition: all 0.3s ease;
}

.glass-filter-container .form-control::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.glass-filter-container .form-control:focus,
.glass-filter-container .form-select:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--accent-pink);
    box-shadow: 0 0 8px rgba(214, 51, 132, 0.25);
    color: white;
}

.job-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out forwards;
    opacity: 0;
}

.job-card:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.4);
}

.job-card-title {
    color: white;
    font-weight: 700;
    font-size: 1.15rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.job-card-subtitle {
    color: #e0e0e0;
    font-weight: 500;
    font-size: 0.9rem;
}

.job-info-badge {
    background: rgba(255, 255, 255, 0.15);
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    color: white;
    display: inline-block;
    margin-right: 5px;
    margin-bottom: 5px;
    border: 1px solid rgba(255,255,255,0.1);
}

.btn-outline-white-premium {
    border: 1px solid rgba(255, 255, 255, 0.6);
    color: white;
    background: transparent;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-white-premium:hover {
    background: white;
    color: var(--primary-bg);
    border-color: white;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.btn-icon-delete {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.2rem;
    padding: 0.375rem 0.75rem;
    transition: all 0.2s ease;
}

.btn-icon-delete:hover {
    color: #ff4757;
    transform: scale(1.1);
}

.btn-icon-action {
    width: 32px;
    height: 32px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.btn-icon-accept {
    color: #198754;
    border-color: #198754;
    background: transparent;
}

.btn-icon-accept:hover {
    background-color: #198754;
    color: white;
    transform: scale(1.1);
}

.btn-icon-reject {
    color: #dc3545;
    border-color: #dc3545;
    background: transparent;
}

.btn-icon-reject:hover {
    background-color: #dc3545;
    color: white;
    transform: scale(1.1);
}

.btn-action-accept {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #198754;
    background: transparent;
    color: #198754;
}

.btn-action-accept:hover {
    background-color: #198754;
    color: white;
    box-shadow: 0 4px 12px rgba(25, 135, 84, 0.4);
}

.btn-action-reject {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 2px solid #dc3545;
    background: transparent;
    color: #dc3545;
}

.btn-action-reject:hover {
    background-color: #dc3545;
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.4);
}

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

.job-card:nth-child(1) { animation-delay: 0.1s; }
.job-card:nth-child(2) { animation-delay: 0.2s; }
.job-card:nth-child(3) { animation-delay: 0.3s; }
.job-card:nth-child(4) { animation-delay: 0.4s; }
.job-card:nth-child(5) { animation-delay: 0.5s; }
.job-card:nth-child(6) { animation-delay: 0.6s; }

.dashboard-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    border: none;
}

.dashboard-table {
    margin-bottom: 0;
    color: #333;
}

.dashboard-table thead th {
    background-color: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #e9ecef;
    padding: 1rem 0.75rem;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

.dashboard-table tbody td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    border-bottom: 1px solid #e9ecef;
    color: #495057;
    font-size: 0.9rem;
}

.dashboard-table tbody tr:last-child td {
    border-bottom: none;
}

.dashboard-table tbody tr:hover {
    background-color: #f1f3f5;
    transition: background-color 0.2s ease;
}

.badge-status {
    padding: 0.5em 1em;
    border-radius: 50rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
}

.badge-pending {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.badge-accepted {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.badge-rejected {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.badge-job-title {
    background-color: rgba(62, 30, 56, 0.1);
    color: var(--primary-bg);
    font-weight: 600;
    padding: 0.4em 0.8em;
    border-radius: 4px;
}

/* ============================================
   RESPONSIVE DESIGN - CRITICAL FOR ALL DEVICES
   ============================================ */

/* Large screens */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .nav-link {
        margin: 0 3px;
        font-size: 0.85rem;
    }
}

/* Medium screens (tablets) */
@media (max-width: 992px) {
    .hero-section {
        min-height: auto;
        padding: 30px 15px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-image-container {
        text-align: center !important;
        margin-top: 30px;
    }
    
    .hero-img {
        max-width: 400px;
    }
    
    .navbar-collapse {
        background-color: rgba(62, 30, 56, 0.98);
        padding: 20px;
        border-radius: 10px;
        margin-top: 10px;
    }
    
    .navbar-nav {
        gap: 0;
    }
    
    .nav-link {
        padding: 10px 0 !important;
        margin: 0;
    }
    
    .btn-nav-login,
    .btn-nav-register,
    .btn-nav-post-job {
        margin: 5px 0;
        display: block;
        text-align: center;
    }
}

/* Small screens (phones) */
@media (max-width: 768px) {
    .hero-section {
        padding: 20px 10px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .hero-desc {
        font-size: 0.9rem;
    }
    
    .hero-img {
        max-width: 300px;
    }
    
    .footer-contact-bar {
        flex-direction: column;
        gap: 10px;
        padding: 20px;
    }
    
    .footer-item {
        font-size: 0.85rem;
    }
    
    .glass-card {
        padding: 1rem;
        margin: 0 5px;
    }
    
    .glass-filter-container {
        padding: 1rem;
    }
    
    .d-flex.gap-3 {
        flex-wrap: wrap;
        gap: 10px !important;
    }
    
    .btn-outline-white {
        padding: 8px 15px;
        font-size: 0.85rem;
    }
    
    .dashboard-table thead th,
    .dashboard-table tbody td {
        padding: 0.75rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    h2.text-white {
        font-size: 1.5rem;
    }
}

/* Extra small screens */
@media (max-width: 576px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
    }
    
    .hero-img {
        max-width: 250px;
    }
    
    .container {
        padding-left: 10px;
        padding-right: 10px;
    }
    
    .job-card .card-body {
        padding: 1rem !important;
    }
    
    .job-card-title {
        font-size: 1rem;
    }
    
    .btn-outline-white-premium {
        font-size: 0.85rem;
        padding: 8px 15px;
    }
    
    .navbar-brand span {
        font-size: 1.2rem !important;
    }
    
    .navbar-brand img {
        height: 30px !important;
    }
}

/* Prevent horizontal scroll on all devices */
.container-fluid,
.container,
.row {
    max-width: 100%;
    overflow-x: hidden;
}

/* Fix for tables on mobile */
.table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
