/* Main Styles */
body {
    background-color: #f8f9fa;
    color: #333;
}

/* Navbar Styles */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.navbar-brand {
    font-weight: bold;
    color: #28a745 !important;
}

/* Job Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

/* Only apply hover effect to job listing cards, not the search form */
#jobListings .card:hover {
    transform: translateY(-2px);
    transition: transform 0.2s ease-in-out;
}

.card-title {
    color: #28a745;
    font-weight: 600;
}

.badge {
    padding: 0.5em 0.8em;
    font-weight: 500;
}

/* Search Form Styles */
#jobSearchForm {
    background-color: #fff;
    padding: 0.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Button Styles */
.navbar .btn-primary,
.btn-primary {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.navbar .btn-primary:hover,
.btn-primary:hover {
    background-color: #218838 !important;
    border-color: #1e7e34 !important;
}

.btn-outline-primary {
    color: #28a745;
    border-color: #28a745;
}

.btn-outline-primary:hover {
    background-color: #28a745;
    border-color: #28a745;
}

.post-job-button {
    background-color: #ffd814 !important;
    border-color: #ffd814 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2) !important;
    font-weight: bold;
    font-size: 1rem;
}

.post-job-button:hover {
    background-color: #e4c112 !important;
    border-color: #e4c112 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3) !important;
}

@media (max-width: 991.98px) {
    .navbar-collapse .d-flex {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .navbar-collapse .btn {
        width: 100%;
    }
}

/* Pagination Styles */
.pagination .page-link {
    color: #28a745 !important;
    border-color: #28a745 !important;
    background-color: transparent !important;
}

.pagination .page-link:hover {
    color: #fff !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.pagination .page-item.active .page-link {
    background-color: #28a745 !important;
    border-color: #28a745 !important;
    color: #fff !important;
}

.pagination .page-item.disabled .page-link {
    color: #6c757d !important;
    border-color: #dee2e6 !important;
    background-color: #fff !important;
}

/* Footer Styles */
footer {
    background-color: #fff;
    box-shadow: 0 -2px 4px rgba(0,0,0,0.05);
}

footer a {
    color: #28a745;
    text-decoration: none;
}

footer a:hover {
    color: #218838;
    text-decoration: underline;
}

/* Error Page Styles */
.error-container {
    padding: 2rem 0;
}

.error-image {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}

.error-container .card {
    background-color: rgba(40, 167, 69, 0.05);
    border: 1px solid rgba(40, 167, 69, 0.1);
}

.error-container .btn {
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.error-container .btn-outline-success:hover {
    background-color: #28a745;
    color: #fff;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .d-flex.justify-content-between {
        flex-direction: column;
    }
    
    .text-end {
        text-align: left !important;
        margin-top: 1rem;
    }
    
    .error-container {
        padding: 1rem 0;
    }
    
    .error-container h1 {
        font-size: 4rem;
    }
    
    .error-container h2 {
        font-size: 2rem;
    }
}


h1 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.price-info {
    color: #666;
    margin-bottom: 2rem;
    font-style: italic;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #2c3e50;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="number"],
select,
textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}

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

input[type="checkbox"] {
    margin-right: 0.5rem;
}

.stripe-payment {
    margin: 2rem 0;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 4px;
}

#card-element {
    padding: 1rem;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#card-errors {
    color: #fa755a;
    margin-top: 0.5rem;
    font-size: 0.9rem;
}

button[type="submit"] {
    background: #2c3e50;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    width: 100%;
    transition: background 0.3s ease;
}

button[type="submit"]:hover {
    background: #34495e;
}

button[type="submit"]:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

/* Responsive design */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }
}

/* Mobile Button Styles */
@media (max-width: 991.98px) {
    .navbar-collapse .d-flex {
        width: 100%;
        padding: 0.5rem 0;
    }
    
    .navbar-collapse .btn {
        width: 100%;
    }
}

.pulse-button {
    animation: pulse 1s infinite; /* Apply the animation */
  }
  
  @keyframes pulse {
    0% {
      transform: scale(1); /* Start at normal size */
    }
    50% {
      transform: scale(1.05); /* Enlarge slightly at midpoint */
    }
    100% {
      transform: scale(1); /* Return to normal size */
    }
  }