/* Custom Styles */

/* Theme Variables */
:root {
    /* Light Theme (default) */
    --bs-primary: #055160 !important;
    --bs-primary-rgb: 5, 81, 96 !important;
    --bs-link-color: #055160 !important;
    --bs-link-hover-color: #044653 !important;
    --bs-body-bg: #ffffff;
    --bs-body-color: #212529;
    --bs-card-bg: #ffffff;
    --bs-card-border-color: rgba(0, 0, 0, 0.125);
    --bs-input-bg: #ffffff;
    --bs-input-color: #212529;
    --bs-input-border-color: #ced4da;
    --bs-footer-bg: #f8f9fa;
    --bs-footer-color: #212529;
}

/* Dark Theme */
[data-theme="dark"] {
    --bs-body-bg: #212529;
    --bs-body-color: #f8f9fa;
    --bs-card-bg: #343a40;
    --bs-card-border-color: rgba(255, 255, 255, 0.125);
    --bs-input-bg: #343a40;
    --bs-input-color: #f8f9fa;
    --bs-input-border-color: #495057;
    --bs-footer-bg: #343a40;
    --bs-footer-color: #f8f9fa;
}

[data-theme="dark"] .skill-tags .badge.bg-light.text-dark {
    color: #bbb !important;
    background-color: #495057 !important;
    border: none !important;
}

[data-theme="dark"] .card .btn-outline-primary {
    background-color: #044653 !important;
    border-color: #044653 !important;
    color: #ddd !important;
}

[data-theme="dark"] .btn-outline-primary {
    background-color: transparent !important;
    border-color: #044653 !important;
    color: #ddd !important;
}

[data-theme="dark"] .card .btn-outline-primary:hover {
    background-color: #055160 !important;
    border-color: #055160 !important;
}

[data-theme="dark"] .btn-outline-primary:hover  {
    background-color: #055160 !important;
    border-color: #055160 !important;
}

[data-theme="dark"] .card .btn-outline-secondary,
[data-theme="dark"] .btn-outline-secondary {
    background-color: #5c636a !important;
    border-color: #5c636a !important;
    color: #ddd !important;
}

[data-theme="dark"] .card .btn-outline-secondary:hover,
[data-theme="dark"] .btn-outline-secondary:hover {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

[data-theme="dark"] .card .btn-outline-success {
    background-color: #157347 !important;
    border-color: #157347 !important;
    color: #ddd !important;
}

[data-theme="dark"] .card .btn-outline-success:hover {
    background-color: #198754 !important;
    border-color: #198754 !important;
}

[data-theme="dark"] .card .btn-outline-danger {
    background-color: #bb2d3b !important;
    border-color: #bb2d3b !important;
    color: #ddd !important;
}

[data-theme="dark"] .card .btn-outline-danger:hover {
    background-color: #dc3545 !important;
    border-color: #dc3545 !important;
}

[data-theme="dark"] .list-group-item {
    position: relative;
    display: block;
    padding: .5rem 1rem;
    color: #ddd;
    text-decoration: none;
    background-color: #343a40;
    border: 1px solid rgba(0, 0, 0, .125);
}

[data-theme="dark"] .text-primary {
    color: #ffc107 !important;
}

[data-theme="dark"] .btn-link {
    color: #ddd !important;
}

[data-theme="dark"] .btn-link:hover {
    color: #ffc107 !important;
}
/* Theme toggle button styles */
.theme-toggle {
    background: none;
    border: none;
    padding: 0.5rem;
    margin: 0 0.5rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    color: #fff !important;
}

.theme-toggle:hover {
    transform: scale(1.1);
}

.theme-toggle:focus {
    outline: none;
    box-shadow: none;
}

.theme-icon-light,
.theme-icon-dark {
    font-size: 1.2rem;
    color: #fff !important;
}

[data-theme="dark"] .theme-icon-light {
    display: none;
}

[data-theme="light"] .theme-icon-dark {
    display: none;
}

/* Form control placeholder and label styles */
.form-control::placeholder {
    color: #6c757d !important;
}

[data-theme="dark"] .form-floating > label {
    color: #6c757d !important;
}

/* Apply theme variables */
body {
    background-color: var(--bs-body-bg);
    color: var(--bs-body-color);
}

.card {
    background-color: var(--bs-card-bg);
    border-color: var(--bs-card-border-color);
}

.card-footer {
    background-color: var(--bs-card-bg) !important;
}

.btn-primary {
    background-color: #055160 !important;
    border-color: #055160 !important;
}

.btn-primary:hover {
    background-color: #044653 !important;
    border-color: #044653 !important;
}

.btn-outline-primary {
    color: #055160 !important;
    border-color: #055160 !important;
}

.btn-outline-primary:hover {
    background-color: #055160 !important;
    color: #ddd !important;
}

.btn-link {
    color: #055160 !important;
}

.btn-link:hover {
    color: #ffc107 !important;
}
/* Accordion styles */
.accordion-button:not(.collapsed) {
    color: #055160 !important;
    background-color: rgba(5, 81, 96, 0.1) !important;
}

.accordion-button:focus {
    border-color: rgba(5, 81, 96, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(5, 81, 96, 0.25) !important;
}

.accordion-button:not(.collapsed)::after {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23055160'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e") !important;
}

.btn-check:checked + .btn-outline-primary {
    background-color: #055160 !important;
    border-color: #055160 !important;
    color: #ddd !important;
}

/* Form checkbox styles */
.form-check-input:checked {
    background-color: #055160 !important;
    border-color: #055160 !important;
}

.form-check-input:focus {
    border-color: #055160 !important;
    box-shadow: 0 0 0 0.25rem rgba(5, 81, 96, 0.25) !important;
}

.text-primary {
    color: #055160 !important;
}

.bg-primary {
    background-color: #055160 !important;
}

.border-primary {
    border-color: #055160 !important;
}

.navbar-dark {
    background-color: #055160 !important;
}

.form-control:focus {
    border-color: #055160 !important;
    box-shadow: 0 0 0 0.25rem rgba(5, 81, 96, 0.25) !important;
}

.form-select:focus {
    border-color: #055160 !important;
    box-shadow: 0 0 0 0.25rem rgba(5, 81, 96, 0.25) !important;
}

a {
    color: #055160;
}

a:hover {
    color: #044653;
}

/* Rest of the existing CSS file content remains unchanged */
body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Hide increment/decrement arrows on number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button { 
    -webkit-appearance: none; 
    margin: 0; 
}

input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.content {
    flex: 1;
}

footer {
    margin-top: auto;
    background-color: var(--bs-footer-bg) !important;
    color: var(--bs-footer-color) !important;
    padding: 32px 0 24px 0;
    border-top: 1px solid #e5e5e5;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.03);
    font-size: 1.1rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

@media (max-width: 576px) {
    .footer-links {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
}

.footer-links a {
    color: var(--bs-footer-color) !important;
    font-weight: 500;
    font-size: 1.15rem;
    transition: color 0.2s;
    text-decoration: none;
}

.footer-links a:hover {
    color: #007bff !important;
    text-decoration: underline;
}

.footer-copyright {
    text-align: center;
    font-size: 0.95rem;
    color: #6c757d;
}

.card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

.experience-entry {
    position: relative;
}

.experience-entry .card-title {
    margin-right: 30px;
}

.experience-entry .btn-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
}

/* Profile styles */
.profile-img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border: 3px solid var(--bs-input-bg);
    box-shadow: 0 0 10px var(--bs-card-border-color);
}

.list-group-item i {
    width: 20px;
    text-align: center;
}

/* Autocomplete styles */
.autocomplete-suggestions {
    position: absolute;
    z-index: 1000;
    overflow-y: auto;
    border: 1px solid var(--bs-input-border-color);
    background-color: var(--bs-input-bg);
    color: black;
    border-radius: 0.25rem;
    width: auto;
    max-width: inherit;
    display: none;
    background: white;
    border: 1px solid #ddd;
    max-height: 200px;
    overflow-y: auto;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}


.autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
}

.autocomplete-item:hover {
    background-color: var(--bs-card-bg);
}

/* A4 Paper Resume Styles */
/* 
.resume-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: auto;
    max-width: 210mm;
}

.a4-wrapper {
    width: calc(210mm - 2in);
    position: relative;
    margin: auto;
}

.a4-page {
    width: 210mm;
    padding: 1in;
    background-color: white;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
    position: relative;
    font-family: Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.5;
    box-sizing: border-box;
    overflow: hidden;
    page-break-after: always;
}
*/

/* Company container rules to prevent bad breaks */
.company-container {
    break-inside: avoid;
    page-break-inside: avoid;
}

.role-container {
    margin-bottom: 25px; /* Increase margin for empty row effect */
    break-inside: auto;
    page-break-inside: auto; 
    display: block; 
}

/* Edit resume page styles */
.company-entry .card-header {
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

[data-theme="dark"] .company-entry .card-header.bg-light {
    background-color: #6c757d66 !important;
}

/* Resume Content Styles */
.resume-profile {
    margin-bottom: 10px;
}

.resume-name {
    font-size: 18pt;
    font-weight: bold;
    margin-bottom: 15px;
}

.profile-columns {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.profile-left {
    width: 48%;
}

.profile-right {
    width: 48%;
    text-align: right;
}

.profile-item {
    margin-bottom: 5px;
    line-height: 1.5;
}

.profile-item.excluded {
    display: none;
}

/* Checkbox label for privacy settings */
.privacy-settings label {
    display: inline-flex;
    align-items: center;
    margin-right: 15px;
    cursor: pointer;
}

.privacy-settings input[type="checkbox"] {
    margin-right: 5px;
}

.profile-label {
    font-weight: bold;
}

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

.education-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.education-university {
    width: 40%;
}

.education-degree {
    width: 40%;
    text-align: center;
}

.education-year {
    width: 20%;
    text-align: right;
}

.company-header {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    border-bottom: 1px solid var(--bs-body-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    flex-wrap: nowrap;
}

.company-name {
    width: 33%;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.company-latest-title {
    width: 33%;
    text-align: left;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    padding-right: 10px;
}

.company-period {
    width: 33%;
    text-align: right;
    white-space: nowrap; /* Ensure dates stay on one line */
}

.role-header {
    display: table;
    width: 100%;
    table-layout: fixed;
    margin-bottom: 5px;
    page-break-after: avoid;
}

.role-dates {
    display: table-cell;
    width: 30%;
    white-space: nowrap;
}

.role-title {
    display: table-cell;
    width: 70%;
    font-weight: normal;
    text-align: left;
    padding-left: 20px;
    padding-right: 10px;
    white-space: normal;
    word-wrap: break-word;
}

.role-description {
    padding-left: 00px;
    margin-top: 25px;
}

.role-description ul {
    margin-top: 5px;
    margin-bottom: 5px;
}

.role-description li {
    margin-bottom: 3px;
}

.role-description li:empty,
.role-description li.empty-line {
    list-style-type: none;
    height: 1.2em;
    margin-bottom: 4px;
}

/* Make sure whitespace-only lines don't show bullets */
.role-description li:blank {
    list-style-type: none;
}

/* Skills Tags Wrapping */
.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: -0.25rem;
}

.skill-tags .badge {
    margin: 0.25rem;
    white-space: normal;
    text-align: left;
    hyphens: auto;
    word-break: break-word;
}

/* Professional Summary Styles */
.professional-summary {
    margin-bottom: 10px;
    padding-top: 10px;
}

.section-title {
    font-weight: bold;
    border-bottom: 1px solid var(--bs-body-color);
    margin-bottom: 10px;
    padding-bottom: 5px;
    font-size: 14pt; /* Increase from 12pt to 14pt to match PDF */
}

.summary-bullets {
    margin-top: 10px;
    margin-bottom: 15px;
    padding-left: 25px;
}

.summary-bullets li {
    margin-bottom: 5px;
    line-height: 1.5;
}

/* Sales Achievements Styles */
.sales-achievements {
    margin-top: 15px;
    margin-bottom: 10px;
    padding-left: 20px;
    page-break-inside: avoid;
    break-inside: avoid;
}

.sales-achievements h6,
.sales-achievements .fw-bold {
    font-weight: bold;
    margin-bottom: 10px;
    display: block;
}

.table-responsive {
    margin-left: 0px; 
}

.sales-achievements table,
.sales-achievements .table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 5px;
    font-size: 12pt; /* Change from 11pt to 12pt to match PDF */
}

.sales-achievements th, 
.sales-achievements td,
.sales-achievements .table th,
.sales-achievements .table td {
    border: none;
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 6px 10px;
    text-align: left;
    line-height: 1.3;
}

.sales-achievements th,
.sales-achievements .table th {
    background-color: #f8f9fa;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

[data-theme="dark"] .sales-achievements th, 
[data-theme="dark"] .sales-achievements td,
[data-theme="dark"] .sales-achievements .table th,
[data-theme="dark"] .sales-achievements .table td {
    border: none;
    border-bottom: 1px solid #555;
    background-color: #444;
    color: #ddd;
}

[data-theme="dark"] .sales-achievements th,
[data-theme="dark"] .sales-achievements .table th {
    background-color: #333;
    color: #ddd;
    font-weight: 600;
    border-bottom: 2px solid #555;
}

/* Skills Page Styles */
.skills-category {
    background-color: var(--bs-card-bg);
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
}

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.25rem;
}

.btn-skill-pill {
    display: inline-flex;
    align-items: center;
    background-color: #dee2e6;
    color: var(--bs-input-color);
    border-radius: 50rem !important;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.btn-skill-pill::before {
    content: "⊖";
    color: #dc3545;
    font-weight: normal;
    margin-right: 6px;
    font-size: 1.1rem;
    line-height: 1;
}

.btn-skill-pill:hover {
    background-color: #ffdbdb;
    color: #dc3545;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

[data-theme="dark"] .btn-skill-pill {
    background-color: #495057;
}

.btn-skill-pill.removing {
    transform: scale(0.8);
    opacity: 0;
}

.remove-category-btn {
    border: none;
    background: none;
    color: #dc3545;
    padding: 0;
    font-size: 16px;
}

.remove-category-btn:hover {
    color: #b02a37;
}

/* Quick Add Skills Buttons */
.quick-add-skill {
    display: inline-flex;
    align-items: center;
    background-color: #ddd;
    color: #198754;
    border-radius: 50rem !important;
    padding: 0.5rem 0.75rem;
    margin: 0.25rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #198754;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    position: relative;
}

.quick-add-skill::before {
    content: "⊕";
    color: #198754;
    font-weight: normal;
    margin-right: 6px;
    font-size: 1.1rem;
    line-height: 1;
}

.quick-add-skill:hover {
    background-color: #d1e7dd;
    color: #0f5132;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.quick-add-skill.added {
    background-color: #198754;
    color: white;
    transition: all 0.3s ease;
}

.quick-add-skill.added::before {
    color: white;
}

.quick-add-skill.removing {
    display: none;
}


/* Category View Toggle Styles */
#horizontal-category-nav {
    position: relative;
    z-index: 1;
}

#horizontal-category-content {
    min-height: 200px;
    margin-top: 1rem;
}

/* Make the vertical tabs more visually appealing */
#skill-category-tabs .nav-link {
    border-radius: 0.375rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

#skill-category-tabs .nav-link:hover:not(.active) {
    background-color: var(--bs-card-bg);
}

/* Horizontal layout dropdown styling */
#category-dropdown {
    border-color: var(--bs-primary);
    background-color: var(--bs-input-bg);
    color: var(--bs-input-color);
}

#category-dropdown:focus {
    box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.25);
    border-color: #198754;
}

/* Skills Section Styles */
.skills-section {
    margin-bottom: 20px;
}

.suggestion-item {
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.suggestion-item:hover {
    background-color: #f8f9fa;
}

#category-suggestions {
    margin-top: 2px;
}

.skills-content {
    padding-left: none;
}

.skill-category {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
}

.skill-category-name {
    font-weight: bold;
    width: 150px;
    flex-shrink: 0;
}

.skill-list {
    flex: 1;
    text-align: left;
    padding-left: 30px; /* Updated from 10px to 20px to ensure exact 20px distance */
    display: inline-block;
    margin-left: 0; /* Ensure no extra margin is added */
}

/* Updated Qualifications Style */
.qualifications-section {
    margin-bottom: 20px;
}

.qualifications {
    margin-bottom: 20px;
    padding-left: 15px;
    line-height: 1.5;
}

/* Specific styles for qualification pills */
.qualification-pills.skills-list {
    padding: 0.15rem;
}

.qualification-pills .btn-skill-pill {
    padding: 0.25rem 0.5rem;
    margin: 0.15rem;
}

/* Updated Education Section */
.education-section {
    margin-bottom: 20px;
}

.education-degree {
    width: 40%;
    text-align: center;
}

/* Container styles */
.container {
    width: 100%;
    /* max-width: 1140px; */
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 768px) {
    .container {
        width: 95%;
        max-width: none;
        padding-left: 10px;
        padding-right: 10px;
    }
}

/* Print styles */
@media print {
    body {
        margin: 0;
        padding: 0;
        background-color: white;
    }
    
    .navbar, .resume-controls, footer, .btn {
        display: none !important;
    }
    

    
    /* Allow bullet point lists to break across pages */
    .role-description, .role-description ul, .role-description li {
        break-inside: auto;
        page-break-inside: auto;
    }
    
    /* Fix for Chrome */
    article, aside, footer, header, nav, section {
        break-inside: auto;
        page-break-inside: auto;
    }
}

/* Screen size and orientation restrictions */
.orientation-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
}

@media (max-width: 768px) and (orientation: portrait) {
    .orientation-overlay {
        display: flex;
    }
    
    body:not(.no-orientation-restriction) > *:not(.orientation-overlay) {
        display: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .btn-group {
        flex-direction: column;
    }
    
    .btn-group .btn {
        border-radius: 0.25rem !important;
        margin-bottom: 0.25rem;
    }
    
    .profile-img {
        width: 100px;
        height: 100px;
    }
}

@media (max-width: 1024px) {
    .d-flex.justify-content-between.align-items-center.mb-4 {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        width: 100%;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 > div {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-end;
        gap: 0.5rem;
    }

    .d-flex.justify-content-between.align-items-center.mb-4 > div > a,
    .d-flex.justify-content-between.align-items-center.mb-4 > div > button {
        flex: 0 0 auto;
        margin-bottom: 0;
        white-space: nowrap;
    }
}

/* Application Status Badges */
.status-badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.85em;
    font-weight: 500;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.25rem;
}

.status-applied {
    background-color: #0d6efd;
    color: #ffffff;
}

.status-screening {
    background-color: #cff4fc;
    color: #055160;
}

.status-interview {
    background-color: #ffc107;
    color: #000000;
}

.status-offer {
    background-color: #198754;
    color: #ffffff;
}

.status-accepted {
    background-color: #198754;
    color: #ffffff;
}

.status-rejected {
    background-color: #dc3545;
    color: #ffffff;
}

.status-withdrawn {
    background-color: #dee2e6;
    color: #343a40;
}

.status-archived {
    background-color: #6c757d;
    color: #ffffff;
}

/* Table sorting styles */
.sortable {
    cursor: pointer;
    user-select: none;
}

.sortable:hover {
    background-color: var(--bs-card-bg);
}

.sortable i {
    font-size: 0.8em;
    margin-left: 0.3em;
    vertical-align: middle;
    color: #6c757d;
}

.sortable:hover i {
    color: #212529;
}

/* Interview Timeline Styles */
.interview-stage {
    margin-left: 1rem;
}

.interview-stage .stage-marker {
    width: 12px;
    height: 12px;
    left: -6px;
    top: 6px;
}

.interview-stage .bi {
    font-size: 0.9em;
    color: #6c757d;
    width: 16px;
    text-align: center;
}

.interview-stage:last-child {
    margin-bottom: 0;
}

.interview-stage:last-child .border-start {
    border-color: transparent !important;
}

/* Flash alerts fixed at bottom right */
.alert-fixed {
    position: fixed !important;
    bottom: 1rem;
    right: 1rem;
    min-width: 200px;
    max-width: 300px;
    z-index: 2000;
    padding: 1rem 1.5rem;
    font-size: 1rem;
}

[data-theme="dark"] tbody, 
[data-theme="dark"] td, 
[data-theme="dark"] tfoot, 
[data-theme="dark"] th, 
[data-theme="dark"] thead, 
[data-theme="dark"] tr {
    border: none !important;
    border-bottom: 1px solid #555 !important;
}

/* Dark mode table styles */
[data-theme="dark"] .table {
    border: none;
}

[data-theme="dark"] .table td,
[data-theme="dark"] .table th {
    border: none;
    border-bottom: 1px solid #6c757d !important;
}

[data-theme="dark"] .table thead th {
    border-bottom: 2px solid #ddd !important;
}

/* Dark mode modal styles */
[data-theme="dark"] .modal-content {
    background-color: var(--bs-card-bg) !important;
    border-color: var(--bs-card-border-color) !important;
}

[data-theme="dark"] .modal-header {
    border-bottom-color: var(--bs-card-border-color) !important;
}

[data-theme="dark"] .modal-footer {
    border-top-color: var(--bs-card-border-color) !important;
}

/* Dark mode footer */
[data-theme="dark"] footer.bg-light {
    background-color: var(--bs-card-bg) !important;
}

/* Work Experience Header */
.card-header.bg-primary {
    border-radius: 0.375rem;
    margin-bottom: 1rem;
}

/* CSS edits for dark mode and table readability */
[data-theme="dark"] .table th,
[data-theme="dark"] .table td {
    color: #ddd !important;
}

[data-theme="dark"] a:hover {
    color: #ffc107 !important;
}

/* Landing Page Styles */
.bg-gradient-primary {
    background: linear-gradient(135deg, #055160 0%, #077187 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #198754 0%, #20c997 100%);
}

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="75" cy="75" r="1" fill="rgba(255,255,255,0.1)"/><circle cx="50" cy="10" r="0.5" fill="rgba(255,255,255,0.1)"/><circle cx="90" cy="40" r="0.5" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    opacity: 0.1;
    pointer-events: none;
}

.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.feature-icon {
    transition: transform 0.3s ease;
}

.hover-lift:hover .feature-icon {
    transform: scale(1.1);
}

.screenshot-placeholder {
    position: relative;
    overflow: hidden;
}

.screenshot-placeholder::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255,255,255,0.1) 50%, transparent 70%);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

[data-theme="dark"] .bg-gradient-primary {
    background: linear-gradient(135deg, #033b42 0%, #055160 100%);
}

[data-theme="dark"] .bg-light {
    background-color: #2d3436 !important;
}

[data-theme="dark"] .text-light-emphasis {
    color: #adb5bd !important;
}

/* Enhanced card styles for landing page */
.card {
    border-radius: 0.5rem;
}

.card.bg-white {
    background-color: #ffffff !important;
}

[data-theme="dark"] .card.bg-white {
    background-color: #343a40 !important;
    border-color: #495057;
}

/* Responsive adjustments for landing page */
@media (max-width: 768px) {
    .hero-section .display-4 {
        font-size: 2.5rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .hover-lift:hover {
        transform: none;
    }
}
