.dropzone {
  position: relative;
  border: 2px dashed #9aa0a6;
  border-radius: 12px;
  padding: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fbfbfb;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease;
}

.dropzone:hover {
  background-color: #f5f6f7;
  border-color: #6c757d;
}

.dropzone-inner {
  pointer-events: none;
}

.dropzone-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

.dropzone-icon {
  font-size: 2rem;
  color: #4c8bf5;
  margin-bottom: 6px;
}

.dropzone-title {
  font-weight: 600;
  color: #343a40;
}

.dropzone-subtitle {
  color: #6c757d;
  font-size: .9rem;
}

.secondary-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.or-separator {
  color: #6c757d;
  font-size: .9rem;
}

.secondary-link {
  padding: 0;
  text-decoration: none;
  color: #495057;
}

.secondary-link:hover, .secondary-link:focus {
  text-decoration: underline;
  color: #0d6efd;
}
html,
body {
    font-family: Geneva, "Lucida Sans", "Lucida Grande", "Lucida Sans Unicode", Verdana, sans-serif;
    height: 100%;
}

h1:focus {
    outline: none;
}

a,
.btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

.page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}

/* Hide Blazor error UI completely in production */
#blazor-error-ui {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.loading-progress {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.loading-progress-text {
    color: #6c757d;
}

.loading-progress-text:after {
    content: "Loading...";
}

code {
    color: #c02d76;
}

.cursor-pointer {
    cursor: pointer;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

.navbar-logo {
    height: 24px;
    width: auto;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.navbar-brand {
    display: flex;
    align-items: center;
    white-space: nowrap;
}

/* Fix navigation icons */
.nav-link i,
.nav-link span,
.btn i {
    display: inline-block;
    vertical-align: middle;
    margin-right: 5px;
}

.navbar .navbar-nav .nav-link,
.navbar .navbar-nav .btn {
    display: flex;
    align-items: center;
}

.bi-house-door-fill-nav-menu::before,
.bi-file-earmark-text-fill-nav-menu::before,
.bi-plus-square-fill-nav-menu::before {
    display: inline-block;
    content: "";
    background-size: 1rem 1rem;
    height: 1rem;
    width: 1rem;
    margin-right: 0.5rem;
    vertical-align: text-top;
}

.bi-house-door-fill-nav-menu::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-house-door-fill' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 14.5v-3.505c0-.245.25-.495.5-.495h2c.25 0 .5.25.5.5v3.5a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5v-7a.5.5 0 0 0-.146-.354L13 5.793V2.5a.5.5 0 0 0-.5-.5h-1a.5.5 0 0 0-.5.5v1.293L8.354 1.146a.5.5 0 0 0-.708 0l-6 6A.5.5 0 0 0 1.5 7.5v7a.5.5 0 0 0 .5.5h4a.5.5 0 0 0 .5-.5Z'/%3E%3C/svg%3E");
}

.bi-file-earmark-text-fill-nav-menu::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-file-earmark-text-fill' viewBox='0 0 16 16'%3E%3Cpath d='M9.293 0H4a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2V4.707A1 1 0 0 0 13.707 4L10 .293A1 1 0 0 0 9.293 0zM9.5 3.5v-2l3 3h-2a1 1 0 0 1-1-1zM4.5 9a.5.5 0 0 1 0-1h7a.5.5 0 0 1 0 1h-7zM4 10.5a.5.5 0 0 1 .5-.5h7a.5.5 0 0 1 0 1h-7a.5.5 0 0 1-.5-.5zm.5 2.5a.5.5 0 0 1 0-1h4a.5.5 0 0 1 0 1h-4z'/%3E%3C/svg%3E");
}

.bi-plus-square-fill-nav-menu::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='white' class='bi bi-plus-square-fill' viewBox='0 0 16 16'%3E%3Cpath d='M2 0a2 2 0 0 0-2 2v12a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V2a2 2 0 0 0-2-2H2zm6.5 4.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3a.5.5 0 0 1 1 0z'/%3E%3C/svg%3E");
}

/* Navbar styles - fix alignment and prevent text wrapping */
.navbar {
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    min-height: 60px;
    position: relative !important;
    z-index: 1050 !important;
}

/* Ensure container within navbar is properly aligned */
.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Better spacing for navbar collapse section */
.navbar-collapse {
    display: flex;
    align-items: center;
}

.navbar .nav-link {
    white-space: nowrap;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
}

.navbar-nav {
    display: flex;
    align-items: center;
}

.navbar-nav .nav-item {
    display: flex;
    align-items: center;
    padding: 0;
}

/* Ensure text like "OPTIMIZE RESUME" stays on a single line */
.navbar .nav-link i+span,
.navbar .nav-link i {
    display: inline-block;
    vertical-align: middle;
}

/* Fix vertical alignment in navbar */
.navbar-nav .nav-link,
.navbar-nav .btn {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Adjust spacing of nav items */
.navbar-nav .nav-item:not(:last-child) {
    margin-right: 0.5rem;
}

/* Resume card styles */
.resume-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.125);
}

.resume-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.resume-card .card-title {
    font-weight: 600;
}

.resume-card .card-footer {
    padding: 0.75rem 1.25rem;
}

.resume-card .btn {
    padding: 0.25rem 0.5rem;
    font-size: 0.8rem;
}

/* Pulse animation for validation error messages */
@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.text-danger-pulse {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 5px;
    animation: pulse 0.5s;
}

/* Tennis ball animation */
.tennis-ball {
    width: 100px;
    height: 100px;
    vertical-align: middle;
    margin-left: 0;
    animation: bounce 1s infinite;
    display: inline-block;
}

/* Override tennis ball size for MyResumes page */
.tennis-ball.tennis-ball-no-bounce {
    width: 40px !important;
    height: 40px !important;
    object-fit: contain;
    animation: none !important;
}

/* Fixed Bootstrap Sidebar */
.sidebar {
    width: 230px;
    min-width: 230px;
    max-width: 230px;
    flex-shrink: 0;
    min-height: 100vh;
    background-color: rgb(27, 110, 194) !important;
}

#mobileSidebar {
    background-color: rgb(27, 110, 194) !important;
}

/* Fix dropdown z-index issues */
.dropdown-menu {
    z-index: 1030 !important;
    position: absolute !important;
}

.dropdown {
    position: relative;
}

/* Create proper stacking context for navbar */
.navbar {
    position: relative !important;
    z-index: 1050 !important;
}

/* Ensure navbar dropdowns are above everything */


/* Fix user menu dropdown specifically */
.user-menu {
    position: static !important;
}

.user-menu .dropdown-menu {
    z-index: 10001 !important;
    position: fixed !important;
    top: auto !important;
    right: 10px !important;
    left: auto !important;
    transform: translateY(0) !important;
}

/* Fix main content overflow to not clip dropdowns */
.flex-grow-1 {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible !important;
    /* Allow vertical overflow for dropdowns */
}

/* Ensure main content doesn't clip the navbar area */
main {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible !important;
    position: relative;
    z-index: 1;
}

/* Fix Bootstrap containers within flexbox layout */
.flex-grow-1 .container,
.flex-grow-1 .container-fluid {
    max-width: 100% !important;
    overflow-x: hidden;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure Bootstrap rows don't overflow */
.flex-grow-1 .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Fix Bootstrap columns within our layout */
.flex-grow-1 .row>[class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* Fix cards and other components */
.flex-grow-1 .card {
    max-width: 100%;
    overflow-x: hidden;
}

/* Sidebar navigation improvements */
.sidebar .nav-link {
    transition: background-color 0.2s ease, border-left 0.2s ease;
    border-left: 4px solid transparent;
    text-align: left;
    justify-content: flex-start !important;
    align-items: center !important;
    display: flex !important;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-left-color: white;
}

/* Ensure text content is left-aligned */
.sidebar .navbar-nav {
    text-align: left;
    align-items: flex-start !important;
}

.sidebar .navbar-nav .nav-link {
    justify-content: flex-start !important;
    text-align: left !important;
}

.sidebar .navbar-nav .nav-link span {
    text-align: left !important;
    flex: 1;
}

.sidebar .navbar-nav .nav-link i {
    text-align: center !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile offcanvas improvements */
.offcanvas {
    z-index: 1055 !important;
    /* Higher than navbar */
}

.offcanvas-backdrop {
    z-index: 1054 !important;
    /* Just below offcanvas but above navbar */
}

/* Create proper stacking context for navbar */
.navbar {
    position: relative !important;
    z-index: 1050 !important;
}

/* Ensure navbar dropdowns use proper Bootstrap z-index */
.navbar .dropdown-menu {
    z-index: 1000 !important;
}

/* Fix user menu dropdown specifically */
.user-menu {
    position: static !important;
}

.user-menu .dropdown-menu {
    z-index: 1000 !important;
    position: fixed !important;
    top: auto !important;
    right: 10px !important;
    left: auto !important;
    transform: translateY(0) !important;
}

/* Fix main content overflow to not clip dropdowns */
.flex-grow-1 {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible !important;
    /* Allow vertical overflow for dropdowns */
}

/* Ensure main content doesn't clip the navbar area */
main {
    min-width: 0;
    max-width: 100%;
    overflow-x: hidden;
    overflow-y: visible !important;
    position: relative;
    z-index: 1;
}

/* Fix Bootstrap containers within flexbox layout */
.flex-grow-1 .container,
.flex-grow-1 .container-fluid {
    max-width: 100% !important;
    overflow-x: hidden;
    width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Ensure Bootstrap rows don't overflow */
.flex-grow-1 .row {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
}

/* Fix Bootstrap columns within our layout */
.flex-grow-1 .row>[class*="col-"] {
    padding-left: 12px;
    padding-right: 12px;
}

/* Fix cards and other components */
.flex-grow-1 .card {
    max-width: 100%;
    overflow-x: hidden;
}

/* Sidebar navigation improvements */
.sidebar .nav-link {
    transition: background-color 0.2s ease, border-left 0.2s ease;
    border-left: 4px solid transparent;
    text-align: left;
    justify-content: flex-start !important;
    align-items: center !important;
    display: flex !important;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
    border-left-color: white;
}

/* Ensure text content is left-aligned */
.sidebar .navbar-nav {
    text-align: left;
    align-items: flex-start !important;
}

.sidebar .navbar-nav .nav-link {
    justify-content: flex-start !important;
    text-align: left !important;
}

.sidebar .navbar-nav .nav-link span {
    text-align: left !important;
    flex: 1;
}

.sidebar .navbar-nav .nav-link i {
    text-align: center !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Mobile offcanvas improvements */
.offcanvas .nav-link {
    transition: background-color 0.2s ease;
}

.offcanvas .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.offcanvas .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

/* Remove old hardcoded sidebar styles */
/* Removed obsolete .sidebar-expanded/.sidebar-collapsed empty ruleset */

@keyframes bounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

/* Hero section responsive styles */
.hero-title {
    font-size: calc(2rem + 2vw);
    line-height: 1.2;
    margin: 0 auto;
    max-width: 100%;
    padding: 0 15px;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: calc(1.5rem + 2vw);
    }

    .hero-section {
        padding: 50px 0 !important;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: calc(1.2rem + 2vw);
    }

    .tennis-ball {
        width: 60px !important;
        height: 60px !important;
    }
}

/* Global border radius overrides */
:root {
    --border-radius: 0.5rem;
    --border-radius-sm: 0.375rem;
    --border-radius-lg: 0.75rem;
    --border-radius-xl: 1rem;
    --border-radius-2xl: 1.5rem;
    --border-radius-pill: 50rem;
}

/* Cards */
.card {
    border-radius: var(--border-radius) !important;
}

.card-header:first-child {
    border-radius: calc(var(--border-radius) - 1px) calc(var(--border-radius) - 1px) 0 0 !important;
}

.card-footer:last-child {
    border-radius: 0 0 calc(var(--border-radius) - 1px) calc(var(--border-radius) - 1px) !important;
}

/* Buttons */
.btn {
    border-radius: var(--border-radius-sm) !important;
}

.btn-lg {
    border-radius: var(--border-radius) !important;
}

.btn-sm {
    border-radius: var(--border-radius-sm) !important;
}

/* Form controls */
.form-control,
.form-select {
    border-radius: var(--border-radius-sm) !important;
}

.input-group>.form-control,
.input-group>.form-select {
    border-radius: var(--border-radius-sm) !important;
}

.input-group> :first-child {
    border-top-right-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
}

.input-group> :last-child {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
}

/* Alerts */
.alert {
    border-radius: var(--border-radius) !important;
}

/* Badges */
.badge {
    border-radius: var(--border-radius-sm) !important;
}

/* List groups */
.list-group-item:first-child {
    border-top-left-radius: var(--border-radius) !important;
    border-top-right-radius: var(--border-radius) !important;
}

.list-group-item:last-child {
    border-bottom-left-radius: var(--border-radius) !important;
    border-bottom-right-radius: var(--border-radius) !important;
}

/* Navs and tabs */
.nav-pills .nav-link {
    border-radius: var(--border-radius-sm) !important;
}

/* Modal */
.modal-content {
    border-radius: var(--border-radius) !important;
}



/* Fix for custom modal overlays */
.modal-overlay {
    z-index: 1050;
}

.modal-overlay .education-modal,
.modal-overlay .experience-modal {
    position: relative;
    z-index: 1;
}

/* Dropdowns */
.dropdown-menu {
    border-radius: var(--border-radius) !important;
}

/* Progress bars */
.progress {
    border-radius: var(--border-radius-sm) !important;
}

/* Pagination */
.page-link {
    border-radius: var(--border-radius-sm) !important;
}

.page-item:first-child .page-link {
    border-top-left-radius: var(--border-radius-sm) !important;
    border-bottom-left-radius: var(--border-radius-sm) !important;
}

.page-item:last-child .page-link {
    border-top-right-radius: var(--border-radius-sm) !important;
    border-bottom-right-radius: var(--border-radius-sm) !important;
}

/* Toast */
.toast {
    border-radius: var(--border-radius) !important;
}

/* Beta Landing Page Animations */
@keyframes pulseScale {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }

    100% {
        transform: scale(1);
    }
}

@keyframes textBounce {
    from {
        transform: translateY(0px);
    }

    to {
        transform: translateY(-10px);
    }
}

.text-danger-pulse {
    animation: pulseScale 2s infinite;
    display: inline-block;
}

/* Beta page responsive styles */
@media (max-width: 768px) {
    .beta-title {
        font-size: 2.2rem !important;
    }

    .beta-subtitle {
        font-size: 1.2rem !important;
    }

    .features {
        gap: 1rem !important;
    }

    .feature {
        width: 100% !important;
        max-width: 320px !important;
    }

    .preview-content {
        flex-direction: column !important;
        height: auto !important;
    }

    .preview-sidebar {
        width: 100% !important;
        padding: 10px 0 !important;
    }

    .preview-coming-soon {
        font-size: 1.2rem !important;
        padding: 8px 20px !important;
    }
}

/* Make sure the beta page scales well on mobile */
@media (max-width: 576px) {
    .beta-container {
        padding: 1rem;
    }

    .beta-title {
        font-size: 1.8rem !important;
    }

    .beta-subtitle {
        font-size: 1rem !important;
    }

    .timer-unit {
        min-width: 60px !important;
        padding: 0.75rem !important;
    }

    .timer-value {
        font-size: 1.4rem !important;
    }

    .feature {
        padding: 1rem !important;
    }
}

/* Home page feature list checkmark alignment fix for mobile */
@media (max-width: 768px) {
    .landing-page .feature-list {
        padding-left: 0 !important;
        margin-left: 0 !important;
    }

    .landing-page .feature-list li {
        padding-left: 1.75rem !important;
        text-align: left !important;
    }

    .landing-page .feature-list li:before {
        left: 0.3rem !important;
    }
}

/* Blog Styles */
.blog-post-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.blog-post-card .card-title a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease-in-out;
}

.blog-post-card .card-title a:hover {
    color: #1b6ec2;
}

.blog-content {
    line-height: 1.7;
    font-size: 1.1rem;
    color: #333;
}

.blog-content p {
    margin-bottom: 1.2rem;
}

.blog-content h2,
.blog-content h3,
.blog-content h4 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.blog-content blockquote {
    border-left: 4px solid #1b6ec2;
    padding-left: 1rem;
    margin: 1.5rem 0;
    font-style: italic;
    color: #666;
}

.blog-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1rem 0;
}

.blog-post {
    margin-bottom: 2rem;
}

.blog-post header {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

@media (max-width: 768px) {
    .blog-content {
        font-size: 1rem;
    }

    .blog-post-card {
        margin-bottom: 1.5rem;
    }

    .blog-post-card:hover {
        transform: none;
    }
}

/* AI Blog Generation Styles */
.generate-blog-modal .preview-section {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1rem;
    margin-top: 1rem;
}

.generate-blog-modal .content-preview {
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid #dee2e6;
    border-radius: 0.375rem;
    padding: 0.75rem;
    background-color: white;
    margin: 0.5rem 0;
}

.generate-blog-modal .form-text {
    font-size: 0.875rem;
}

.generate-blog-modal .btn-success {
    background: linear-gradient(45deg, #198754, #20c997);
    border: none;
    box-shadow: 0 2px 4px rgba(25, 135, 84, 0.2);
    transition: all 0.3s ease;
}

.generate-blog-modal .btn-success:hover {
    background: linear-gradient(45deg, #157347, #1aaa80);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(25, 135, 84, 0.3);
}

.ai-generation-indicator {
    background: linear-gradient(45deg, #198754, #20c997);
    background-size: 200% 200%;
    animation: aiGradient 2s ease infinite;
}

@keyframes aiGradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.ai-feature-highlight {
    position: relative;
    overflow: hidden;
}

.ai-feature-highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ai-feature-highlight:hover::before {
    left: 100%;
}

/* Minimal custom styles - using Bootstrap conventions */

/* Credits Display Styles */
.credits-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.credits-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e9ecef;
}

.credits-info:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

.credits-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.credits-amount {
    font-weight: 600;
    font-size: 1rem;
    color: #495057;
}

.credits-label {
    font-size: 0.75rem;
    color: #6c757d;
    text-transform: uppercase;
}

.credits-mobile {
    font-weight: 600;
    font-size: 1rem;
    color: #495057;
}

.credits-loading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #6c757d;
}

.credits-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #dc3545;
}

/* User Menu Styles */
.user-menu-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    border: none !important;
    box-shadow: none !important;
    color: #495057;
    text-decoration: none;
}

.user-menu-toggle:hover {
    text-decoration: none;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Responsive Design */
/* Anonymous user navbar styling */
.navbar-brand:hover {
    text-decoration: none !important;
}

.nav-link.text-dark {
    color: #212529 !important;
}

.nav-link.text-dark:hover {
    color: #0d6efd !important;
}

@media (max-width: 991px) {

    /* On mobile, no margin for main content since sidebar is offcanvas */
    .flex-grow-1 {
        margin-left: 0 !important;
        margin: 0px !important;
        padding: 0px !important;
    }

    .container {
        padding-left: 0px !important;
        padding-right: 0px !important;
        margin-left: 0px !important;
        margin-right: 0px !important;
    }

    .section-content {
        margin-left: 0px !important;
    }

    .flex-grow-1 .row>[class*="col-"] {
        padding-left: 0px;
        padding-right: 0px;
    }
}

@media (max-width: 767px) {
    .top-navbar {
        padding: 0 1rem;
    }

    .page-content {
        padding: 1rem;
    }

    .credits-info {
        padding: 0.375rem 0.5rem;
    }

    /* Mobile dropdown improvements */
    .user-menu-toggle {
        padding: 0.5rem !important;
        min-height: 44px;
        /* Minimum touch target size */
        min-width: 44px;
    }

    .dropdown-menu {
        border: none;
        box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
        margin-top: 0.5rem !important;
        min-width: 200px;
    }

    .dropdown-item {
        padding: 0.75rem 1rem;
        font-size: 0.95rem;
        min-height: 44px;
        /* Minimum touch target size */
        display: flex;
        align-items: center;
    }

    .dropdown-item:hover,
    .dropdown-item:focus {
        background-color: #f8f9fa;
    }

    /* Align navbar right items with hamburger button edges */
    .navbar .container-fluid {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }

    .navbar .d-lg-none.me-2 {
        margin-right: 0.5rem !important; /* tighten gap between hamburger and right cluster */
        padding: 10px 20px !important; /* requested hamburger padding on mobile */
    }

    .navbar .ms-auto.d-flex.align-items-center.gap-3 {
        gap: 0.5rem !important; /* reduce spacing so it visually lines up */
    }

    /* Ensure avatar and credits align vertically with hamburger */
    .navbar .user-menu-toggle,
    .navbar .credits-display {
        align-self: center;
    }

    /* Remove extra margin on the hamburger icon itself */
    .navbar .d-lg-none.me-2 i {
        margin-right: 0 !important;
    }
}

/* Profile Components CSS */

/* ProfileHeader Component */
@media (min-width: 768px) {
    .profile-header-content {
        flex-direction: row;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .profile-header .background-section {
        min-height: 100px;
        padding: 3rem 0;
    }

    .profile-picture-container {
        top: 0px !important;
    }

    .profile-header .profile-name {
        font-size: 2rem;
    }

    .profile-header .profile-title {
        font-size: 1.1rem;
    }

    .profile-header .profile-picture,
    .profile-header .profile-picture-placeholder {
        width: 120px;
        height: 120px;
    }

    .profile-header .profile-picture-placeholder {
        font-size: 2.5rem;
    }
}

@media print {
    .profile-header .profile-actions {
        display: none;
    }

    .profile-header .background-overlay {
        background: rgba(0, 0, 0, 0.6);
    }
}

/* ProfileBio Component */
@media (max-width: 768px) {
    .profile-bio .card-body {
        padding: 1.25rem;
    }

    .profile-bio .bio-paragraph {
        text-align: left;
        font-size: 0.95rem;
    }
}

@media print {
    .profile-bio .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .profile-bio .bio-paragraph {
        text-align: left;
    }
}

/* ProfileResume Component */
@media (max-width: 768px) {
    .profile-resume .card-body {
        padding: 1.25rem;
    }

    .profile-resume .section-content {
        margin-left: 0;
    }

    .profile-resume .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
    }

    .profile-resume .text-end {
        text-align: left !important;
        margin-top: 0.5rem;
    }
}

@media print {
    .profile-resume .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .profile-resume .experience-item,
    .profile-resume .education-item,
    .profile-resume .certification-item {
        background-color: transparent;
        border: 1px solid #dee2e6;
    }

    .profile-resume .skill-badge {
        background-color: transparent;
        border: 1px solid #dee2e6;
    }
}

/* ProfileNotFound Component */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .profile-not-found .error-container {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }

    .profile-not-found .error-title {
        font-size: 2rem;
    }

    .profile-not-found .error-icon {
        font-size: 3rem;
    }

    .profile-not-found .help-content .row>div {
        margin-bottom: 1rem;
    }
}

@media print {
    .profile-not-found {
        background-color: white;
    }

    .profile-not-found .error-container {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }

    .profile-not-found .error-actions {
        display: none;
    }
}

/* Profile Header Responsive Improvements */
@media (max-width: 768px) {
    .background-section {
        height: 250px !important;
        border-radius: 0 0 15px 15px !important;
    }

    .background-overlay {
        border-radius: 0 0 15px 15px !important;
    }

    .profile-content-section {
        border-radius: 15px !important;
        margin-top: -15px !important;
    }

    .profile-picture-container {
        margin-top: -60px !important;
        margin-bottom: 1.5rem !important;
    }

    .profile-picture,
    .profile-picture-placeholder {
        width: 120px !important;
        height: 120px !important;
        border-width: 5px !important;
    }

    .profile-picture-placeholder {
        font-size: 2.5rem !important;
    }

    .profile-name {
        font-size: 2rem !important;
    }

    .profile-title {
        font-size: 1.1rem !important;
    }

    .btn-primary {
        padding: 0.6rem 1.5rem !important;
        font-size: 0.9rem !important;
    }
}

@media (max-width: 480px) {
    .background-section {
        height: 200px !important;
        border-radius: 0 0 12px 12px !important;
    }

    .background-overlay {
        border-radius: 0 0 12px 12px !important;
    }

    .profile-content-section {
        border-radius: 12px !important;
        margin-top: -12px !important;
        padding: 0 0 2rem 0 !important;
    }

    .profile-picture-container {
        margin-top: -50px !important;
        margin-bottom: 1rem !important;
    }

    .profile-picture,
    .profile-picture-placeholder {
        width: 100px !important;
        height: 100px !important;
        border-width: 4px !important;
    }

    .profile-picture-placeholder {
        font-size: 2rem !important;
    }

    .profile-name {
        font-size: 1.8rem !important;
        margin-bottom: 0.3rem !important;
    }

    .profile-title {
        font-size: 1rem !important;
        margin-bottom: 0.8rem !important;
    }

    .btn-primary {
        padding: 0.5rem 1.2rem !important;
        font-size: 0.85rem !important;
    }
}

/* ================================
   CUSTOM NOTIFICATION SYSTEM
   ================================ */

/* Toast Notifications */
.notification-toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 400px;
    width: 100%;
}

.notification-toast {
    margin-bottom: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
    transition: all 0.3s ease;
    position: relative;
}

.notification-toast.notification-dismissed {
    animation: slideOutRight 0.3s ease-in;
    opacity: 0;
    transform: translateX(100%);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    position: relative;
}

.notification-icon {
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    font-weight: 500;
    line-height: 1.4;
}

.notification-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 4px;
    margin-left: 8px;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background-color: rgba(255, 255, 255, 0.2);
}

.notification-progress-bar {
    height: 100%;
    background-color: rgba(255, 255, 255, 0.8);
    animation: progressCountdown linear;
    animation-fill-mode: forwards;
}

/* Modal Notifications */
.notification-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1090;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease-out;
    backdrop-filter: blur(2px);
}

.notification-modal-backdrop.notification-modal-dismissed {
    animation: fadeOut 0.3s ease-in;
    opacity: 0;
}

.notification-modal {
    background-color: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    overflow: hidden;
    animation: scaleIn 0.3s ease-out;
    z-index: 1095;
    position: relative;
}

.notification-modal-header {
    display: flex;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.notification-modal-icon {
    font-size: 24px;
    margin-right: 12px;
    flex-shrink: 0;
}

.notification-modal-title {
    flex: 1;
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.notification-modal-close {
    background: none;
    border: none;
    color: currentColor;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.notification-modal-close:hover {
    opacity: 1;
    background-color: rgba(255, 255, 255, 0.1);
}

.notification-modal-body {
    padding: 20px 24px;
}

.notification-modal-message {
    margin: 0;
    font-size: 16px;
    line-height: 1.5;
}

.notification-modal-footer {
    padding: 16px 24px 20px;
    text-align: right;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Notification Animations */
@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;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }

    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes progressCountdown {
    from {
        width: 100%;
    }

    to {
        width: 0%;
    }
}

/* Notification Mobile Responsive */
@media (max-width: 768px) {
    .notification-toast-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .notification-modal {
        width: 95%;
        margin: 20px;
    }

    .notification-modal-header,
    .notification-modal-body,
    .notification-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }

    /* Improve vertical spacing for modal action buttons on mobile */
    .notification-modal-footer {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .notification-modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .notification-toast-container {
        top: 5px;
        right: 5px;
        left: 5px;
    }

    .notification-content {
        padding: 10px 12px;
    }

    .notification-message {
        font-size: 14px;
    }
}

/* Mobile-specific styles for MyResumes page */
.mobile-resume-card {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    transition: transform 0.2s ease;
    width: 100%;
    max-width: 100%;
}

.mobile-resume-card:active {
    transform: scale(0.98);
}

.mobile-resume-list {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Remove padding from resume wizard container on mobile */
@media (max-width: 767.98px) {
    .resume-wizard-container {
        padding: 0 !important;
        margin: 0 !important;
    }

    /* Prevent horizontal overflow */
    .d-md-none {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
        box-sizing: border-box;
    }

    .container-fluid {
        padding-left: 0.5rem !important;
        padding-right: 0.5rem !important;
        max-width: 100%;
        overflow-x: hidden;
        box-sizing: border-box;
    }

    /* Mobile card constraints */
    .mobile-resume-card {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mobile-resume-card .card {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }

    .mobile-resume-card .card-body {
        padding: 0.75rem 0.5rem !important;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Button group fixes */
    .mobile-resume-list .btn-group {
        width: 100%;
        display: flex;
    }

    .mobile-resume-list .btn-group .btn {
        font-size: 0.7rem;
        padding: 0.25rem 0.25rem;
        flex: 1;
        min-width: 0;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* Responsive button text */
    .mobile-resume-card .btn {
        min-height: 36px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 0.75rem;
        padding: 0.375rem 0.5rem;
        word-break: break-word;
        hyphens: auto;
    }

    /* Long button text handling */
    .mobile-resume-card .btn.flex-grow-1 {
        font-size: 0.7rem;
        padding: 0.375rem 0.25rem;
        line-height: 1.2;
        min-width: 0;
    }

    /* Specific fixes for download buttons */
    .mobile-resume-card .d-flex.gap-1 {
        width: 100%;
        max-width: 100%;
        gap: 0.25rem !important;
        box-sizing: border-box;
    }

    .mobile-resume-card .d-flex.gap-1 .btn.flex-grow-1 {
        min-width: 0;
        max-width: calc(100% - 45px);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.65rem;
        padding: 0.375rem 0.2rem;
        flex: 1;
    }

    .mobile-resume-card .d-flex.gap-1 .btn:not(.flex-grow-1) {
        flex-shrink: 0;
        width: 40px;
        padding: 0.375rem 0.1rem;
        font-size: 0.7rem;
    }

    .tennis-ball {
        width: 24px !important;
        height: 24px !important;
    }

    /* Ensure badges are readable on mobile */
    .mobile-resume-card .badge {
        font-size: 0.65rem;
        padding: 0.2rem 0.4rem;
    }

    /* Text content constraints */
    .mobile-resume-card .text-truncate {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-resume-card .small {
        font-size: 0.8rem;
        word-break: break-word;
    }

    /* Grid gap management */
    .mobile-resume-card .d-grid {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .mobile-resume-card .d-grid.gap-2 {
        gap: 0.375rem !important;
    }
}

/* Dashboard Components CSS - Keyframes and Media Queries */

/* Pulse Animation for CreditsWidget */
@keyframes pulseCredits {
    0% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0.7);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(220, 53, 69, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(220, 53, 69, 0);
    }
}

.btn-pulse {
    animation: pulseCredits 2s infinite;
}

/* Gradient Shift Animation for OptimizeResumeCard */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Mobile Responsive Styles for Dashboard Components */
@media (max-width: 768px) {
    .download-actions {
        margin-top: 1rem;
    }

    .download-actions .btn {
        flex: 1;
        min-width: auto;
    }
}

@media (max-width: 576px) {
    .optimize-resume-card .card-body {
        padding: 1.5rem;
    }

    .optimize-icon {
        font-size: 2.5rem;
    }

    .optimize-btn {
        font-size: 0.9rem;
        padding: 0.6rem 1.2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    /* Mobile action buttons: ensure touch-friendly padding and rounded corners */
    .mobile-action-btn {
        padding: 0.6rem 0.75rem !important;
        border-radius: 0.5rem !important;
    }
}

/* Bootstrap Modal Z-Index Fix - Comprehensive Solution */
/* Reset all modal and dropdown z-index values to Bootstrap's intended hierarchy */

/* Fix dropdowns to use Bootstrap's intended z-index */
.dropdown-menu {
    z-index: 1000 !important;
}

.navbar .dropdown-menu {
    z-index: 1000 !important;
}

.user-menu .dropdown-menu {
    z-index: 1000 !important;
}

/* Responsive Buy More button in navbar */
.buy-more-btn {
    white-space: nowrap;
}

@media (max-width: 576px) {
    .credits-display { gap: 0.5rem; }
    
    .buy-more-btn {
        padding: 0.4rem 0.7rem;
        font-size: 0.95rem;
        line-height: 1.2;
        border-radius: 0.25rem;
        display: inline-flex;
        align-items: center;
        min-height: 38px;
    }
    
    .buy-more-btn .fa-plus {
        margin-right: 0.4rem !important;
    }

    /* Slightly compact credits pill on mobile (not tiny) */
    .credits-display .credits-info {
        padding: 0.35rem 0.6rem;
        font-size: 0.95rem;
        line-height: 1.2;
        border-radius: 0.25rem;
        min-height: 38px;
        display: inline-flex;
        align-items: center;
    }
    .credits-display .credits-amount,
    .credits-display .credits-mobile {
        font-size: 17px;
        line-height: 1.2;
    }
    .credits-display .credits-label {
        font-size: 0.7rem;
    }
}

/* Ensure Bootstrap modals use their intended z-index values */
.modal {
    z-index: 1055 !important;
}

.modal-backdrop {
    z-index: 1050 !important;
}

.modal-backdrop.show {
    z-index: 1050 !important;
}

/* Reset modal dialog and content to natural stacking */
.modal-dialog {
    z-index: auto !important;
}

.modal-content {
    z-index: auto !important;
}

/* Move our notification system above Bootstrap modals to avoid conflicts */
.notification-modal-backdrop {
    z-index: 1090 !important;
}

.notification-modal {
    z-index: 1095 !important;
}

/* Fix admin layout stacking context issues */
.admin-layout {
    /* Ensure admin layout doesn't create transform-based stacking context */
    transform: none !important;
    /* Ensure no overflow clipping */
    overflow: visible !important;
}

.admin-layout .container {
    /* Ensure containers don't create stacking contexts */
    transform: none !important;
    overflow: visible !important;
    /* Allow modals to escape container bounds */
    position: relative;
}

/* Ensure modals always render above admin layout */
.admin-layout~.modal,
.admin-layout .modal {
    z-index: 1055 !important;
}

.admin-layout~.modal-backdrop,
.admin-layout .modal-backdrop {
    z-index: 1050 !important;
}

/* Specific fix for generate blog modal */
.generate-blog-modal {
    z-index: 1055 !important;
}

.generate-blog-modal .modal-dialog {
    z-index: auto !important;
}

.docx-wrapper .docx {
    padding: 20px !important;
}

/* Resume Optimization Loading Modal - mobile adjustments */
@media (max-width: 576px) {
    #resumeOptimizationLoadingModal .modal-dialog {
        margin: 0 !important;
        width: 100vw !important;
        max-width: 100vw !important;
    }

    #resumeOptimizationLoadingModal .modal-content {
        width: 100% !important;
        overflow-x: hidden !important;
        border-radius: 0 !important;
    }

    #resumeOptimizationLoadingModal .modal-body {
        padding: 1rem !important;
        overflow-x: hidden !important;
    }

    #resumeOptimizationLoadingModal img.loading-illustration {
        display: block !important;
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        object-fit: contain !important;
    }
}

/* Home page keyframes */
@keyframes shineSlide { 
    0% { left: -150%; } 
    100% { left: 130%; } 
}

@keyframes pulseGlow { 
    0%,100% { 
        box-shadow: 0 10px 28px rgba(27,110,194,0.35), 0 2px 6px rgba(27,110,194,0.25);
    } 
    50% { 
        box-shadow: 0 14px 34px rgba(27,110,194,0.48), 0 4px 10px rgba(27,110,194,0.3);
    } 
}

/* Cookie Consent Banner Styles */
.cookie-consent-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #2d3748 0%, #1a202c 100%);
    color: #fff;
    padding: 1rem 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1060;
    border-top: 3px solid #1b6ec2;
    animation: slideUp 0.4s ease-out;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom));
}

.cookie-consent-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    gap: 1rem;
}

.cookie-consent-text {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 0;
}

.cookie-consent-text i {
    color: #f7d794;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-text span {
    font-size: 0.95rem;
    line-height: 1.4;
    color: #e2e8f0;
}

.cookie-consent-actions {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-banner .btn {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.cookie-consent-banner .btn-outline-secondary {
    border-color: #a0aec0;
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.06);
}

.cookie-consent-banner .btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.18);
    border-color: #cbd5e0;
    color: #ffffff;
    transform: translateY(-1px);
}

.cookie-consent-banner .btn-primary {
    background: linear-gradient(135deg, #1b6ec2 0%, #2b77cb 100%);
    border-color: #1b6ec2;
    color: #fff;
    box-shadow: 0 2px 8px rgba(27, 110, 194, 0.3);
}

.cookie-consent-banner .btn-primary:hover {
    background: linear-gradient(135deg, #155a9d 0%, #1e5fa8 100%);
    border-color: #155a9d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(27, 110, 194, 0.4);
}

/* Slide up animation */
@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .cookie-consent-text {
        justify-content: center;
        text-align: center;
    }
    
    .cookie-consent-actions {
        justify-content: center;
        width: 100%;
    }
    
    .cookie-consent-banner .btn {
        flex: 1;
        max-width: 150px;
    }
    
    .cookie-consent-text span {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .cookie-consent-banner {
        padding: 0.75rem 0;
    }
    
    .cookie-consent-content {
        padding: 0 0.75rem;
    }
    
    .cookie-consent-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .cookie-consent-banner .btn {
        max-width: none;
        width: 100%;
    }
}