:root {
    --container: 100vw;
    --back: #fafafa;
    --header-height: 4rem;
    --radius-box: 0.9375rem;
    --radius-inner: 0.5rem;
    --box-border: #d4d4d8;
    --input-padding: 0.75rem;
    --input-min-width: 10rem;
    --input-height: 1.8rem;
    --input-font-size: 0.9rem;
    --input-focus: color-mix(in srgb, var(--btn-hover) 85%, black);
    --btn-hover: rgba(0, 0, 0, 0.08);
    --primary: #5170ff;
    --purple: #a76cbf;
    --purple-border: #8e4da6;
    --purple-text: #2e1934;
    --green: #9dd8a7;
    --green-border: #6abe79;
    --green-text: #0e2514;
    --red: #f97070;
    --red-border: #ee2f2f;
    --red-text: #450a0a;
    --radius-modal-box: 24px;
    --primary-rgb: 81, 112, 255;
}

html[theme=dark] {
    --back: #0e0e11;   
    --box: #18181b;
    --box-border: #27272a;
    --btn-hover: #ffffff14;
    --input-focus: color-mix(in srgb, var(--btn-hover) 85%, white);
}

html {
    margin: 0;
    padding: 0;
    font-size: 16px;
    overflow-y: visible;  
    background-color: var(--back);
}

.header {
    padding: 0.5rem;
    flex: 0 0 100%;
    width: 100%;
}
.main { flex: 1; min-width: 0; margin-bottom: var(--gap);}

@media (min-width: 769px) {
  .platform-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
  }
}


@media (min-width: 768px) {
    /* Desktop styles */
    .header {
        min-height: 0px;
        padding: 0px;
        height: 0px;
    }
}

.box {
    padding: 1rem;
    border-radius: var(--radius-box);
    background: var(--box);
    box-shadow: var(--shadow);
    border: 1px solid var(--box-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

.logo img { 
    width: 4.5rem; 
    height: auto; 
}

/* Theme-based logo visibility */
.logo-dark-mode, .logo-light-mode {
    display: none;
}

html[theme="dark"] .logo-dark-mode {
    display: inline-block;
}

html[theme="light"] .logo-light-mode {
    display: inline-block;
}

/* Default to dark mode logo if no theme is specified */
html:not([theme="light"]) .logo-dark-mode {
    display: inline-block;
}

.sidebar {
    display: flex;
    flex-direction: column;
    height: calc(100vh - (2 * var(--gap)));
    width: 220px;
    float: none;
    position: sticky;
    top: var(--gap);
    gap: var(--gap);
    margin-right: var(--gap);
    margin-top: var(--gap);
    overflow: hidden;
    z-index: 0;
}

.sidebar a {
    display: flex;
    gap: calc(2*(var(--gap)));
    align-items: center;
    justify-content: left;
    padding: var(--gap);
    color: var(--text);
    text-decoration: none;
    font-size: 1em;
    cursor: pointer;
    border-radius: var(--radius-box);
    margin-bottom: var(--gap);
    position: relative;
}


/* Shrunk sidebar styles */
.sidebar.shrunk {
    min-width: 60px;
    max-width: 90px;
}

.sidebar a span {
    opacity: 1;
    visibility: visible;
    transition: opacity 0.3s ease 0.3s, visibility 0s linear 0s;
}

.sidebar.shrunk a span {
    display: none;
    transition: opacity 0.2s ease, visibility 0s linear 0.2s;
}

.sidebar.shrunk a{
    justify-content: center;
    aspect-ratio: 1/1

}

.sidebar.shrunk a[switch="settings"]{
    justify-content: center;
}

.sidebar.shrunk a[class="logo"] {
    margin-top: 20px;
    padding: 0.5em 1.2em 2em 1.2em;
}

.sidebar.shrunk a div:not(.sidebar-active-indicator):not(.sidebar-toggle) {
    text-align: center;
}
.sidebar.shrunk .logo img {
    width: 50px;
    height: auto;
    margin: 0 auto;
}

.sidebar-toggle {
    position: absolute;
    top: 5px;
    right: 5px;
    width: 30px;
    height: 30px;
    background: var(--btn-hover);
    border-radius: calc(var(--radius-box) - 5px);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--input-focus);
}

.sidebar a:hover { background: rgba(0, 0, 0, 0.08); color: var(--text); }


.sidebar a[class="logo"] {
    padding: 0.5em 1.2em 2.2em 1.2em;
    margin-bottom: 2.2em;
    border-bottom: solid 1px var(--box-border);
    border-radius: 0px;
    justify-content: center;
}

.sidebar a[class="logo"]:hover {
    background: none;
    color: var(--text);
}

.sidebar a[switch="settings"] {
    margin-top: auto;
    border: 1px solid var(--box-border);
    gap: calc(2*(var(--gap)));
    border-radius: var(--radius-box);
}

.sidebar a[switch="settings"]:hover { border: 1px solid var(--input-focus); }

.sidebar-icon {
    width: 35px;
    height: 35px;
    padding: 2px;
    align-items: center;
    display: flex;
    justify-content: center;
    border-radius: var(--radius-inner);
}

.sidebar a[switch="settings"] .sidebar-icon {
    background: var(--primary);

}

.sidebar-icon img { width: -webkit-fill-available; border-radius: calc(var(--radius-inner) - 2px); }


.sidebar-active-indicator {
    width: 30px;
    height: 70%;
    background: var(--primary);
    border-radius: var(--radius-inner);
    opacity: 0;
    transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    position: absolute;
    right: -42px;
    top: 50%;
    transform: translateY(-50%);
}

.sidebar a.active .sidebar-active-indicator { opacity: 1; }
html[theme="dark"] .sidebar a:hover { background: rgba(255, 255, 255, 0.12); }
html[theme="dark"] .sidebar a[class="logo"]:hover { background: none }

input, textarea, select {
    padding: 0 var(--input-padding);
    color: var(--text);
    border: 1px solid var(--btn-hover);
    border-radius: var(--radius-inner);
    font-size: var(--input-font-size);
    font-family: inherit;
    background: var(--box);
    width: 100%;
    height: var(--input-height);
    min-width: var(--input-min-width);
}

select { cursor: pointer; }
input:focus, textarea:focus, select:focus { outline: 0; border: 1px solid var(--input-focus); }

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--box) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    border: none !important;
    outline: none !important;

    /* transition: background-color 5000s ease-in-out 0s; */
}

input::placeholder, textarea::placeholder, select::placeholder,
input::-webkit-input-placeholder, textarea::-webkit-input-placeholder, select::-webkit-input-placeholder,
input::-moz-placeholder, textarea::-moz-placeholder, select::-moz-placeholder {
    color: var(--text);
    opacity: 1;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: inherit;
    border: 1px solid var(--box-border);
    border-radius: var(--radius-inner);
    transition: none;
    gap: var(--gap);
}

.btn:hover { background: var(--btn-hover); border: 1px solid var(--input-focus); }

.btn.confirm {
    background: transparent;
}

.btn.confirm:hover { background: var(--btn-hover); border-color: var(--green-border); color: var(--green-border); }

.btn.cancel, .btn.red {
    background: transparent;
}

.btn.cancel:hover, .btn.red:hover { background: var(--btn-hover); border-color: var(--red-border); color: var(--red-border); }

html[theme="dark"] .btn.confirm {
    background: transparent;
}

html[theme="dark"] .btn.confirm:hover { background: var(--btn-hover); border-color: var(--green-border); color: var(--green-border); }

html[theme="dark"] .btn.cancel, 
html[theme="dark"] .btn.red {
    background: transparent;
}

html[theme="dark"] .btn.cancel:hover, 
html[theme="dark"] .btn.red:hover { background: var(--btn-hover); border-color: var(--red-border); color: var(--red-border); }

input[type=checkbox].toggle {
    appearance: none;
    width: 44px;
    min-width: 44px;
    height: 22px;
    background-color: var(--box);
    border-radius: 11px;
    position: relative;
    cursor: pointer;
    transition: background-color 200ms ease, border-color 200ms ease;
    border: 1px solid var(--btn-hover);
    padding: 0;
}

input[type=checkbox].toggle::before {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    background-color: var(--btn-hover);
    border-radius: 50%;
    transition: transform 200ms ease, background-color 200ms ease;
}

input[type=checkbox].toggle:checked { background-color: var(--btn-hover); border-color: var(--input-focus); }

input[type=checkbox].toggle:checked::before {
    transform: translateX(22px);
    background-color: var(--input-focus);
}

.square { aspect-ratio: 1/1; max-width: 2rem; height: auto !important; }

.header-title-row {
    height: 130px;
    margin-top: var(--gap);
}

.view-header {
    font-size: 1.7rem;
    font-weight: 400;
    text-align: center;
}

.view-toggle-container { display: flex}

.view-toggle-slider {
    display: flex;
    background: var(--btn-hover);
    border-radius: var(--radius-box);
    padding: 4px;
    position: relative;
    height: 38px;

}


.view-toggle-slider a { text-decoration: none; justify-content: center; text-align: center; display: flex; align-items: center; }
.view-toggle-slider a:hover { color: var(--text) }

.view-toggle-btn {
    padding: 0 12px;
    border: none;
    background: transparent;
    border-radius: calc(var(--radius-box) - 4px);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    color: var(--text);
    transition: all 0.3s ease;
    text-align: center;
    vertical-align: middle;
    min-width: 7rem;
}

.view-toggle-btn a:hover { color: var(--text); }

.view-toggle-btn.active {
    background: var(--box);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

@media (max-width: 640px) {
    .sidebar { display: none; }
}

@media (max-width: 768px) {
    .box { padding: 0.5rem; }
    input, textarea, select { min-width: 0; }
    .btn { width: 100%; justify-content: center; }
}
#applicants-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(333px, 1fr));
  gap: var(--gap);
}

.applicant-card {
  display: flex;
  flex-direction: column;
  padding: 1rem;
  cursor: pointer;
  border-radius: var(--radius-box);
  background: var(--box);
  box-shadow: var(--shadow);
  border: 1px solid var(--box-border);
  overflow: hidden;
  position: relative;
}

.applicant-card:hover { box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12); border-color: var(--input-focus); }

.applicant-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.applicant-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-inner);
    background: var(--btn-hover);
    width: 48px;
    height: 48px;
    font-weight: 600;
    font-size: 1.1rem;
    color: var(--text);
    letter-spacing: -0.5px;
}

.applicant-tag { display: flex; align-items: flex-start; }

.applicant-tag .status-badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.applicant-content {
    margin: 12px 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;   
}

.applicant-name {
    font-size: 1.15rem;
    font-weight: 500;
    margin: 0 0 6px 0;
    color: var(--text);
    line-height: 1.3;
    letter-spacing: -0.3px;
}

.applicant-position {
    font-size: 0.9rem;
    opacity: 0.65;
    margin: 0;
    color: var(--text);
    line-height: 1.4;
    font-weight: 400;
}

.applicant-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 8px;
}

.applicant-days {
    font-size: 0.8rem;
    color: var(--text);
    opacity: 0.5;
    font-weight: 500;
    letter-spacing: 0.2px;
}

.applicant-actions { display: flex; flex-direction: row; gap: var(--gap); }


/* MODAL STYLE APPLICANT CARD */
#applicant_profile_modal .content {
    max-width: 800px;
    max-height: 95vh;
    border-radius: var(--radius-box);
    display: flex;
    flex-direction: column;
    height: 95vh;
}

.content-header {
    flex-shrink: 0; 
    position: sticky;
    top: 0;
    background-color: inherit;
    z-index: 10;
    padding: 1rem; 
    border-bottom: 1px solid var(--border-color, #e0e0e0);
}

.content-main {
    flex: 1; 
    overflow-y: auto;
    padding: 0 1rem 1rem 1rem;
    scrollbar-width: thin;
    scrollbar-color: var(--boxan) transparent;
}
/* MODAL STYLE APPLICANT CARD END */

.profile-section { margin-bottom: 1.5rem; }

.profile-section h4 {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.5rem;
}

.profile-contact, .profile-personal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.5rem;
}
.profile-section ul { 
    margin: 0; 
    padding-left: 1.5rem; 
    list-style-type: none;
}

.profile-section li { 
    margin-bottom: 0.8rem; 
    padding-left: 0.5rem;
    border-left: 2px solid var(--primary);
}

.profile-section strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--text);
}

#profile-summary {
    line-height: 1.6;
    padding: 0.5rem;
    background-color: rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-inner);
    border-left: 2px solid var(--primary);
}

html[theme="dark"] #profile-summary {
    background-color: rgba(255, 255, 255, 0.03);
}



/* Dropzone styling */
.dropzone-container {
    width: 100%;
}

.dropzone {
    width: 100%;
    min-height: 180px;
    border: 2px dashed var(--box-border);
    border-radius: var(--radius-box);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    padding: 2rem;
}

.dropzone:hover {
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb, 81, 112, 255), 0.03);
}

.dropzone.dragover {
    border-color: var(--primary);
    background-color: rgba(var(--primary-rgb, 81, 112, 255), 0.05);
    transform: scale(1.01);
}

.dropzone-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
}

.dropzone-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
    transition: transform 0.3s ease;
}

.dropzone:hover .dropzone-icon {
    transform: translateY(-5px);
}

.dropzone-text {
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.dropzone-hint {
    font-size: 0.8rem;
    opacity: 0.6;
}

.dropzone .upload-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 0;
    margin: 0;
    display: none;
}

.dropzone .progress-bar {
    height: 4px;
    border-radius: 0;
    box-shadow: none;
}

.dropzone .progress-fill {
    transition: width 0.3s ease;
}

/* Search box styling */
.search-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.search-row i {
    font-size: 1.2rem;
    color: var(--text);
    width: 1.5rem;
    text-align: center;
    margin-right: 0.5rem;
}


.search-row span {
    align-items: center;
    margin-right: 0.75rem;
}

.search-row select {
    max-width: 70px;
}



modal.active {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(5px);
}


/* Modal styling for view_applicant */
modal#view_applicant .content {
    max-width: 700px;
    height: calc(100vh - 40px);
    overflow-y: auto;
    padding: 0;
    border-radius: var(--radius-modal-box);
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    --modal-padding: 1.5rem; /* Define a consistent padding variable */
}

modal#view_applicant h4 {
    margin-bottom: 0.5rem;
    border-bottom: 1px solid var(--box-border);
    padding-bottom: 0.5rem;
    margin-bottom: 8px;
}

/* Sticky header styling */
.applicant-modal-header {
    position: sticky;
    top: 0;
    background: var(--box);
    padding: var(--modal-padding);
    border-bottom: 1px solid var(--box-border);
    z-index: 10;
    border-radius: var(--radius-box) var(--radius-box) 0 0;
}

.applicant-header-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.applicant-header-info {
    flex: 1;
}

.applicant-header-info h3 {
    margin: 0 0 0.25rem 0;
    line-height: 1.2;
}

.applicant-header-info .applicant-position {
    font-size: 0.9rem;
    opacity: 0.75;
}

/* Add padding to the content below the header */


modal#view_applicant .mt2 {
    padding: 0 var(--modal-padding);
}

modal#view_applicant .mt2:first-of-type {
    margin-top: var(--modal-padding);
}

modal#view_applicant .center.mt2 {
    padding-bottom: var(--modal-padding);
}


modal#view_applicant .row.nostack {
    margin-bottom: 0.5rem;
}

.applicant-card-subtitle {
    font-size: 0.9rem;
    font-weight: 500;
    gap: 8px;
    display: flex;
    align-items: center;
}

.applicant-card-subtitle img{
    height: 1.5rem;
    width: auto;
}

.applicant-card-title{
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    padding-top: var(--modal-padding);
    border-top: solid 1px var(--box-border);
}

.summary-box .watchpoints-container{
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: var(--gap);
}

/* Tag list styling */
.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.tag {
    background-color: var(--btn-hover);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-inner);
    font-size: 0.9rem;
    display: inline-block;
}

modal#view_applicant ul {
    margin: 0.5rem 0;
    padding-left: 1.5rem;
}

modal#view_applicant ul li {
    margin-top: 0.5rem;
    line-height: 1.4;
}

#watchpoints-container li, #profile-hidden-insights li {
    list-style-type: none;
}

#watchpoints-container, #profile-hidden-insights {
    padding-left: 0px !important;
}



#profile-skills ul, 
#profile-languages ul, 
#profile-hobbies ul,
#profile-positions ul,
#profile-watchpoints ul {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding-left: 0;
}

#profile-skills li, 
#profile-languages li, 
#profile-hobbies li,
#profile-positions li,
#profile-watchpoints li {
    background-color: var(--btn-hover);
    padding: 0.3rem 0.8rem;
    border-radius: var(--radius-inner);
    margin-bottom: 0.5rem;
    border-left: none;
    font-size: 0.9rem;
}

/* Unified section styles for both experience and education */
.section-header .section-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.section-header .section-meta {
    font-size: 13px;
    font-weight: 400;
    opacity: 0.7;
    margin-bottom: 8px;
    line-height: 130%;
}

.section-description p {
    font-size: 16px;
    font-weight: 400;
    margin-bottom: 24px;
}

/* Finder Search Box - Apple Style */

.finder-search-box {
    display: flex;
    align-items: center;
    background: var(--box);
    border: 1px solid var(--box-border);
    border-radius: var(--radius-box);
    padding: 0.5rem;
    gap: 0;
    width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.finder-search-box:focus-within {
    border-color: var(--input-focus);
}

.finder-input-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    padding: 0.5rem 0.75rem;
}

.finder-input-group i {
    color: var(--text);
    opacity: 0.5;
    font-size: 1rem;
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}

.finder-input-group input {
    border: none;
    background: transparent;
    padding: 0 0 0 var(--gap);
    min-width: 0;
    flex: 1;
    height: auto;
    font-size: 0.95rem;
}

.finder-input-group input:focus {
    outline: none;
    border: none;
}

.finder-input-group input:-webkit-autofill,
.finder-input-group input:-webkit-autofill:hover, 
.finder-input-group input:-webkit-autofill:focus, 
.finder-input-group input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px var(--box) inset !important;
    -webkit-text-fill-color: var(--text) !important;
    border: none !important;
    outline: none !important;
}

.finder-input-group select {
    border: none;
    background: transparent;
    padding: 0;
    min-width: 80px;
    width: auto;
    height: auto;
    font-size: 0.85rem;
    opacity: 0.7;
    cursor: pointer;
}

.finder-input-group select:focus {
    outline: none;
    border: none;
    opacity: 1;
}

.finder-divider {
    width: 1px;
    height: 2rem;
    background: var(--box-border);
    flex-shrink: 0;
}

.finder-search-btn {
    background: var(--primary);
    border: none;
    border-radius: calc(var(--radius-box) - 4px);
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.finder-search-btn i {
    color: white;
    font-size: 1.1rem;
}

.finder-search-btn:hover {
    background: color-mix(in srgb, var(--primary) 85%, black);
    transform: scale(1.02);
}

.finder-search-btn:active {
    transform: scale(0.98);
}

@media (max-width: 768px) {
    .finder-search-box {
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
    }
    
    .finder-divider {
        width: 100%;
        height: 1px;
    }
    
    .finder-input-group {
        width: 100%;
        padding: 0.5rem;
    }
    
    .finder-search-btn {
        width: 100%;
        height: 3rem;
    }
}
.divider { height: 1px; background: var(--btn-hover); margin: var(--gap); }
.settings-input-label { font-size: 13px; font-weight: 500; color: #525252; letter-spacing: 0.01em; margin-bottom: 30px;}



/* Account-spezifische Styles */
.account-container {
    max-width: 680px;
}

.account-subtitle {
    margin: 0;
    color: #737373;
    font-size: 14px;
}

html[theme="dark"] .account-subtitle {
    color: #a3a3a3;
}

.account-profile-card {
    background: var(--btn-hover);
    border-radius: var(--radius-box);
    padding: 24px;
}

.account-profile-image {
    width: 72px;
    height: 72px;
    border-radius: var(--radius-box);
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

html[theme="dark"] .account-profile-image {
    border-color: var(--box);
}

.account-profile-name {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 4px 0;
}

.account-profile-email {
    font-size: 14px;
    margin: 0;
    color: #737373;
}

html[theme="dark"] .account-profile-email {
    color: #a3a3a3;
}