* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
    background-color: #1a1a1a;
    color: #e0e0e0;
}

.container {
    max-width: 100%;
    margin: 0 auto;
}

/* Bewerbungsformular */
.apply-page .container {
    max-width: 1200px;
    padding: 0 16px;
}

.apply-page .apply-card {
    width: 100%;
    max-width: 960px;
    margin: 24px auto 40px;
    border: 1px solid #2b2b2b;
    background: #242424;
    position: relative;
}

.apply-page .apply-intro {
    color: #b3b3b3;
    line-height: 1.6;
    margin-top: 0;
    margin-bottom: 16px;
}

.apply-page .apply-header {
    border-bottom: 1px solid #2f2f2f;
    background: #222;
}

.apply-page .apply-header h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.apply-page .apply-subtitle {
    margin-top: 6px;
    font-size: 13px;
    color: #9c9c9c;
}

.apply-page .apply-chip {
    background-color: #1d1d1d;
    border: 1px solid #333;
    color: #b3b3b3;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.apply-page .apply-section {
    padding: 12px 0 6px;
    border-top: 1px solid #333;
}

.apply-page .apply-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.apply-page .apply-section-title {
    font-size: 14px;
    color: #d0d0d0;
    margin: 6px 0 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.apply-page .apply-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.apply-page .apply-note {
    color: #a6a6a6;
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.4;
}

.apply-page .checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 8px 12px;
}

.apply-page .form-group input[type="text"],
.apply-page .form-group input[type="date"],
.apply-page .form-group input[type="email"],
.apply-page .form-group input[type="tel"],
.apply-page .form-group textarea,
.apply-page .form-group select {
    border-radius: 8px;
    border: 1px solid #363636;
    background-color: #1a1a1a;
    color: #ffffff;
    transition: border-color 0.2s, box-shadow 0.2s;
    padding: 12px 14px;
    min-height: 44px;
}

.apply-page .form-group input:focus,
.apply-page .form-group textarea:focus,
.apply-page .form-group select:focus {
    border-color: #6d9ef5;
    box-shadow: 0 0 0 2px rgba(109,158,245,0.18);
}

.apply-page .form-group label {
    text-transform: none;
    color: #cfcfcf;
    font-size: 13px;
}

.apply-page .form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.apply-page .modal-footer {
    background-color: #222;
    border-top: 1px solid #2f2f2f;
}

.apply-page .btn-primary {
    padding: 10px 18px;
    font-weight: 600;
    border-radius: 8px;
}

.apply-page input[type="file"] {
    width: 100%;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px dashed #3a3a3a;
    border-radius: 8px;
    color: #e0e0e0;
}

.apply-page input[type="file"]::file-selector-button {
    background-color: #262626;
    border: 1px solid #3a3a3a;
    color: #dcdcdc;
    padding: 6px 10px;
    border-radius: 6px;
    margin-right: 12px;
    cursor: pointer;
}

.apply-page input[type="file"]::file-selector-button:hover {
    background-color: #2f2f2f;
}

.apply-page .checkbox-group label {
    background-color: #1b1b1b;
    border: 1px solid #2b2b2b;
    padding: 10px 12px;
    border-radius: 8px;
    transition: border-color 0.2s, background-color 0.2s;
}

.apply-page .checkbox-group label:hover {
    border-color: #3a3a3a;
    background-color: #202020;
}

.apply-page .checkbox-group input[type="radio"],
.apply-page .checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6d9ef5;
}

.apply-page .apply-submit {
    min-height: 48px;
}

.apply-page input[type="file"]:focus {
    outline: none;
    border-color: #4d9fff;
}

@media (max-width: 900px) {
    .apply-page .apply-grid {
        grid-template-columns: 1fr;
    }

    .apply-page .apply-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

@media (min-width: 1200px) {
    .apply-page .apply-card {
        max-width: 1040px;
    }
}

@media (min-width: 1440px) {
    .apply-page .container {
        max-width: 1320px;
    }

    .apply-page .apply-card {
        max-width: 1120px;
    }
}

/* Bewerbungsformular - Professional Look */
.apply-page {
    background: radial-gradient(circle at top, rgba(77,159,255,0.15), transparent 45%),
        radial-gradient(circle at 20% 80%, rgba(167,139,250,0.12), transparent 50%),
        #141414;
    min-height: 100vh;
}

.apply-page header {
    position: static;
    background: transparent;
    border: none;
}

.apply-topbar .header-content {
    padding: 0;
    background: transparent;
    border: none;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.apply-background {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.apply-blob {
    position: absolute;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.apply-blob--one {
    top: -120px;
    right: -80px;
    background: rgba(77, 159, 255, 0.35);
}

.apply-blob--two {
    bottom: -140px;
    left: -100px;
    background: rgba(236, 72, 153, 0.28);
}

.apply-wrapper {
    position: relative;
    z-index: 1;
}

.apply-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    background: transparent;
    border: none;
}

.apply-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.apply-brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4d9fff, #7c9cff);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #fff;
}

.apply-brand-title {
    font-size: 16px;
    font-weight: 600;
    color: #eaeaea;
}

.apply-brand-subtitle {
    font-size: 12px;
    color: #a3a3a3;
    margin-top: 2px;
}

.apply-hero {
    text-align: center;
    padding: 8px 0 24px;
}

.apply-hero h1 {
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: #f2f2f2;
    margin-bottom: 8px;
}

.apply-hero p {
    color: #b5b5b5;
    font-size: 16px;
}

.apply-card {
    border-radius: 16px;
    border: 1px solid #2b2b2b;
    background: #1f1f1f;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.apply-header {
    background: #181818;
    border-bottom: 1px solid #2b2b2b;
}

.apply-chip {
    background-color: #141414;
    border: 1px solid #2f2f2f;
    color: #bfbfbf;
}

.apply-section {
    background: #1a1a1a;
    border: 1px solid #2b2b2b;
    border-radius: 12px;
    padding: 18px;
    margin-bottom: 16px;
}

.apply-section-title {
    font-size: 12px;
    letter-spacing: 0.16em;
    color: #c9c9c9;
    text-transform: uppercase;
    margin: 0 0 14px;
    padding: 10px 12px;
    background: linear-gradient(90deg, rgba(77,159,255,0.18), rgba(124,156,255,0.08));
    border-radius: 8px;
    border: 1px solid rgba(77,159,255,0.18);
}

.apply-section:nth-of-type(2) .apply-section-title {
    background: linear-gradient(90deg, rgba(236,72,153,0.2), rgba(236,72,153,0.06));
    border-color: rgba(236,72,153,0.2);
}

.apply-section:nth-of-type(3) .apply-section-title {
    background: linear-gradient(90deg, rgba(245,158,11,0.18), rgba(245,158,11,0.06));
    border-color: rgba(245,158,11,0.2);
}

.apply-section:nth-of-type(4) .apply-section-title {
    background: linear-gradient(90deg, rgba(59,130,246,0.18), rgba(59,130,246,0.06));
    border-color: rgba(59,130,246,0.2);
}

.apply-section:nth-of-type(5) .apply-section-title {
    background: linear-gradient(90deg, rgba(16,185,129,0.18), rgba(16,185,129,0.06));
    border-color: rgba(16,185,129,0.2);
}

.apply-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: #181818;
}

.apply-submit {
    padding: 12px 24px;
    font-size: 15px;
}

.apply-footer-note {
    font-size: 12px;
    color: #9b9b9b;
}

.apply-brand-text {
    display: flex;
    flex-direction: column;
}

@media (max-width: 768px) {
    .apply-topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .apply-hero {
        text-align: left;
    }
}

/* Header */
header {
    background-color: #242424;
    border-bottom: 1px solid #333;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #4d9fff;
}

.logo svg {
    color: #4d9fff;
}

.logo h1 {
    font-size: 20px;
    font-weight: 600;
}

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

.tabs {
    display: flex;
    gap: 5px;
    padding: 0 20px;
    background-color: #2a2a2a;
}

.tab {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 14px;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.tab:hover {
    color: #e0e0e0;
    background-color: #333;
}

.tab.active {
    color: #e0e0e0;
    border-bottom-color: #4d9fff;
}

.menu-btn {
    margin-left: auto;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background-color: #4d9fff;
    color: white;
}

.btn-primary:hover {
    background-color: #3d8fef;
}

.btn-secondary {
    background-color: #333;
    color: #e0e0e0;
}

.btn-secondary:hover {
    background-color: #444;
}

.btn-danger {
    background-color: #dc3545;
    color: white;
}

.btn-danger:hover {
    background-color: #c82333;
}

/* Kanban Board */
.kanban-board {
    display: flex;
    gap: 15px;
    padding: 20px;
    overflow-x: auto;
    height: calc(100vh - 140px);
}

.kanban-column {
    min-width: 280px;
    background-color: #242424;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    max-height: 100%;
}

.column-header {
    padding: 15px;
    border-bottom: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.column-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 14px;
}

.column-count {
    background-color: #333;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.add-item-btn {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 18px;
    padding: 0 5px;
}

.add-item-btn:hover {
    color: #e0e0e0;
}

.column-content {
    padding: 15px;
    flex: 1;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Applicant Cards */
.applicant-card {
    background-color: #2a2a2a;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid #333;
}

.applicant-card:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.applicant-card.dragging {
    opacity: 0.5;
}

.card-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
}

.card-icon {
    width: 20px;
    height: 20px;
    color: #999;
}

.card-name {
    flex: 1;
    font-weight: 500;
    font-size: 14px;
}

.card-date {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 10px;
}

.tag {
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
}

.tag.gut {
    background-color: #3a5a6a;
    color: #88c0d0;
}

.tag.potenzial {
    background-color: #5a4a3a;
    color: #d08770;
}

.tag.herausragend {
    background-color: #4a5a3a;
    color: #a3be8c;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #999;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    cursor: pointer;
}

.checkbox-label input[type="checkbox"]:checked {
    accent-color: #4d9fff;
}

.comment-count {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #999;
    font-size: 12px;
}

/* Status-spezifische Farben */
.column-neu .column-title { color: #4d9fff; }
.column-vorstellung .column-title { color: #9f7aea; }
.column-folgetermin .column-title { color: #ed8936; }
.column-probetag .column-title { color: #ed64a6; }
.column-spaeteres-interview .column-title { color: #718096; }
.column-eingestellt .column-title { color: #48bb78; }
.column-abgelehnt .column-title { color: #f56565; }
.column-ausgeschieden .column-title { color: #e53e3e; }

/* Modals */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background-color: #2a2a2a;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.modal-large {
    max-width: 800px;
}

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

.modal-header h2 {
    font-size: 20px;
    font-weight: 600;
}

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

.close-btn:hover {
    color: #e0e0e0;
}

.modal-body {
    padding: 20px;
}

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

/* Form Elements */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="date"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #e0e0e0;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4d9fff;
}

.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: normal;
}

.checkbox-group input[type="checkbox"] {
    cursor: pointer;
    accent-color: #4d9fff;
}

/* Comments Section */
#commentsSection {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
    padding: 10px;
    background-color: #1a1a1a;
    border-radius: 6px;
}

.comment {
    padding: 10px;
    background-color: #242424;
    border-radius: 6px;
    margin-bottom: 10px;
}

.comment:last-child {
    margin-bottom: 0;
}

.comment-text {
    color: #e0e0e0;
    font-size: 14px;
    margin-bottom: 5px;
}

.comment-date {
    color: #999;
    font-size: 11px;
}

/* Webhook List */
.webhook-item {
    background-color: #1a1a1a;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border: 1px solid #333;
}

.webhook-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.webhook-name {
    font-weight: 600;
    font-size: 16px;
}

.webhook-actions {
    display: flex;
    gap: 8px;
}

.webhook-url {
    color: #999;
    font-size: 12px;
    margin-bottom: 10px;
    word-break: break-all;
}

.webhook-triggers {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.webhook-trigger-tag {
    background-color: #333;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.webhook-inactive {
    opacity: 0.5;
}

/* Alle Bewerber */
.all-page .container {
    max-width: 1200px;
}

.header-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-top: 1px solid #333;
    background-color: #242424;
    gap: 16px;
}

.toolbar-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toolbar-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #4d9fff, #3d8fef);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}

.toolbar-heading {
    font-size: 18px;
    font-weight: 600;
    color: #e0e0e0;
}

.toolbar-subtitle {
    font-size: 12px;
    color: #999;
    margin-top: 2px;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.search-field {
    position: relative;
}

.search-field input {
    padding: 10px 12px 10px 34px;
    background-color: #1a1a1a;
    border: 1px solid #444;
    border-radius: 8px;
    color: #e0e0e0;
    width: 260px;
}

.search-field input:focus {
    outline: none;
    border-color: #4d9fff;
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
}

.filter-select {
    background-color: #1a1a1a;
    border: 1px solid #444;
    color: #e0e0e0;
    padding: 10px 12px;
    border-radius: 8px;
}

.table-footer {
    padding: 12px 20px 24px;
    color: #999;
    font-size: 13px;
}

.applicants-table td,
.applicants-table th {
    vertical-align: top;
}

.name-cell {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.name-sub {
    font-size: 12px;
    color: #999;
}

.pill-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pill {
    background-color: #333;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    color: #cfcfcf;
}

.file-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.file-actions a {
    color: #8fb9ff;
    font-size: 12px;
    text-decoration: none;
}

.file-actions a:hover {
    text-decoration: underline;
}

.file-preview {
    background: #1a1a1a;
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    padding: 8px;
}

.file-preview summary {
    cursor: pointer;
    font-size: 12px;
    color: #bdbdbd;
}

.file-preview iframe {
    width: 100%;
    height: 320px;
    border: none;
    border-radius: 6px;
    margin-top: 8px;
}

.file-preview img,
.file-preview video,
.file-preview audio {
    width: 100%;
    margin-top: 8px;
    border-radius: 6px;
}

.details-panel {
    background: #1a1a1a;
    border: 1px solid #2b2b2b;
    border-radius: 8px;
    padding: 8px;
}

.details-panel summary {
    cursor: pointer;
    font-size: 12px;
    color: #bdbdbd;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 10px;
    margin-top: 8px;
}

.details-item {
    background: #181818;
    border: 1px solid #2b2b2b;
    border-radius: 6px;
    padding: 8px;
}

.details-label {
    font-size: 11px;
    color: #9b9b9b;
    margin-bottom: 4px;
}

.details-value {
    font-size: 12px;
    color: #e0e0e0;
    word-break: break-word;
}

.rating-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
}

.rating-gut { background-color: #2f4f3a; color: #88c0a0; }
.rating-potenzial { background-color: #5a4a3a; color: #d08770; }
.rating-herausragend { background-color: #4a5a3a; color: #a3be8c; }
.rating-top { background-color: #5a3a4a; color: #ed64a6; }

.status-spaeteres { background-color: #3b3b4f; color: #9f7aea; }
.status-ausgeschieden { background-color: #4a2f2f; color: #f56565; }

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive */
@media (max-width: 768px) {
    .kanban-board {
        padding: 10px;
    }

    .kanban-column {
        min-width: 250px;
    }

    .header-content {
        flex-direction: column;
        gap: 15px;
    }

    .tabs {
        overflow-x: auto;
    }
}

/* Drag and Drop */
.column-content.drag-over {
    background-color: #333;
    border: 2px dashed #4d9fff;
}
