/* style.css */

/* Basic Reset & Box-sizing */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ЁЯМР Default (Laptop/Desktop) */
body {
    font-family: 'Roboto', sans-serif;
    background: #f0f2f5;
    color: #333;
    line-height: 1.6;
    font-size: 16px;
    overflow-x: hidden; /* Prevent horizontal scroll when menu is out */
}

/* Navbar styles */
.navbar {
    background: #0f172a;
    color: white;
    padding: 10px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    z-index: 1000;
}

.navbar .left a {
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-decoration: none;
}

.navbar .menu {
    display: flex;
    gap: 15px;
}

.navbar .menu a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 15px;
}

.navbar .menu a:hover {
    text-decoration: underline;
}

/* Hamburger button (mobile only) */
.navbar .menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    cursor: pointer;
    z-index: 1001; /* Ensure toggle is above overlay */
}

.navbar .menu-toggle span {
    height: 3px;
    width: 24px;
    background: white;
    margin: 4px 0;
    border-radius: 2px;
    transition: all 0.3s;
}

/* Main content wrapper for forms and other pages */
.main-content-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 60px);
    padding: 20px;
    box-sizing: border-box;
}

/* Form Container styles */
.form-container {
    background-color: #ffffff;
    padding: 30px 40px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 450px;
    text-align: center;
}

h2 {
    font-size: 2.2em;
    margin-bottom: 25px;
    color: #0056b3;
    font-weight: 700;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
    position: relative;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
    font-size: 0.95em;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea { /* Added textarea here */
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ced4da;
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    outline: none;
}

/* Password toggle icon styling */
.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 1.2em;
    color: #888;
    user-select: none;
    z-index: 10;
}
input[type="password"] {
    padding-right: 40px;
}


.btn {
    width: 100%;
    padding: 12px 15px;
    border: none;
    border-radius: 8px;
    background-color: #007bff;
    color: white;
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
}

.link-text {
    margin-top: 20px;
    font-size: 0.9em;
    color: #666;
}

.link-text a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.link-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.error-message, .success-message {
    padding: 10px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9em;
    text-align: left;
    display: none;
    opacity: 0;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

/* Logo styles */
.logo-container {
    margin-bottom: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    max-width: 150px;
    height: auto;
    display: block;
}


/* Responsive Design */

/* Laptop / Desktop (max-width: 1024px) */
@media (max-width: 1024px) {
    .form-container {
        padding: 25px 35px;
        max-width: 420px;
    }
    h2 {
        font-size: 2em;
    }
    .btn {
        font-size: 1.05em;
    }
    .logo-container img {
        max-width: 120px;
    }
}

/* Tablet (max-width: 768px) */
@media (max-width: 768px) {
    /* Navbar Mobile View - Left Slide-in Menu */
    .navbar {
        flex-wrap: nowrap; /* Prevent wrapping */
    }

    .navbar .menu-toggle {
        display: flex;
        order: 2; /* Position toggle on the right */
    }

    .navbar .left {
        order: 1; /* Position logo/brand on the left */
    }

    .navbar .menu {
        position: fixed; /* Fixed position for slide-in */
        top: 0;
        left: -250px; /* Start off-screen to the left */
        height: 100vh; /* Full viewport height */
        width: 250px; /* Width of the slide-in menu */
        background: #1e293b;
        flex-direction: column;
        padding-top: 60px; /* Space for the top bar/logo if needed */
        box-shadow: 2px 0 10px rgba(0,0,0,0.3);
        transition: left 0.3s ease-in-out; /* Smooth slide animation */
        z-index: 999; /* Below toggle, above content */
        justify-content: flex-start; /* Align menu items to top */
        gap: 0; /* Reset gap for stacked items */
    }

    .navbar .menu.show {
        left: 0; /* Slide in when 'show' class is added */
    }

    .navbar .menu a {
        padding: 15px 20px; /* More padding for menu items */
        border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Separator */
        width: 100%;
        text-align: left;
    }
    .navbar .menu a:last-child {
        border-bottom: none;
    }

    /* Overlay for when menu is open */
    .overlay {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
        z-index: 998; /* Below menu, above content */
        display: none; /* Hidden by default */
    }
    .overlay.show {
        display: block; /* Show when menu is open */
    }

    /* Main content wrapper adjustments for tablet */
    .main-content-wrapper {
        padding: 15px;
        min-height: calc(100vh - 60px);
        align-items: flex-start;
    }

    .form-container {
        padding: 25px 30px;
        max-width: 380px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
        margin-top: 15px;
    }
    h2 {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        padding: 10px 12px;
        font-size: 0.95em;
    }
    .btn {
        padding: 11px 14px;
        font-size: 1em;
    }
    .logo-container img {
        max-width: 100px;
    }
    .password-toggle {
        right: 12px;
    }
    input[type="password"] {
        padding-right: 35px;
    }
}

/* Mobile (max-width: 480px) */
@media (max-width: 480px) {
    .main-content-wrapper {
        padding: 10px;
        min-height: calc(100vh - 50px);
    }
    .form-container {
        padding: 20px 25px;
        border-radius: 8px;
        max-width: 100%;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    h2 {
        font-size: 1.6em;
        margin-bottom: 18px;
    }
    label {
        font-size: 0.9em;
        margin-bottom: 6px;
    }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    textarea {
        padding: 10px;
        font-size: 0.9em;
        border-radius: 6px;
    }
    .btn {
        padding: 10px;
        font-size: 0.95em;
        border-radius: 6px;
    }
    .link-text {
        font-size: 0.85em;
        margin-top: 15px;
    }
    .error-message, .success-message {
        padding: 8px 12px;
        font-size: 0.85em;
    }
    .logo-container {
        margin-bottom: 15px;
    }
    .logo-container img {
        max-width: 80px;
    }
    .password-toggle {
        right: 10px;
        font-size: 1em;
    }
    input[type="password"] {
        padding-right: 30px;
    }
}

/* General Job listing styles (from your previous code context) */
.jobs {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.jobs li {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.jobs li h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.5em;
    margin-bottom: 8px;
}

.jobs li p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 5px;
}

.jobs li p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

.jobs li p a {
    color: #007bff;
    text-decoration: none;
}

.jobs li p a:hover {
    text-decoration: underline;
}
/* style.css */

/* ... (рдЖрдкрдХреЗ рдЕрдиреНрдп рд╕рднреА CSS рдХреЛрдб) ... */

/* Container for main content like job listings */
.content-area-container {
    max-width: 800px; /* Wider than form-container for main content */
    margin: 20px auto; /* Center it with some top/bottom margin */
    background: #fff;
    padding: 25px 30px; /* Decent padding */
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%; /* Ensure it takes full width within its max-width */
}

/* Responsive adjustments for content-area-container */
@media (max-width: 768px) {
    .content-area-container {
        padding: 20px 25px; /* Adjust padding for tablets */
        margin-top: 15px; /* Space from navbar */
        max-width: 95%; /* Allow it to be slightly wider than forms on tablets */
    }
}

@media (max-width: 480px) {
    .content-area-container {
        padding: 15px 20px; /* Adjust padding for mobile */
        margin-top: 10px; /* Space from navbar */
        border-radius: 8px; /* Slightly smaller border-radius */
        max-width: 100%; /* Full width on mobile, respecting main-content-wrapper padding */
    }
}

/* General Job listing styles (from your previous code context) */
.jobs {
    list-style: none;
    padding: 0;
    margin-top: 20px;
    text-align: left;
}

.jobs li {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.jobs li h3 {
    margin-top: 0;
    color: #0056b3;
    font-size: 1.5em;
    margin-bottom: 8px;
}

.jobs li p {
    font-size: 0.95em;
    color: #555;
    margin-bottom: 5px;
}

.jobs li p:last-child {
    margin-bottom: 0;
    font-weight: 500;
}

.jobs li p a {
    color: #007bff;
    text-decoration: none;
}

.jobs li p a:hover {
    text-decoration: underline;
}
/* style.css */

/* ... (рдЖрдкрдХреЗ рдореМрдЬреВрджрд╛ CSS рдХреЛрдб) ... */

/* --- Advanced Profile Page Styles --- */

/* Wider container for the profile page (adjust max-width as needed) */
.profile-container {
    background-color: #ffffff;
    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px; /* Wider than the form-container (450px) */
    margin: 20px auto;
}

/* Tabs Navigation Styling */
.tabs-wrapper {
    margin-top: 15px;
}

.tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    overflow-x: auto; /* Allow horizontal scrolling on very small screens */
    -webkit-overflow-scrolling: touch;
}

.tab-link {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 3px solid transparent;
    font-weight: 500;
    color: #555;
    white-space: nowrap; /* Prevent tab names from wrapping */
    transition: all 0.2s ease-in-out;
}

.tab-link:hover {
    color: #007bff;
}

.tab-link.active {
    border-color: #007bff;
    color: #007bff;
    font-weight: 600;
}

/* Tab Content */
.tab-content {
    display: none;
    padding: 15px 0;
    animation: fadeIn 0.5s;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Row and Column Layout (Standard across form-groups) */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; /* Increased gap for better spacing */
    margin-bottom: 10px;
}

.col-6 {
    flex: 1 1 calc(50% - 10px); /* 50% width minus half the gap */
}

.col-4 {
    flex: 1 1 calc(33.33% - 13.33px); /* 33% width minus gap */
}

/* Form Group standardization for fields inside tabs */
.tab-content .form-group {
    margin-bottom: 15px;
}

/* Image Preview Styles */
.image-preview {
    width: 100px;
    height: 120px;
    object-fit: contain; /* Changed from cover to contain for clarity */
    border: 1px dashed #ccc;
    margin-top: 10px;
    border-radius: 4px;
    display: block;
    background-color: #fafafa;
}
.file-upload-row {
    align-items: flex-start;
}

/* Separator */
.form-separator {
    border: 0;
    border-top: 1px solid #eee;
    margin: 25px 0;
}

.checkbox-header {
    font-size: 1.1em;
    font-weight: 500;
    margin-top: 20px;
}
.checkbox-header input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

.profile-save-btn {
    margin-top: 20px;
    width: auto;
    padding-left: 20px;
    padding-right: 20px;
}
.doc-instruction {
    font-style: italic;
    color: #666;
    margin-bottom: 15px;
}

/* Mobile Adjustments for Tabs and Columns */
@media (max-width: 768px) {
    .profile-container {
        padding: 20px;
        max-width: 100%;
        margin: 10px;
    }
    
    .row {
        gap: 15px;
    }
    
    .col-6, .col-4 {
        flex: 1 1 100%; /* Columns stack entirely on mobile */
    }
    
    .tabs-nav {
        flex-wrap: nowrap; /* Tabs remain horizontal but scrollable */
    }
    
    .tab-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    .image-preview {
        width: 80px;
        height: 100px;
    }
}
/* style.css */

/* --- AJAX Profile Page Styles --- */

/* Wider container for the profile page */
.profile-container {
    background-color: #ffffff;
    padding: 25px 35px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 900px; /* Wider container */
    margin: 20px auto;
}

/* Tabs Navigation Styling */
.tabs-nav { /* Replacing .tabs in original code */
    display: flex;
    flex-wrap: wrap;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    overflow-x: auto; 
    -webkit-overflow-scrolling: touch;
}

.tab-btn { /* Replacing .tabs button in original code */
    padding: 10px 15px;
    border-radius: 6px 6px 0 0; /* Rounded top corners */
    border: none;
    border-bottom: 3px solid transparent; /* Mimic border-bottom style */
    background: transparent;
    cursor: pointer;
    font-weight: 500;
    color: #555;
    white-space: nowrap; 
    transition: all 0.2s ease-in-out;
    margin-right: 5px; /* Add slight separation */
}

.tab-btn.active {
    background: #ffffff; /* White background for active tab */
    color: #007bff;
    border-bottom-color: #007bff;
    font-weight: 600;
}

/* Row and Column Layout (Standard) */
.row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px; 
    margin-bottom: 10px;
}

.col {
    flex: 1 1 calc(50% - 10px); 
}

/* Form Group standardization */
.tab-content .form-group {
    margin-bottom: 15px;
}
.tab-content input, .tab-content select, .tab-content textarea {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box; /* Important for padding/border inclusion */
}

/* Image Preview Styles */
.image-preview { /* Replacing .preview in original code */
    width: 100px;
    height: 120px;
    object-fit: contain; 
    border: 1px dashed #ccc;
    margin-top: 10px;
    border-radius: 4px;
    display: block;
    background-color: #fafafa;
}

.profile-save-btn { /* Replacing .btn on save buttons */
    margin-top: 20px;
    width: auto;
    padding: 10px 20px;
}

.note {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    display: block;
}

.checkbox-header {
    font-size: 1.1em;
    font-weight: 500;
    margin: 20px 0 10px 0;
}
.checkbox-header input[type="checkbox"] {
    width: auto;
    margin-right: 10px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .profile-container {
        padding: 15px;
        margin: 10px;
    }
    .col {
        flex: 1 1 100%; /* Columns stack entirely on mobile */
    }
}
/* 📱 Mobile Responsive Design */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #ddd;
  border-radius: 10px;
}

/* Table Style */
#educationTable {
  border-collapse: collapse;
  width: 100%;
  min-width: 800px; /* ताकि कॉलम मोबाइल में एक लाइन में न चिपके */
  background: white;
}

#educationTable th, #educationTable td {
  border: 1px solid #ccc;
  padding: 6px;
  text-align: center;
  font-size: 14px;
}

#educationTable input {
  width: 100%;
  box-sizing: border-box;
  padding: 5px;
  border: 1px solid #aaa;
  border-radius: 4px;
}

/* Small devices (Mobile) */
@media(max-width:600px){
  #educationTable th, #educationTable td {
    font-size: 12px;
    padding: 4px;
  }
  #educationTable input {
    font-size: 12px;
    padding: 4px;
  }
  button {
    font-size: 13px;
    padding: 6px 10px;
  }
}