/* Job feed Page css */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@600;900&family=Poppins:wght@400;500;600;700&display=swap');

body {
    font-family: 'Montserrat', sans-serif;
}

.job-title,
/* .category-title is a main heading in the dropdown menu */
.category-title {
    font-family: 'Montserrat', sans-serif;
}


.sort-label,
.sort-select,
.tab-button,
.text-input,
.select-input,
.search-button,
/* Subheadings and descriptive text */
.company-name,
.posted-date,
.ship-type-tag,
.requirements,
.tag-title,
.job-tag,
.search-tag,
.recent-searches-title,
.action-button,
.trending-keywords-title,
.trending-keywords-list{
    /* Ensure these explicitly use Poppins to override any other inherited font */
      font-family: 'Montserrat', sans-serif;
}

/* Optional: Make the Montserrat headings extra bold */
.job-title {
    color: #2c3e50;
    font-size: 20px;
    font-weight: 700; /* Keeping it bold, you could try 900 for extra impact */
    margin: 0 0 8px 0;
    line-height: 1.3;
    font-family: 'Montserrat', sans-serif; /* Explicitly set */
}

.category-title {
    /* Existing styles... */
    font-weight: 600; /* Use 600 or 700 for sub-headings */
    font-family: 'Montserrat', sans-serif; /* Explicitly set */
}

/* The rest of your existing CSS remains unchanged below this... */
/* ------------------------------------------- */
/* --- START OF YOUR ORIGINAL CSS (Unchanged) --- */
/* ------------------------------------------- */

.controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    flex-wrap: wrap;
    gap: 15px;
}

.trending-keywords-section {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
	font-weight:600;
}

.trending-keywords-title {
    font-weight: 600;
    color: #333;
    white-space: nowrap;
	
}

.trending-keywords-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.keyword-tag {
    background: #4299e11a;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    color: #005a87;
	font-weight:600;
    cursor: pointer;
    transition: all 0.3s ease;
  
}

.keyword-tag:hover {
    background: #0073aa;
    color: white;
    border-color: #0073aa;
}

.sort-section {
    flex-shrink: 0;
}

.sort-item {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.sort-label {
    color: #333;
    font-weight: 500;

}

.sort-select {
    height: 38px;	
    line-height: 38px;
    padding: 0 12px;
    border-radius: 6px;
    border: 1px solid #d0d0d0;
    font-size: 15px;
    appearance: none;
    background: white url('data:image/svg+xml;charset=UTF-8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 6.757 7.586 5.343 9l4.95 4.95z"/></svg>') no-repeat right 10px center;
    background-size: 12px;
    cursor: pointer;
    min-width: 150px;
    font-weight: 600;
    color: #003366;
    box-sizing: border-box;
}

/* Responsive design */
@media (max-width: 768px) {
    .controls-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .trending-keywords-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 100%;
    }
    
    .sort-section {
        width: 100%;
    }
    
    .sort-item {
        justify-content: flex-start;
        width: 100%;
    }
    
    .trending-keywords-list {
        margin-bottom: 0;
    }
}

.search-tag {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background: #f0f8ff;
    border: 1px solid #d1e7ff;
    border-radius: 20px;
    font-size: 13px;
    color: #0066cc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-tag:hover {
    background: #e1f0ff;
    border-color: #0066cc;
    transform: translateY(-1px);
}

.search-tag i {
    margin-left: 5px;
    font-size: 11px;
    opacity: 0.7;
}

.search-tag:hover i {
    opacity: 1;
}

.no-trending {
    font-size: 13px;
    color: #666;
    font-style: italic;
}
/* ------------------------------------------- */
/* --- MARINE SEARCH CONTAINER & TABS (Retained) --- */
/* ------------------------------------------- */
/* ------------------------------------------- */
.marine-search-container {
    max-width: 1250px;
    margin: 0 auto 40px auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    position: relative;
 
    width: 100%;
    display: block;
}
.marine-search-tabs {
    display: flex;
    margin-bottom: 20px;
    border-bottom: 3px solid #eaeaea;
}
.tab-button {
    padding: 12px 24px;
    border: none;
    background-color: #f8f9fa;
    color: #555;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    font-size: 16px;
    white-space: nowrap;
}

.tab-button:not(:last-child) {
	margin-right: 5px;
}
.tab-button:hover {
    background-color: #e9ecef;
}
.tab-button.active {
    background: linear-gradient(135deg, #005a87, #004670); /* Changed to dark blue background */
    color:#fff ; /* Changed to white text */
    border: 1px solid #003366;
    border-bottom: 1px solid #fff; /* White line to blend with container background */
    margin-bottom: -1px;
 
    box-shadow: 0 -2px 5px rgba(0, 51, 102, 0.1);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* --- Form Input General Styling (Retained) --- */
.search-form {
    display: flex;
    gap: 15px;
    align-items: stretch;
}
.text-input, .select-input, .search-button {
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    height: 50px;
    box-sizing: border-box;
    border: 1px solid #d0d0d0;
    transition: all 0.2s ease;
}
.text-input:focus, .select-input:focus {
    outline: none;
    border-color: #003366;
    box-shadow: 0 0 0 2px rgba(0, 51, 102, 0.1);
}

/* Input Sizing (Retained) */
.ship-form .text-input { flex: 3; }
.ship-form .custom-dropdown { flex: 2; }
.ship-form .search-button { flex: 1.5; }
.shore-form .text-input { flex: 4; }
.shore-form .select-input { flex: 3; }
.shore-form .search-button { flex: 3; }
.verified-form .text-input { flex: 4; }
.verified-form .custom-dropdown { flex: 3; }
.verified-form .search-button { flex: 2; }

/* Search Button (Retained) */
.search-button {
 background: linear-gradient(135deg, #005a87, #004670);
    color: white;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.5px;
}
.search-button:hover {
    
	 background:  linear-gradient(135deg, #005a87, #004670);
    transform: scale(0.9);
    box-shadow: 0 4px 8px rgba(0, 51, 102, 0.2);
}
.search-button:active {
    transform: translateY(0);
}


/* ------------------------------------------- */
/* --- CUSTOM DROPDOWN STYLING (REFINED) --- */
/* ------------------------------------------- */
/* Your provided CSS with minor adjustments */
.custom-dropdown {
    position: relative;
    display: inline-block;
    width: 70%;
    margin-bottom: 10px;
}

.dropdown-header {
    padding: 10px 15px;
    background: #fff;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap:30px;
}

.dropdown-header:after {
    content: '▼';
    font-size: 12px;
    color: #666;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 270px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);


}

.custom-dropdown.active .dropdown-menu {
    display: block;
}

/* Category styling */
.category {
    position: relative;
    user-select: none;
    font-size: 12px;
    transition: background-color 0.15s;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 5px;
    border-radius: 8px;
}
.category:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Title styling */
.category-title {
    display: flex;
    gap: 20px;
    align-items: center;
    width: 100%;
    cursor: pointer;
    padding: 10px!important;	
	padding-left: 28px!important;
    font-weight: 500;
    font-size: 1.3em;
    transition: all 0.2s ease;
    border-left: none;
    color: #111;
    border-radius: 4px;
	margin: 2px 5px;
    background-color: transparent;
}
.category-title:hover {
    background-color: #4299E11A;
    color: #003366;
	border-left: 3px solid #FF7518;	
}
.category-title::after {
    content: '▸';
    margin-left: 4px;
    font-size: 1.2em;
    color: #777;
    transition: transform 0.3s ease;
}
.category.active .category-title {
    background-color:	 #4299E11A;	
    color:#003366;
	 border-left: 3px solid #FF7518;	
}
.category.active .category-title::after {
    transform: rotate(90deg);
    color: #003366;
}
.cv-autofill-container {
    width: 100%;
    padding: 14px;
    background: #e8fff0;
    border: 2px solid #4CAF50;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cv-autofill-top {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 16px;
}

.cv-autofill-top i {
    font-size: 20px;
}

.cv-buttons-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

.cv-buttons-row button {
    padding: 6px 14px;
    border-radius: 6px;
    border: 1px solid #000;
    background: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* Sub-category menu styling */
.subcategory-menu {
    display: none;
    background-color: #fff;
    padding: 8px;
    animation: slideDown 0.3s ease;
    max-height: 250px;
    overflow-y: auto;
    overflow-x: hidden;
	font-size: 1.1em;
}
.category.active .subcategory-menu {
    display: block;
}

/* Option styling - same color for all options */
.option {
    padding: 10px!important;	
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: none;
    color: #555;
	font-weight:500;
    display: flex;
    padding-left: 28px!important;
    align-items: center;
    font-size: 1em;
    border-radius: 4px;
    margin: 2px 5px;
    background-color: transparent;
}
.option:hover {
    background-color: #e6f2ff;
    color: #003366;
	border-left: 3px solid #FF7518;	
    padding-left: 35px;
}
.option.selected {
    background: linear-gradient(135deg, #007cba, #005a87);
    color: white;
    border-left: 3px solid #FF7518;	
    padding-left: 32px;
}

/* Animation for submenu */
@keyframes slideDown {
    from { opacity: 0; max-height: 0; }
    to { opacity: 1; max-height: 200px; }
}

/* Recent searches */
.recent-searches-title {
    font-size: 14px;
    font-weight: 500;
    color: #6c757d;
    margin: 10px 0;
}
.recent-searches-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.search-tag {
    background-color: #e6f2ff;
    color: #003366;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s;
    
    font-weight: 500;
}
.search-tag:hover {
    background-color: #b3d9ff;
}

/* Loading and error states */
.loading-state, .error-state {
    text-align: center;
    padding: 40px;
    font-size: 16px;
    color: #666;
	
}

.job-listings-container {
    max-width: 1250px;
    margin: 0 auto 40px auto;
    position: relative;
}
.job-card-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
	
}
/* Job Card Styling */
.job-card {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    padding: 24px;
 
    border: 1px solid #eef2f7;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    
    min-height: 380px;
}

.job-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #007cba;
	border-left: 3px solid #007cba;
}

.job-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f4f8;
    flex-shrink: 0;
}

.company-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    flex: 1;
}

.company-logo {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 10px;
 background: linear-gradient(135deg, #005a87, #004670);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 124, 186, 0.2);
    overflow: hidden;
}

.company-logo-badge {
    color: white;
    font-weight: bold;
    font-size: 20px;
}

.company-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
}

.company-details {
    flex: 1;
}

.job-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a365d;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.company-name {
    font-size: 14px;
    color: #4a5568;
    margin: 0;
    font-weight: 600;
}

.verification-badges {
    display: flex;
   
    gap: 8px;
    align-items: flex-start;
    flex-shrink: 0;
	
}
 a:focus{
	outline:0!important;
	
}
.verification-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
	color:#4CBB17;
}

.rpsl-verified {
    background:#eeffec;
    color:#4CBB17;
   
}

.itf-verified {
   color:#4CBB17;
   background:#eeffec;
}

.job-content {
  
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ship-type-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
   background: rgba(66, 153, 225, 0.1);
    color:#005a87;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
    align-self: flex-start;
}

.requirements {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 16px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #007cba;
	font-weight:500;
   
}

.requirements i {
    color: #007cba;
    margin-top: 2px;
    flex-shrink: 0;
}

.requirements span {
    color: #4a5568;
    font-size: 14px;
    line-height: 1.5;
}

.job-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 16px;
    flex-shrink: 0;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #718096;
}

.meta-item i {
    color: #007cba;
    width: 14px;
}

.tags-section {
    margin-top: 16px;
    flex-shrink: 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.job-tag {
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.company-tag {
    background: rgba(123, 52, 30, 0.1);
    color: #c05621;
    border: 1px solid rgba(192, 86, 33, 0.3);
}

.vessel-tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.3);
}



/* Job Listings Container */
.job-listings-container {
    min-height: 400px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.job-listings-inner {
    width: 100%;
}

.job-card-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);    
    width: 100%;
}

/* Responsive Design */
@media (max-width: 768px) {
    .job-card-group {
        grid-template-columns: 1fr;
    }
    
    .job-card-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .verification-badges {
        flex-direction: row;
        align-self: flex-start;
    }
    
    .job-actions {
        flex-direction: row;
    }
}

/* Loading and Error States */
.centered-message,
.centered-loading-state, 
.centered-no-results,
.centered-error-state {
    /* Ensure it spans all columns if the parent is a grid */
    grid-column: 1 / -1;
    
    /* Centering styles */
    text-align: center;
  
    color: #666;

    /* If the inner container is a flex/grid and we need to center the *content* horizontally and vertically
       The existing text-align: center handles content, but this ensures the container itself spans full width. */
    width: 100%;
    box-sizing: border-box; /* Important for padding/width calculation */
}

/* Ensure the sub-elements retain the center alignment */
.centered-message i,
.centered-loading-state .loading-spinner,
.centered-no-results i,
.centered-error-state i {
    font-size: 48px;
    margin: 0 auto 20px auto; /* Center the spinner/icon block */
    color: #ccc;
    display: block; /* Allows margin: auto to work */
}

.centered-message h3,
.centered-loading-state p,
.centered-no-results h3,
.centered-error-state h3,
.centered-no-results p,
.centered-error-state p {
    margin: 0 0 10px 0;
    color: #333;
    text-align: center;
}

.centered-message p {
    margin: 0 0 20px 0;
    line-height: 1.5;
}
.no-results-image {
    width: 300px;
    height: 300px;
    object-fit: contain;
  
    border-radius: 8px;
}

/* ================================================= */
/* 1. Popup Overlay and Background Blur */
/* ================================================= */




.popup-overlay {
    /* Full screen overlay to capture clicks and blur background */
    position: fixed;
    top: 50px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent black background */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s, visibility 0.3s;
    /* Blur the content behind the overlay */
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* For Safari support */
} /* ← THIS CLOSING BRACE WAS MISSING */

.popup-overlay.active {
    visibility: visible;
    opacity: 1;
}

.job-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
 
    flex-wrap: wrap;
    gap: 8px;
    padding: 20px 0;
   
    width: 100%;
}

.page-btn {
    padding: 8px 16px;
    margin: 0 2px;
    border: 1px solid #ddd;
    background: white;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}

.page-btn:hover {
    background:  linear-gradient(135deg, #005a87, #004670);
    color: white;
    border-color: #0073aa;
}

.page-btn.active {
    background:  linear-gradient(135deg, #005a87, #004670);
    color: white;
    border-color: #0073aa;
}

.page-btn.prev,
.page-btn.next {
    font-weight: bold;
    padding: 8px 12px;
}

.page-ellipsis {
    padding: 8px 8px;
    color: #666;
    display: inline-block;
}

.pagination-info {
    margin-left: 15px;
    color: #666;
    font-size: 14px;
    font-weight: 500;
    display: inline-block;
    white-space: nowrap;
}



/* Responsive Design */
@media (max-width: 768px) {
    .job-pagination {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 15px 0;
        margin: 15px 0 30px 0;
    }
    
    .pagination-info {
        margin-left: 0;
        text-align: center;
        flex-basis: 100%;
        margin-top: 10px;
    }
    
   
    
    .page-btn {
        padding: 6px 12px;
        font-size: 13px;
        margin: 0 1px;
    }
    
    .page-btn.prev,
    .page-btn.next {
        padding: 6px 10px;
    }
    
    .page-ellipsis {
        padding: 6px 8px;
    }
}

/* Additional Mobile Optimization for Very Small Screens */
@media (max-width: 480px) {
    .job-pagination {
        gap: 4px;
    }
    
    .page-btn {
        padding: 5px 10px;
        font-size: 12px;
    }
    
    .page-btn.prev,
    .page-btn.next {
        padding: 5px 8px;
        font-size: 12px;
    }
    
    .pagination-info {
        font-size: 12px;
    }
}
/* ================================================= */
/* 2. Application Popup Modal */
/* ================================================= */
/* Application Success Popup Styles */
.application-success-popup {
    background: white;
    border-radius: 12px;
    padding: 40px 30px;
    max-width: 480px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    animation: popupSlideIn 0.4s ease-out;
}

.success-popup-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: #10b981;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: successBounce 0.6s ease;
}

.success-icon i {
    font-size: 40px;
    color: white;
}

.success-title {
    font-size: 28px;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.success-message {
    font-size: 16px;
    color: #64748b;
    line-height: 1.5;
    margin: 0;
}

.success-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
    max-width: 280px;
    margin: 10px 0;
}

.success-detail-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.success-detail-item i {
    color: #10b981;
    font-size: 16px;
    width: 20px;
}

.success-detail-item span {
    font-size: 14px;
    color: #475569;
    font-weight: 500;
}

.success-close-btn {
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 32px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 10px;
}

.success-close-btn:hover {
    background: #2563eb;
    transform: translateY(-2px);
}

/* Animations */
@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes successBounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
    }
}

/* Loading state for submit button */
.application-popup.loading .popup-body {
    opacity: 0.6;
    pointer-events: none;
}

.application-popup.loading .submit-button {
    position: relative;
}

.application-popup.loading .submit-button::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #ffffff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.application-popup {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 90%;
    max-width: 600px; /* Max width matching the screenshot */
    transform: scale(0.95);
    transition: transform 0.3s ease-out;
}

.popup-overlay.active .application-popup {
    transform: scale(1);
}

.popup-header {
     background:linear-gradient(135deg, #005a87, #004670);
    padding: 20px 25px;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    position: relative;
    border-bottom: 1px solid #eeeeee;
	
}

.popup-header h2#popup-job-title {
    font-size: 1.1em; /* Smaller job title */
    font-weight: 700;
    margin: 0;
    color: white;
    display: flex;
    align-items: center;
}

.popup-header h2#popup-job-title::before {
    content: "\f0e0"; /* Envelope icon */
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    margin-right: 10px;
    color: #ffc107; /* Yellow icon color */
    font-size: 1.4em;
}

.popup-header p#popup-company-name {
    font-size: 1.1em;
    color: white;
 font-weight: 600;
    margin: 3px 0 0 35px; /* Aligned with h2 content */
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5em;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    transition: color 0.2s;
}

.close-popup:hover {
    color: #333;
}

.popup-body {
    padding: 25px;
}

/* ================================================= */
/* 3. Form Styling (Matching Screenshot) */
/* ================================================= */

.popup-body .form-group {
    margin-bottom: 20px;
}
.input-form-group{
	margin-bottom: 20px;
width:50%;
}
.popup-body .form-group:last-child {
    margin-bottom: 0;
}
.input-form-group:last-child{
	    margin-bottom: 0;
}
.input-column{
	display: flex;
justify-content:space-between;
	gap:6px;
}
.popup-body label {
    display: block;
    font-weight: 600;
    font-size: 0.9em;
    margin-bottom: 8px;
    color: #495057;
}

.popup-body .form-control {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ced4da;
    border-radius: 6px;
    box-sizing: border-box;
    font-size: 1em;
    line-height: 1.5;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.popup-body .form-control:focus {
    border-color: #ffc107;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.popup-body textarea.form-control {
    min-height: 80px;
    resize: vertical;
}

/* CV Attachment Area (Key Design Feature) */
.file-attachment {
    border: 2px dashed #ffc107; /* Yellow dashed border */
    background-color: #fff8e1; /* Light yellow background */
    padding: 30px;
    text-align: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
    position: relative;
    overflow: hidden; /* To hide the actual file input */
}

.file-attachment:hover {
    background-color: #fceec9;
    border-color: #ffac33;
}

.file-attachment i {
    font-size: 2em;
    color: #ffc107;
    margin-bottom: 10px;
    display: block;
}

.file-attachment p {
    margin: 0;
    font-size: 0.9em;
    color: #6c757d;
}

/* Hidden file input for file-attachment area */
.file-attachment input[type="file"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0; /* Make it invisible */
    cursor: pointer;
}

.file-name-display {
    padding: 10px 15px;
    margin-top: 10px;
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    border-radius: 6px;
    font-size: 0.9em;
    color: #495057;
    word-break: break-word;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.file-name-display .remove-file {
    color: #dc3545;
    cursor: pointer;
    margin-left: 10px;
    font-weight: 700;
}

/* ================================================= */
/* 4. Footer and Submit Button */
/* ================================================= */

.popup-footer {
    padding: 0 25px 25px; /* Padding only at the bottom */
}

.submit-button {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #005a87, #004670); 
    color: white; 
    border: none;
    border-radius: 6px;
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.1s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-button:hover {
    background:linear-gradient(135deg, #0073aa, #005a87);
    transform: translateY(-1px);
}

.submit-button:disabled {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: #aaa;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
/* Loading state */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

/* Existing styles for the loading spinner and button remain valid: */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007cba;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    /* Already has margin: 0 auto 20px in the original snippet, which is good. */
    margin: 0 auto 20px; 
}

.retry-button {
    background: #007cba;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0; /* Center the button */
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.posted-date {
    color: #85929e;
    font-size: 13px;
    font-weight: 400;

}



/* Job Actions - FULL WIDTH BUTTONS */
.job-actions {
    display: flex;
    gap: 12px;
    margin-top: 20px;
	
}

.action-button {
        flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
 
    font-size: 14px;
    letter-spacing: 0.5px;
}

.apply-button {
        background: linear-gradient(135deg, #005a87, #004670);
    color: white;
	transition: all 0.3s ease;
	font-weight:600;

}
.apply-button:hover {
 
	background:linear-gradient(135deg, #005a87, #004670);
    transform: scale(0.9);
    box-shadow: 0 4px 12px rgba(0, 124, 186, 0.3);
	color :white;
}
.view-button {
  
	background:#FF7518;
    transition: all 0.3s ease;
	color: white;
	font-weight:600;
	
}
.view-button:hover {
        transform:scale(0.9);
	 	color: white;
}


/* Responsive Design */
@media (max-width: 768px) {
    .job-card {
    	padding: 15px;
    	margin: 10px 0;
    }
    
    .job-actions {
    	flex-direction: row;
    }
    
    .tags-container {
    	flex-direction: column;
    }

}

@media (max-width: 768px) {
  
@media (max-width: 768px) {
    .job-listings-container {
        margin-top: 0; /* Remove the fixed margin-top */
    }
    
    /* Remove or update this if it exists */
    .job-listing-container {
        margin-top: 0; /* Remove fixed margin */
    }
}

    .sort-item {
    	
    	flex-direction: row;
    	align-items: center;
    	justify-content: flex-start;
    	margin-bottom: 0; /* Clean up bottom margin */
		margin: 10px; /* Use margins for spacing on mobile */
    	transform: none;
		
    }
	.custom-dropdown {
		width:100%
	}
    .sort-select {
    	min-width: 100%; /* Make the dropdown span the full width of the container */
    	box-sizing: border-box;
    	
    }
    
    /* Ensure the custom dropdown follows the same sizing if you're using it now */
    .sort-dropdown {
    	width: 100%;	
    	min-width: 90%;
    	box-sizing: border-box;
    }
   

    .marine-search-container {
    	padding: 15px;
    	
    	transform: none;
    }

    .search-form {
    	flex-direction: column;
    	gap: 10px;
    }
    .ship-form .custom-dropdown,
    .shore-form .select-input,
    .ship-form .text-input,
    .shore-form .text-input,
    .search-button,
    .verified-form .text-input,
    .verified-form .custom-dropdown {
    	flex: none !important;
    	width: 100%;
    }

    .marine-search-tabs {
        
        /* Add flex-wrap: wrap to allow wrapping if they can't shrink enough */
        flex-wrap: wrap; 
        /* The container's border-bottom must be visible, so remove padding-bottom */
    }
    .tab-button {
        /* This is the key change: tell the buttons to shrink equally (flex: 1) */
        flex: 1; 
        min-width: 0; /* Allows the flex item to shrink below its content width */
        
        /* Restore desktop tab look */
        border-radius: 8px 8px 0 0; 
        margin-bottom: 0; 
    
        padding: 10px 12px; /* Slight reduction in padding to save space */
        font-size: 12px; /* Slight reduction in font size to save space */
        
        border: 1px solid #e0e0e0;
        border-bottom: none;
    }
    .tab-button.active {
        margin-bottom: -1px; /* Restore overlap */
        border: 1px solid #003366;
        border-bottom: 1px solid #fff; /* White line to blend with container background */
    }
    /* Mobile FIX: Correct Dropdown Positioning and Sizing */
    .dropdown-menu {
    	position: absolute;
    	width: 100%;
    	left: 0;
    	right: 0;
    	top: 100%;
    	
    	border-radius:	 8px 8px;
    	box-shadow: 0 4px 8px rgba(0, 51, 102, 0.1);
    	max-height: 70vh;
    	overflow-y: auto;
    }
    .custom-dropdown.active {
    	border-radius: 8px 8px 0 0;
    	box-shadow: 0 4px 8px rgba(0, 51, 102, 0.1);
    }

    /* General mobile adjustments */
    .header-placeholder {
    	flex-wrap: wrap;
    	gap: 10px;
    	justify-content: center;
    }
    .job-card-group {
    	grid-template-columns: 1fr;
    }
	.job-listing-container{
		margin-top:280px
	}
}
.job-card-group.error-state {
    display: grid;

    place-items: center; /* centers both horizontally and vertically */
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    min-height: 200px; /* optional – adjust based on your layout */
    font-size: 16px;
    color: #555;
    background-color: #f8f8f8; /* optional styling */
    border-radius: 8px;
}


/* Login Overlay - Centered on Screen */
.popup-overlay {
    position: fixed;
   
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
  
    box-sizing: border-box;
}

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



.close-popup:hover {
    background: rgba(255, 255, 255, 0.3);
}

.login-popup .popup-body {
    padding: 40px 30px;
    text-align: center;
}

.google-login-container {
    margin-bottom: 0;
}

.google-login-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    background: white;
    color: #757575;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 500;
    font-size: 14px;
    border: 1px solid #dadce0;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Roboto', Arial, sans-serif;
}

.google-login-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
	color:black;
    transform: translateY(-1px);
}

.google-login-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.google-login-btn i {
    font-size: 18px;
    background: conic-gradient(from -45deg, #ea4335 110deg, #4285f4 90deg 180deg, #34a853 180deg 270deg, #fbbc05 270deg) 73% 55%/150% 150% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

/* Alternative: Using individual colors for Google logo */
.google-login-btn .google-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTgiIGhlaWdodD0iMTgiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48cGF0aCBkPSJNMTcuNiA5LjJsLS4xLTEuOEg5djMuNGg0LjhDMTMuNiAxMiAxMyAxMyAxMiAxMy42djIuMmgzYTguOCA4LjggMCAwIDAgMi42LTYuNnoiIGZpbGw9IiM0Mjg1RjQiIGZpbGwtcnVsZT0ibm9uemVybyIvPjxwYXRoIGQ9Ik05IDE4YzIuNCAwIDQuNS0uOCA2LTIuMmwtMy0yLjJhNS40IDUuNCAwIDAgMS04LTIuOUgxVjEzYTkgOSAwIDAgMCA4IDV6IiBmaWxsPSIjMzRBODUzIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNNCAxMC43YTUuNCA1LjQgMCAwIDEgMC0zLjRWNUgxYTkgOSAwIDAgMCAwIDhsMy0yLjN6IiBmaWxsPSIjRkJCMDUwIiBmaWxsLXJ1bGU9Im5vbnplcm8iLz48cGF0aCBkPSJNOSAzLjZjMS4zIDAgMi41LjQgMy40IDEuM0wxNSAyLjNBOSA5IDAgMCAwIDEgNWwzIDIuNGE1LjQgNS40IDAgMCAxIDUtMy43eiIgZmlsbD0iI0VBQzM1NSIgZmlsbC1ydWxlPSJub256ZXJvIi8+PHBhdGggZD0iTTAgMGgxOHYxOEgweiIvPjwvZz48L3N2Zz4=') center center no-repeat;
}

.login-loading {
    text-align: center;
    padding: 20px;
}

.login-loading .loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #dc2626;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 480px) {
   
    
    .popup-body {
        padding: 20px;
    }
    
    .google-login-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}
/* Logo Link Styles */
.logo-link {
    display: block;
    text-decoration: none;
    text-align: center;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.logo-link:hover {
    transform: scale(1.02);
}

.login-popup-logo {
    height: 60px;
    width: auto;
    max-width: 200px;
    margin: 0 auto 12px;
    display: block;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.logo-link:hover .login-popup-logo {
    transform: scale(1.05);
}

.logo-fallback {
    font-size: 24px;
    font-weight: 700;
    color: #005a87;
    display: block;
    text-decoration: none;
    background: linear-gradient(135deg, #005a87, #004670);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    transition: all 0.3s ease;
}

.logo-link:hover .logo-fallback {
    transform: scale(1.05);
}

.login-subtitle {
    margin-bottom: 32px;
    color: #64748b;
    font-size: 15px;
    line-height: 1.5;
    text-align: center;
}

/* Update existing login logo styles */
.professional-login-popup .login-logo {
    margin-bottom: 24px;
    padding-top: 10px;
}

.professional-login-popup .login-logo h1 {
    display: none; /* Hide the old welcome back heading */
}
/* Extra Small Devices */
@media (max-width: 360px) {
    .login-popup {
        max-width: 300px;
    }
    
    .login-popup .popup-body {
        padding: 20px 15px;
    }
    
    .google-login-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}
 .login-popup {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            z-index:9999;
            display: none;
            align-items: center;
            justify-content: center;
            background: rgba(0, 0, 0, 0.7);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s ease;
        }
        
        .login-popup.active {
            display: flex;
            opacity: 1;
            visibility: visible;
        }
        
        .login-popup-content {
            background: white;
            border-radius: 16px;
            width: 90%;
            max-width: 600px;
            max-height: 90vh;
            overflow-y: auto;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.4);
            animation: popupSlideIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            transform: translateY(0);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }
        
        @keyframes popupSlideIn {
            from {
                opacity: 0;
                transform: scale(0.9) translateY(-30px);
            }
            to {
                opacity: 1;
                transform: scale(1) translateY(0);
            }
        }
        
        .login-popup-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 24px;
            border-bottom: 1px solid #e8ecef;
            background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
            border-radius: 16px 16px 0 0;
        }
        
        .login-popup-header h3 {
            margin: 0;
            font-size: 22px;
            font-weight: 700;
            color: #1e293b;
            background: linear-gradient(135deg, #005a87, #004670);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
        }
        
        .login-popup-close {
            background: none;
            border: none;
            font-size: 28px;
            cursor: pointer;
            color: #64748b;
            padding: 4px;
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            transition: all 0.3s ease;
      
        }
        
        .login-popup-close:hover {
            color: #1e293b;
            background: #e2e8f0;
            transform: rotate(90deg);
        }
        
        .login-popup-body {
            padding: 32px 24px;
        }
        
        .professional-login-popup .login-card {
            background: transparent;
            padding: 0;
            border-radius: 0;
            box-shadow: none;
            text-align: center;
        }
        
        .professional-login-popup .login-logo {
            margin-bottom: 24px;
        }
        
        .professional-login-popup .login-logo img {
            height: 48px;
            margin-bottom: 16px;
            border-radius: 8px;
        }
        
        .professional-login-popup .login-logo h1 {
            font-size: 26px;
            margin-bottom: 8px;
            color: #1e293b;
            font-weight: 700;
        }
        
        .professional-login-popup .login-logo p {
            margin-bottom: 32px;
            color: #64748b;
            font-size: 15px;
            line-height: 1.5;
        }
    
        /* Improved Google Login Button */
        .google-login-btn {
            width: 100%;
            padding: 16px 24px;
            background: white;
            border: 2px solid #e2e8f0;
            border-radius: 12px;
            font-size: 16px;
            font-weight: 600;
            color: #374151;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            transition: all 0.3s ease;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
            margin-bottom: 20px;
        }

        .google-login-btn:hover {
            background: #f8fafc;
            border-color: #005a87;
            box-shadow: 0 8px 20px rgba(0, 90, 135, 0.15);
            transform: translateY(-2px);
        }

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

        .login-terms {
            font-size: 13px;
            color: #64748b;
            margin-top: 20px;
            line-height: 1.5;
            text-align: center;
        }

        .login-terms a {
            color: #005a87;
            text-decoration: none;
            font-weight: 500;
            transition: color 0.3s ease;
        }

        .login-terms a:hover {
            color: #004670;
            text-decoration: underline;
        }

        /* Loading state */
        .google-login-btn.loading {
            opacity: 0.7;
            pointer-events: none;
            background: #f8fafc;
        }

        .google-login-btn.loading::after {
            content: "";
            width: 18px;
            height: 18px;
            border: 2px solid transparent;
            border-top: 2px solid #005a87;
            border-radius: 50%;
            animation: spin 1s linear infinite;
            margin-left: 8px;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Body overflow hidden when popup is open */
        body.login-popup-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        /* Ensure popup is centered on all screens */
        @media (max-width: 768px) {
            .login-popup-content {
                margin: 20px;
                max-width: calc(100% - 40px);
                border-radius: 12px;
            }
            
            .login-popup-header {
                padding: 20px;
            }
            
            .login-popup-body {
                padding: 24px 20px;
            }
            
            .professional-login-popup .login-logo h1 {
                font-size: 22px;
            }
        }

        /* Prevent background scroll when popup is open */
        html.login-popup-open {
            overflow: hidden;
        }
.cv-autofill-container {
    display: grid;
	grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    gap: 10px;
    background: #f3f4f6;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 15px;
}

.view-cv-btn {
    background: linear-gradient(135deg, #005a87, #004670);
    color: white;
    text-decoration: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
	transition:all 3s;
}
.view-cv-btn:hover{
	color:white;
	transform:scale(0.9);
}
.change-cv-btn {
    background: #e5e7eb;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
	transition:all 3s;
}

.change-cv-btn:hover {
    background: #d1d5db;
	transform:scale(0.9);
}
#cv-preview-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: flex-start;
  z-index: 10000;
  opacity: 0;
  transition: opacity 0.3s ease;
  overflow-y: auto;
  padding: 30px 0;
}

#cv-preview-overlay.active {
  opacity: 1;
}

.cv-preview-container {
  background: #fff;
  width: 95%;
  max-width: 1000px;
  border-radius: 16px;
  margin-top: 10vh; /* near 90vh on mobile */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  animation: slideUp 0.3s ease;
  max-height: 90vh;
}

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

/* Header */
.cv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  position: sticky;
  top: 0;
  z-index: 10;
}
.cv-header h2 {
  font-size: 18px;
  font-weight: 600;
}
.back-btn,
.cancel-btn {
  background: none;
  border: none;
  font-size: 16px;
  cursor: pointer;
}
.cancel-btn {
  color: linear-gradient(135deg, #005a87, #004670);
}


/* CV Card */
.cv-card {
  background: #fff;
  margin: 15px 20px;
  border-radius: 12px;
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.cv-file-info {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 15px 18px;
  border-bottom: 1px solid #e5e7eb;
}

.cv-file-info i.fa-file-pdf {
  font-size: 22px;
  color: #dc2626;
}

.cv-meta h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
}

.cv-meta p {
  font-size: 13px;
  color: #6b7280;
  margin: 2px 0 0 0;
}

.check-icon {
  margin-left: auto;
  color: #16a34a;
  font-size: 20px;
}

.cv-preview-frame iframe,
#cv-preview-frame {
  width: 100%;
  height: 450px;
  border: none;
}

/* CV Options Dropdown */
.cv-options {
  position: relative;
  text-align: center;
  padding: 15px;
  border-top: 1px solid #e5e7eb;
}

#cv-options-btn {
  background: none;
  border: none;
  color: linear-gradient(135deg, #005a87, #004670);
  font-weight: 600;
  cursor: pointer;
  font-size: 15px;
}
#cv-options-btn i {
  margin-right: 6px;
}

.cv-options-menu {
  position: absolute;
  bottom: 60px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  width: 220px;
  animation: fadeIn 0.2s ease;
  z-index: 10000;
}

.cv-options-menu button {
  background: none;
  border: none;
  color: #374151;
  text-align: left;
  width: 100%;
  padding: 10px 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s;
}

.cv-options-menu button:hover {
  background: #f3f4f6;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translate(-50%, 10px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* Footer */
.cv-footer {
  border-top: 1px solid #e5e7eb;
  padding: 15px 20px;
  text-align: center;
  background: #f9fafb;

  bottom: 0;
}
.continue-btn {
  width: 100%;
  background:linear-gradient(135deg, #005a87, #004670);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  padding: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.continue-btn:hover {
  background: linear-gradient(135deg, #005a87, #004670);
	color: white;
	transform: scale(0.9);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .cv-preview-container {
    width: 95%;
    margin-top:120px;
    max-height: 100vh;
	z-index:10000;
  }
  .cv-preview-frame iframe {
    height: 700px;
  }
}

/* Ensure popup stays centered even when content changes */
.login-popup {
    transform: translateZ(0); /* Hardware acceleration for smoother animation */
}

/* Backdrop filter for modern browsers */
@supports (backdrop-filter: blur(10px)) {
    .popup-overlay {
        backdrop-filter: blur(5px);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .login-popup {
        border: 2px solid #000;
    }
    
    .google-login-btn {
        border: 1px solid #000;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .login-popup {
        animation: none;
    }
    
    .google-login-btn {
        transition: none;
    }
}



/* Recent searches section management */
.recent-searches-section {
    transition: all 0.3s ease;
}

.recent-searches-section[style*="display: none"] {
    margin: 0;
    padding: 0;
    height: 0;
    overflow: hidden;
}

/* Notification improvements */
.notification {
    position: fixed;
    top: 150px;
    right: 20px;
    left: 20px;
    background: #4CAF50;
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 10001; /* Higher than popup */
    animation: slideInRight 0.3s ease;
    max-width: 400px;
    margin: 0 auto;
}

.notification.error {
    background: #f44336;
	
}

.notification.info {
    background: #2196F3;
}

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

.notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    margin-left: 15px;
    flex-shrink: 0;
}

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0); opacity: 1; }
    to { transform: translateX(100%); opacity: 0; }
}

/* Mobile notifications */
@media (max-width: 768px) {
    .notification {
        top: 150px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
}
.mobile-file-input-hack {
    position: absolute;
    top: 0;
    right: 0;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    /* Make it invisible but clickable */
    opacity: 0;
    cursor: pointer;
    /* Ensure it is above all other content in the div */
    z-index: 10;
}

/* Job-detailpage */
/* --------------------*/

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

/* Modern Marine Professional Design System */
.marine-detail {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: #4a5568;
 

	border-radius:14px;
    margin-top:-30px;
}

.marine-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 12px;
	border: 2px solid #007cba;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.marine-error {
    background: white;
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    color: #666;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}
/* Header Styles */
.marine-detail-header {
    background: white;
    color: #1a365d;
    padding: 40px 0 30px 0;
   	border: 2px solid #007cba;
	border-radius: 12px;
	border-left: 2px solid  #007cba;
}

.marine-header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 40px;
	
    align-items: start;
}

.marine-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    margin-bottom: 20px;
    opacity: 0.8;
    font-family: 'Montserrat', sans-serif;
}

.marine-breadcrumb a {
    color: #005a87;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.marine-breadcrumb a:hover {
    color: #004670;
    text-decoration: underline;
}

.marine-breadcrumb-divider {
    opacity: 0.6;
}

.marine-main-title {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.3;
   
    color: #1a365d;
    font-family: 'Montserrat', sans-serif;
}

.marine-company-badge {
    display: flex;
    align-items: center;
    gap: 16px;
}

.marine-company-logo {
    width: 64px;
    height: 64px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid #eef2f7;
}

.marine-company-info h2 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #1a365d;
    font-family: 'Montserrat', sans-serif;
}

.marine-verification-strip {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.marine-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
     font-family: 'Montserrat', sans-serif;
}

.marine-badge-rpsl {
    background:#eeffec;
    color:#4CBB17;

}

.marine-badge-itf {
   background:#eeffec;
    color:#4CBB17;
 
}

.marine-posted-date {
    opacity: 0.8;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #718096;
    font-family: 'Montserrat', sans-serif;
}

/* Action Section */
.marine-action-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.marine-vessel-types {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(66, 153, 225, 0.1);
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: #005a87;
    font-weight: 500;
	width:fit-content;
	
}


/* Main Content */
.marine-detail-main {
    max-width: 1200px;
    margin: 30px auto;
    
}

.marine-content-grid {
    display: grid;
    grid-template-columns: 1fr 400px;
    align-items: start;
    gap:20px;
}

/* Card Styles */
.marine-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #eef2f7;
 
    transition: all 0.3s ease;
}
.marine-card:not(:last-child){
	   margin-bottom: 20px;
}
.marine-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.marine-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 20px;
    font-family: 'Montserrat', sans-serif;
}

/* Facts Grid */
.marine-facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.marine-fact {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #005a87;
}

.marine-fact-icon {
    width: 40px;
    height: 40px;
    background: #005a87;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}
 .marine-btn-apply {
	background:#004670 !important;
	color:white;
}
.marine-fact-content label {
    display: block;
    font-size: 12px;
    color: #718096;
    margin-bottom: 4px;
    font-family: 'Montserrat', sans-serif;
}

.marine-fact-content span {
    font-weight: 600;
    color: #1a365d;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

/* Requirements */


.marine-requirements h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1a365d;
    margin-bottom: 8px;
    font-family: 'Montserrat', sans-serif;
}



.marine-requirement-item {
   
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

.marine-requirement-item .fa-check {
    color: #26a65b;
    margin-top: 6px;
    flex-shrink: 0;
    font-size: 14px;
}

/* Positions List */
.marine-positions-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.marine-position-item {
    padding: 16px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #005a87;
}

.marine-position-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 8px;
}

.marine-position-header h4 {
    font-weight: 600;
    color: #1a365d;
    margin: 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.marine-position-tag {
    background: #005a87;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    font-family: 'Montserrat', sans-serif;
}

.marine-position-meta {
    color: #718096;
    margin-bottom: 8px;
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
}

.marine-position-requirements {
    background: white;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #eef2f7;
   font-family: 'Montserrat', sans-serif;
    font-size: 14px;
}

/* Sidebar Cards */
.marine-apply-card {
    background: linear-gradient(135deg, #005a87, #004670);
    color: white;
}

.marine-apply-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.marine-opportunity{
	   display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}
.marine-opportunity h3{
	 color: #1a365d;
    margin: 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}
.marine-apply-header h3 {
    color: white;
    margin: 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.marine-apply-card p {
    font-size: 14px;
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 16px;
}

.marine-contact-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 8px;
    margin: 16px 0;
}

.marine-contact-info h4 {
    color: white;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.marine-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 14px;
   font-family: 'Montserrat', sans-serif;
}

.marine-apply-actions {
    display: flex;
  
    gap: 12px;
}

.marine-certification-card {
    text-align: center;
    background: #f8fafc;
    border: 2px solid #eef2f7;
    padding: 24px;
}

.marine-cert-icon {
    font-size: 40px;
    color: #005a87;
    margin-bottom: 12px;
}

.marine-certification-card h3 {
    color: #1a365d;
    margin-bottom: 8px;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.marine-certification-card p {
    font-size: 14px;
   font-family: 'Montserrat', sans-serif;
    margin-bottom: 16px;
    color: #718096;
}

/* Related Jobs */
.marine-related-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.marine-related-item {
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 2px solid #eef2f7;
    transition: all 0.3s ease;
}

.marine-related-item:hover {
    border-left-color: #005a87;
    transform: translateX(4px);
}

.marine-related-item h4 {
    margin: 0 0 4px 0;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif;
}

.marine-related-item h4 a {
    color: #1a365d;
    text-decoration: none;
    font-size: 16px;
}

.marine-related-item h4 a:hover {
    color: #005a87;
}

.marine-related-company {
  
    font-size: 14px;
    margin-bottom: 4px;
   font-family: 'Montserrat', sans-serif;
	font-weight:600;
}

.marine-related-tag {
    background: #eef2f7;
    color: #4a5568;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
   font-family: 'Montserrat', sans-serif;
}

/* Button Styles */
.marine-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: 'Montserrat', sans-serif;
}

.marine-btn-primary {
    background: #FF7518;
    color: white;
    font-weight: 600;
}

.marine-btn-primary:hover {
  transform:scale(0.9);
    
 
}

.marine-btn-secondary {
    background: #004670;
    color: white;
    font-weight: 600;
	
}

.marine-btn-secondary:hover {
   transform:scale(0.9);
}

.marine-btn-outline {
  background: #004670;
    color: white;
    font-weight: 600;
}

.marine-btn-outline:hover {
      transform:scale(0.9);
}

.marine-btn-full {
    width: 100%;
}

/* Icon Styles - Using Font Awesome */
.marine-card-title i,
.marine-badge i,
.marine-posted-date i,
.marine-vessel-types i,
.marine-fact-icon i,
.marine-requirement-item i,
.marine-apply-header i,
.marine-contact-item i,
.marine-cert-icon i {
    font-size: inherit;
}

/* Responsive Design */
@media (max-width: 1024px) {
   
    
    .marine-header-content {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .marine-action-section {
        align-items: stretch;
    }
    
    .marine-action-buttons {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .marine-detail-main {
        padding: 10px;
    }
     .marine-content-grid {
        grid-template-columns: 1fr;
    }
    .marine-header-content {
        padding: 0 20px;
    }

    .marine-main-title {
        font-size: 18px;
    }
    
    .marine-facts-grid {
        grid-template-columns: 1fr;
    }
    
    .marine-company-badge {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .marine-verification-strip {
      
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .marine-card {
        padding: 20px;
    }
    
    .marine-main-title {
        font-size: 16px;
    }
    
   
    
    .marine-btn {
        width: 100%;
    }
}

/* Print Styles */
@media print {
    .marine-detail-header {
        background: white !important;
        color: black !important;
        border-bottom: 2px solid #eef2f7;
    }
    
    .marine-sidebar {
        display: none;
    }
    
    .marine-content-grid {
        grid-template-columns: 1fr;
    }
    
    .marine-action-section {
        display: none;
    }
    
    .marine-btn {
        display: none;
    }
}


/*Profile Page Css */ 

.profile-container {
    display: flex;
    gap: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.profile-sidebar {
    width: 300px;
    background: #004670;
    color: white;
    padding: 30px 20px;
}

.user-info {
    text-align: center;
    margin-bottom: 30px;
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
	border:1px solid white;
    overflow: hidden;
    margin: 0 auto 15px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
	border-radius:50%!important;
    
}
.elementor img{
	border-radius:50%;
}
.avatar-placeholder {
    width: 100%;
    height: 100%;
    background:#004670;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
	    border: 1px solid white;
    border-radius: 50%;
}

.user-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
color:white;
}

.user-info p {
    margin: 0;
    color: white;
    font-size: 14px;
}

.profile-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.profile-nav li {
    margin-bottom: 5px;
}

.nav-item {
    display: block;
    padding: 12px 15px;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.nav-item:hover, .nav-item.active {
    background: white;
    color: #004670;
}

.logout-link {
    color: #e74c3c !important;
}

.profile-content {
    flex: 1;
    padding: 30px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-header {
    margin-bottom: 30px;
}

.tab-header h2 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.tab-header p {
    margin: 0;
    color: #7f8c8d;
}

/* Applications Cards */
.applications-container {
    display: grid;
    grid-template-columns:1fr 1fr;
    gap: 15px;
}

.application-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.application-card:hover {
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.app-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 15px;
}

.app-job-info {
    flex: 1;
}

.app-job-title {
    font-size: 18px;
    font-weight: 600;
    color: #004670;
    margin: 0 0 5px 0;
}

.app-company {
    color: black;
    margin: 0;
    font-size: 14px;
}

.app-status-badge {
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.app-card-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.app-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.meta-label {
    font-weight: 600;
    color: black;
    font-size: 14px;
}

.meta-value {
    color: #718096;
    font-size: 14px;
}

.app-message {
    background: #f7fafc;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    border-left: 4px solid #4299e1;
}

.app-message strong {
    color: #2d3748;
    display: block;
    margin-bottom: 5px;
}

.app-message p {
    margin: 0;
    color: #4a5568;
    font-size: 14px;
    line-height: 1.4;
}

.app-card-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.app-action-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.app-action-btn.view-job {
    background: #4299e1;
    color: white;
}

.app-action-btn.withdraw {
    background: #e53e3e;
    color: white;
}

.app-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* No Applications State */
.no-applications {
    text-align: center;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border: 2px dashed #e2e8f0;
}

.no-apps-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.no-applications h3 {
    color: #4a5568;
    margin-bottom: 10px;
}

.no-applications p {
    color: #718096;
    margin-bottom: 20px;
}

.browse-jobs-btn  {
    background: #4299e1;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}
.update-profile-btn{
	background: #4299e1;
    color: white;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-block;
}
.browse-jobs-btn:hover {
    background: #3182ce;
    color: white;
    text-decoration: none;
}

/* CV Preview Card */
.cv-preview-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.cv-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.cv-icon {
    font-size: 32px;
}

.cv-info h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
}

.cv-filename {
    margin: 0;
    color: #4299e1;
    font-weight: 500;
    word-break: break-word;
}

.cv-status {
    margin: 0;
    color: #48bb78;
    font-size: 14px;
}

.cv-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.cv-action-btn {
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 120px;
}

.cv-action-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Upload States */
.uploading-spinner {
    text-align: center;
    padding: 20px;
    color: #4299e1;
    font-weight: 500;
}

.loading-spinner1 {
    text-align: center;
    padding: 40px;
    color: #718096;
    font-size: 16px;
	grid-column:1/-1;
}

/* Modal Styles - UPDATED FOR RESPONSIVENESS */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    overflow: auto;
}

.modal-content {
    background-color: #fefefe;
    margin: 8% auto;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 18px 18px 0 18px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.modal-body {
    flex: 1;
    overflow: auto;
    padding: 0;
}

.modal-footer {
    padding: 20px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex-shrink: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #718096;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-primary {
    background: #4299e1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.btn-secondary {
    background: #718096;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

/* Profile Details */
.profile-details {
    display: grid;
    gap: 20px;
}

.detail-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.detail-card h3 {
    margin: 0 0 15px 0;
    color: #2d3748;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid #f7fafc;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    font-weight: 600;
    color: #4a5568;
}

.detail-value {
    color: #718096;
    text-align: right;
    word-break: break-word;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.stat-item {
    text-align: center;
    padding: 15px;
    background: white;
    border-radius: 6px;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #004670;
    margin-bottom: 5px;
}

.stat-label {
    color: black;
    font-size: 14px;
}

/* Application Filters */
.application-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 16px;
   
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.filter-btn.active {
    background: #004670;
    color: white;
   
}
	.jobs-container{
		display: grid;
    grid-template-columns: 1fr 1fr;
		gap:2px;
		margin-top:6px;
	}
	.profile-message {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 14px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    z-index: 99999;
    display: none;
    animation: fadeIn 0.3s ease;
    color: #fff;
}

.profile-message.success {
    background-color: #48bb78; /* green */
}

.profile-message.error {
    background-color: #e53e3e; /* red */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

.input-error {
    border: 2px solid #e53e3e !important;
    background: #ffecec !important;
}

.input-success {
    border: 2px solid #48bb78 !important;
    background: #f0fff4 !important;
}
	.match-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

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

.partial-match {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.already-applied-label {
    background: #d2d9d5;
    color: black;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
}

.job-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
}

.view-job-btn {
    background: #005a87;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s;
}

.view-job-btn:hover {
    background: #004670;
}
/* Pagination */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 8px 16px;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-info {
    color: #718096;
    font-size: 14px;
}

/* Upload Area */
.upload-area {
    text-align: center;
    padding: 40px 20px;
    border: 2px dashed #e2e8f0;
    border-radius: 8px;
    background: #f7fafc;
}

.upload-icon {
    font-size: 48px;
    margin-bottom: 15px;
}

.upload-btn {
    background: #4299e1;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
}

/* Resume Tips */
.resume-tips {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.resume-tips h4 {
    margin: 0 0 10px 0;
    color: #856404;
}

.resume-tips ul {
    margin: 0;
    padding-left: 20px;
    color: #856404;
}

.resume-tips li {
    margin-bottom: 5px;
}

/* Settings */
.settings-section {
    display: grid;
    gap: 20px;
}

.settings-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #f7fafc;
}

.setting-item:last-child {
    border-bottom: none;
}

.setting-info h4 {
    margin: 0 0 5px 0;
    color: #2d3748;
    font-size: 16px;
}

.setting-info p {
    margin: 0;
    color: #718096;
    font-size: 14px;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #004670;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.settings-form {
    display: grid;
    gap: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.form-actions{
	    margin-top: 10px;
}
.save-profile-btn{
	background:#004670 !important;
	border-radius:15px;
}
.form-group p{
	margin:0!important;
}
.form-group label {
    font-weight: 600;
    color: #4a5568;
    font-size: 14px;
	margin-top:8px !important;
	margin-bottom:0!important;
}

.form-group input {
    padding: 10px;
    border: 1px solid #004670;
    border-radius: 6px;
    font-size: 14px;
    width: 100%;
    box-sizing: border-box;
}

.save-btn {
    background: #004670;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    width: fit-content;
    font-size: 14px;
}
 .no-jobs{

  
    grid-column: 1 / -1;
  
    justify-content: center;
    align-items: center;
    justify-items:center;
    margin: 40px 0;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.job-tags{
	    background: #f6f6f6;
    border-radius: 10px;
    width: fit-content;
}
/* Large tablets and small laptops (1024px and down) */
@media screen and (max-width: 1024px) {
    .profile-container {
        gap: 20px;
    }
    
    .profile-sidebar {
        width: 250px;
        padding: 20px 15px;
    }
    
    .profile-content {
        padding: 20px;
    }
	.applications-container{
		grid-template-columns:1fr;
	}
   
}

/* Tablets (768px and down) */
@media screen and (max-width: 768px) {
    .profile-page {
        padding: 15px;
    }
    
    .profile-container {
        flex-direction: column;
        gap: 0;
    }
	.jobs-container{
		  
    grid-template-columns: 1fr;
	}
    
    .profile-sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .profile-nav ul {
        display: flex;
        gap: 10px;
        overflow-x: auto;
        padding-bottom: 10px;
    }
    
    .profile-nav li {
        margin-bottom: 0;
        flex-shrink: 0;
    }
    
    .nav-item {
        white-space: nowrap;
        padding: 10px 15px;
    }
    
    .profile-content {
        padding: 20px;
    }
    
    .app-card-header {
        flex-direction: column;
        gap: 10px;
        align-items: flex-start;
    }
    
    .app-status-badge {
        align-self: flex-start;
    }
    
    .app-card-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .app-card-actions {
        flex-direction: column;
    }
    
    .cv-actions {
        flex-direction: column;
    }
    
    .cv-action-btn {
        width: 100%;
    }
    
    .modal-content {
        width: 95%;
        margin: 16% auto;
        max-height: 90vh;
    }
    
    .modal-footer {
        flex-direction: column;
    }
    
    .modal-footer .btn-primary,
    .modal-footer .btn-secondary {
        width: 100%;
        text-align: center;
    }
    
    .detail-row {
        flex-direction: column;
        gap: 5px;
    }
    
    .detail-value {
        text-align: left;
    }
    
    .stats-grid {
     
     
        gap: 10px;
    }
    
    .application-filters {
        justify-content: center;
    }
    
    .pagination-container {
        flex-direction: column;
        gap: 10px;
    }
    
    .page-info {
        order: -1;
    }
}

/* Mobile devices (480px and down) */
@media screen and (max-width: 480px) {
    .profile-page {
        padding: 10px;
    }
    
    .profile-sidebar {
        padding: 15px;
    }
    
    .profile-avatar {
        width: 60px;
        height: 60px;
    }
    
    .avatar-placeholder {
        font-size: 20px;
    }
    
    .user-info h3 {
        font-size: 16px;
    }
    
    .user-info p {
        font-size: 12px;
    }
    
    .profile-content {
        padding: 15px;
    }
    
    .tab-header h2 {
        font-size: 20px;
    }
    
    .tab-header p {
        font-size: 14px;
    }
    
    .application-card {
        padding: 15px;
    }
    
    .app-job-title {
        font-size: 16px;
    }
    
    .app-action-btn {
        min-width: 100%;
        font-size: 13px;
        padding: 10px;
    }
    
    .cv-preview-card {
        padding: 15px;
    }
    
    .cv-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .upload-area {
        padding: 30px 15px;
    }
    
    .upload-icon {
        font-size: 36px;
    }
    
    .detail-card {
        padding: 15px;
    }
    
    .detail-card h3 {
        font-size: 16px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .filter-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .pagination-btn {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .upload-btn {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .settings-card {
        padding: 15px;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .toggle-switch {
        align-self: flex-start;
    }
    
    .save-btn {
        width: 100%;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        min-height: 300px;
    }
      .modal-content {
        width: 95%;
        margin: 50% auto;
        height: 73vh;
    }
    
    /* Ensure iframe is responsive in modal */
    #cvFrame {
        min-height: 400px;
    }
}

/* Very small mobile devices (360px and down) */
@media screen and (max-width: 360px) {
    .profile-nav ul {
        flex-direction: column;
        gap: 5px;
    }
    
    .nav-item {
        text-align: center;
    }
    
    .application-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-btn {
        text-align: center;
    }
    
    .app-card-actions {
        gap: 8px;
    }
    
    .cv-actions {
        gap: 8px;
    }
    
    .modal-content {
        width: 98%;
        margin: 50% auto;
    }
    
    .modal-header,
    .modal-footer {
        padding: 15px;
    }
}

/* High-resolution displays */
@media screen and (min-width: 1400px) {
    .profile-page {
        max-width: 1400px;
    }
}

/* Print styles */
@media print {
    .profile-sidebar,
    .application-filters,
    .app-card-actions,
    .cv-actions,
    .modal-close,
    .modal-footer {
        display: none !important;
    }
    
    .profile-container {
        flex-direction: column;
        box-shadow: none;
    }
    
    .profile-content {
        width: 100%;
    }
    
    .application-card {
        break-inside: avoid;
        border: 1px solid #000;
    }
    
    .modal {
        position: static;
        background: white;
    }
    
    .modal-content {
        margin: 0;
        width: 100%;
        max-width: 100%;
        box-shadow: none;
    }
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
    .application-card,
    .app-action-btn,
    .cv-action-btn,
    .nav-item,
    .filter-btn,
    .slider {
        transition: none;
    }
}


/* Touch device optimizations */
@media (hover: none) and (pointer: coarse) {
    .application-card:hover {
        transform: none;
    }
    
    .app-action-btn:hover,
    .cv-action-btn:hover {
        transform: none;
    }
    
    .nav-item {
        padding: 15px;
    }
    
    .app-action-btn,
    .cv-action-btn {
        padding: 12px 16px;
        min-height: 44px;
    }
    
    .filter-btn,
    .pagination-btn,
    .upload-btn {
        min-height: 44px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* Landscape mode for mobile */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .profile-container {
        flex-direction: row;
    }
    
    .profile-sidebar {
        width: 200px;
    }
    
    .profile-nav ul {
        flex-direction: column;
    }
    
    .modal-content {
        max-height: 80vh;
    }
}