/* project.css - Vollständige Projektverwaltung (BEREINIGT + KOMPAKTE FEEDBACK-CONTROLS) */
/* Ersetzt project_manage.css komplett */

/* === DARK THEME BASE === */
body { background: #12151b !important; }
.content { background: transparent !important; }

/* === ZWEISPALTIGES HEADER-LAYOUT === */
.project-header {
    background: linear-gradient(135deg, #273849, #1e293b);
    padding: 1.5rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 2rem;
}

.header-left {
    flex: 1;
    min-width: 0;
}

.header-title-section {
    margin-bottom: 1rem;
}

.header-title-section h1 {
    color: #d1d9e6 !important;
    margin: 0 0 0.5rem 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
}

.header-title-section h1 i {
    color: #56cfe1;
    font-size: 1.2em;
}

.header-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #8a8886;
    margin-bottom: 0.5rem;
}

.header-breadcrumb a {
    color: #56cfe1;
    text-decoration: none;
    transition: color 0.2s ease;
}

.header-breadcrumb a:hover {
    color: #8bd5ff;
}

.header-breadcrumb i {
    font-size: 0.8rem;
    opacity: 0.7;
}

.breadcrumb-shortcode {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white !important;
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 600;
    font-size: 0.8rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.breadcrumb-shortcode:before {
    content: "📁";
    font-size: 0.9em;
}

.readonly-indicator {
    background: #f39c12;
    color: #12151b;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-weight: 600;
    display: inline-block;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.header-status-section {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.status-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.status-label {
    font-size: 0.9rem;
    color: #8a8886;
    font-weight: 500;
    min-width: 80px;
}

.status-value {
    font-size: 0.9rem;
    color: #e0e0e0;
    font-weight: 500;
}

.header-right {
    flex-shrink: 0;
    min-width: 200px;
    max-width: 300px;
}

/* === KOMPAKTE TOKEN-HEADER-ANZEIGE === */
.token-header-display {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    align-items: flex-end;
    text-align: right;
}

.token-header-label {
    font-size: 0.85rem;
    color: #8a8886;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.token-header-code {
    margin-bottom: 0.5rem;
}

.token-code-header {
    background: #273849 !important;
    color: #56cfe1 !important;
    padding: 0.4rem 0.8rem !important;
    border-radius: 6px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 1rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    letter-spacing: 1px !important;
    border: 1px solid #3a4a5a !important;
}

.token-code-header:hover {
    background: #3a4a5a !important;
    color: #8bd5ff !important;
    transform: scale(1.05) !important;
}

.token-header-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: flex-end;
}

.token-header-btn {
    background: #3a4a5a !important;
    color: #e0e0e0 !important;
    border: 1px solid #4a5a6a !important;
    border-radius: 6px !important;
    padding: 0.5rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 0.9rem !important;
}

.token-header-btn:hover {
    background: #4a5a6a !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3) !important;
}

.token-copy-btn:hover {
    background: #27ae60 !important;
    border-color: #27ae60 !important;
}

.token-open-btn:hover {
    background: #3a86ff !important;
    border-color: #3a86ff !important;
}

.token-qr-btn:hover {
    background: #8e44ad !important;
    border-color: #8e44ad !important;
}

/* === PROJEKTBESCHREIBUNG === */
.project-description-section {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    border-left: 4px solid #56cfe1;
}

.project-description-section h3 {
    color: #d1d9e6;
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.project-description-section h3 i {
    color: #56cfe1;
    font-size: 1em;
}

.project-description-section p {
    color: #e0e0e0;
    line-height: 1.6;
    margin: 0;
}

/* === DRAG & DROP STYLES === */
.drag-handle-cell,
.drag-header-cell {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 0 !important;
    border: 1px solid #3a4a5a !important;
    position: relative !important;
    vertical-align: middle !important;
    box-sizing: border-box !important;
    user-select: none !important;
}

.drag-header-cell {
    background: #273849 !important;
    color: #8a8886 !important;
    text-align: center !important;
    font-size: 14px !important;
    position: sticky !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 25 !important;
    height: 32px !important;
    line-height: 32px !important;
}

.drag-handle-cell {
    background: #273849 !important;
    color: #8a8886 !important;
    position: sticky !important;
    left: 0 !important;
    z-index: 15 !important;
    height: 36px !important;
    cursor: grab !important;
    transition: background 0.2s ease !important;
}

.drag-handle-cell:hover {
    background: #3a4a5a !important;
    color: #ffffff !important;
}

.drag-handle-cell:active {
    cursor: grabbing !important;
}

.drag-handle {
    width: 100% !important;
    height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 14px !important;
    color: inherit !important;
    user-select: none !important;
}

.drag-handle i {
    pointer-events: none !important;
}

.drag-handle-cell.dragging {
    background: #007bff !important;
    color: white !important;
    cursor: grabbing !important;
}

.drag-handle-cell.disabled {
    background: #1e293b !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
    opacity: 0.6 !important;
}

tr[draggable="true"] {
    cursor: move !important;
    user-select: none !important;
}

tr.dragging {
    opacity: 0.5 !important;
    cursor: grabbing !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3) !important;
}

tr.drag-over-top {
    border-top: 4px solid #007bff !important;
    box-shadow: 0 -4px 8px rgba(0, 123, 255, 0.5) !important;
    background-color: rgba(0, 123, 255, 0.1) !important;
}

tr.drag-over-bottom {
    border-bottom: 4px solid #007bff !important;
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.5) !important;
    background-color: rgba(0, 123, 255, 0.1) !important;
}

/* === DELETE STYLES === */
.delete-handle-cell,
.delete-header-cell {
    width: 50px !important;
    min-width: 50px !important;
    max-width: 50px !important;
    padding: 0 !important;
    border: 1px solid #3a4a5a !important;
    position: relative;
    vertical-align: middle;
    box-sizing: border-box;
    user-select: none !important;
}

.delete-header-cell {
    background: #273849 !important;
    color: #8a8886 !important;
    text-align: center;
    font-size: 14px;
    position: sticky;
    top: 0;
    right: 0;
    z-index: 25;
    height: 32px;
    line-height: 32px;
}

.delete-handle-cell {
    background: #273849 !important;
    color: #e74c3c !important;
    position: sticky;
    right: 0;
    z-index: 15;
    height: 36px;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.delete-handle-cell:hover {
    background: #e74c3c !important;
    color: #ffffff !important;
    transform: scale(1.1);
}

.delete-handle-cell:active {
    background: #c0392b !important;
}

.delete-handle-cell.new-row {
    background: #f39c12 !important;
    color: #ffffff !important;
}

.delete-handle-cell.new-row:hover {
    background: #e67e22 !important;
}

.delete-handle {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: inherit;
    user-select: none !important;
    transition: all 0.2s ease;
}

.delete-handle:hover {
    transform: scale(1.1);
}

/* === FEHLERCONTAINER === */
.error-container {
    background: #1e293b;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 600px;
    margin: 2rem auto;
    border: 1px solid #ff3b30;
}

.error-container h2 {
    color: #ff3b30 !important;
    margin-bottom: 1rem;
}

.error-container p {
    color: #e0e0e0 !important;
    margin-bottom: 1.5rem;
}

/* === TOKEN-EINGABE === */
.token-input-section {
    background: #1e293b;
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    text-align: center;
    max-width: 500px;
    margin: 3rem auto;
}

.token-input-section h2 {
    color: #d1d9e6;
    margin-bottom: 1.5rem;
}

.token-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.token-input {
    padding: 0.75rem 1.5rem;
    font-size: 1.2rem;
    font-family: inherit;
    text-transform: uppercase;
    text-align: center;
    letter-spacing: 0.2em;
    border: 2px solid #3a4a5a;
    border-radius: 8px;
    background: #12151b;
    color: #e0e0e0;
    width: 300px;
}

.token-input:focus {
    outline: none;
    border-color: #56cfe1;
    box-shadow: 0 0 0 3px rgba(86, 207, 225, 0.2);
}

/* === FORMULAR DARK THEME === */
.project-form-container {
    background: #1e293b !important;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 800px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    color: #d1d9e6 !important;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-group input[type="text"],
.form-group input[type="number"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3a4a5a !important;
    border-radius: 6px;
    background: #12151b !important;
    color: #e0e0e0 !important;
    font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: #56cfe1 !important;
    box-shadow: 0 0 0 3px rgba(86, 207, 225, 0.2);
}

.form-group textarea {
    min-height: 100px;
    resize: vertical;
}

.form-group small {
    display: block;
    margin-top: 0.25rem;
    color: #8a8886 !important;
    font-size: 0.85rem;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #3a4a5a;
}

/* === BUTTON STYLES === */
.btn {
    transition: all 0.3s ease !important;
}

.btn:hover {
    transform: scale(1.05) !important;
}

.task-grid-container .btn {
    padding: 0.5rem 1rem !important;
    margin-right: 0.5rem !important;
    border: none !important;
    border-radius: 999px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.6) !important;
    font-family: 'Inter', Verdana, sans-serif !important;
}

.task-grid-container .btn:last-child {
    margin-right: 0 !important;
}

.task-grid-container .btn:hover {
    transform: scale(1.05) !important;
}

.grid-action-buttons .btn {
    padding: 0.75rem 1.5rem !important;
    font-size: 1rem !important;
    margin: 0 0.5rem !important;
}

/* === FEEDBACK-CONTROLS (ORIGINAL VERTICAL LAYOUT) === */
.feedback-controls {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding: 0.75rem;
    background: rgba(86, 207, 225, 0.05);
    border-radius: 8px;
    border: 1px solid rgba(86, 207, 225, 0.2);
    min-width: 280px;
    position: relative;
    transition: all 0.3s ease;
}

.feedback-controls:hover {
    background: rgba(86, 207, 225, 0.08);
    border-color: rgba(86, 207, 225, 0.3);
    box-shadow: 0 4px 12px rgba(86, 207, 225, 0.1);
}

.feedback-header {
    margin-bottom: 0.5rem;
}

.feedback-role {
    color: #56cfe1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feedback-role::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #56cfe1;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.feedback-buttons {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-start;
}

.feedback-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #2a3441;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    outline: none;
}

.feedback-btn::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, transparent, transparent);
    z-index: -1;
    transition: all 0.3s ease;
}

.feedback-btn:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0,0,0,0.4);
}

.feedback-btn:active {
    transform: scale(1.05);
}

.feedback-btn.green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #27ae60;
    color: white;
}

.feedback-btn.green:hover {
    background: linear-gradient(135deg, #2ecc71, #58d68d);
    box-shadow: 0 4px 16px rgba(39, 174, 96, 0.4);
}

.feedback-btn.yellow {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    border-color: #f39c12;
    color: white;
}

.feedback-btn.yellow:hover {
    background: linear-gradient(135deg, #f1c40f, #f7dc6f);
    box-shadow: 0 4px 16px rgba(243, 156, 18, 0.4);
}

.feedback-btn.red {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    border-color: #e74c3c;
    color: white;
}

.feedback-btn.red:hover {
    background: linear-gradient(135deg, #ec7063, #f1948a);
    box-shadow: 0 4px 16px rgba(231, 76, 60, 0.4);
}

.feedback-btn:not(.active) {
    background: #2a3441;
    color: #8a8886;
    border-color: #3a4a5a;
}

.feedback-btn:not(.active):hover {
    background: #3a4a5a;
    color: #e0e0e0;
    border-color: #4a5a6a;
}

.feedback-btn.active {
    box-shadow: 0 0 0 3px rgba(255,255,255,0.3), 0 4px 16px rgba(0,0,0,0.4);
    transform: scale(1.1);
}

.feedback-btn.green.active {
    box-shadow: 0 0 0 3px rgba(39, 174, 96, 0.5), 0 4px 16px rgba(39, 174, 96, 0.3);
}

.feedback-btn.yellow.active {
    box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.5), 0 4px 16px rgba(243, 156, 18, 0.3);
}

.feedback-btn.red.active {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.5), 0 4px 16px rgba(231, 76, 60, 0.3);
}

.feedback-comment {
    margin-top: 0.75rem;
    width: 100%;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feedback-comment textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #3a4a5a;
    border-radius: 6px;
    background: #12151b;
    color: #e0e0e0;
    font-size: 0.9rem;
    min-height: 70px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.feedback-comment textarea:focus {
    outline: none;
    border-color: #56cfe1;
    box-shadow: 0 0 0 2px rgba(86, 207, 225, 0.2);
    background: #1a1f2a;
}

.feedback-comment textarea:disabled {
    background: #1a1f2a;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.feedback-comment textarea::placeholder {
    color: #6c757d;
    font-style: italic;
}

.feedback-hint {
    display: block;
    margin-top: 0.75rem;
    color: #8a8886;
    font-size: 0.8rem;
    font-style: italic;
    text-align: center;
    padding: 0.5rem;
    background: rgba(42, 52, 65, 0.3);
    border-radius: 4px;
    border-left: 3px solid #56cfe1;
}

.feedback-hint i {
    color: #56cfe1;
    margin-right: 0.25rem;
}

.feedback-status {
    margin-top: 0.75rem;
    padding: 0.75rem;
    background: rgba(42, 52, 65, 0.7);
    border-radius: 6px;
    border-left: 3px solid #56cfe1;
    animation: slideIn 0.3s ease-out;
}

.feedback-info {
    color: #d1d9e6;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.feedback-info i {
    color: #56cfe1;
    font-size: 1rem;
}

.status-indicator {
    font-weight: 600;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-indicator.status-green {
    background: rgba(39, 174, 96, 0.2);
    color: #27ae60;
    border: 1px solid rgba(39, 174, 96, 0.3);
}

.status-indicator.status-yellow {
    background: rgba(243, 156, 18, 0.2);
    color: #f39c12;
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.status-indicator.status-red {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

/* === KOMPAKTE FEEDBACK-CONTROLS === */
/* Diese Styles überschreiben die bestehenden für kompakte Darstellung */

.feedback-controls.compact {
    display: block;
    gap: 0;
    margin: 0;
    padding: 0.5rem;
    background: rgba(86, 207, 225, 0.03);
    border-radius: 6px;
    border: 1px solid rgba(86, 207, 225, 0.15);
    min-width: 480px;
    position: relative;
    transition: all 0.2s ease;
}

.feedback-controls.compact:hover {
    background: rgba(86, 207, 225, 0.06);
    border-color: rgba(86, 207, 225, 0.25);
    box-shadow: 0 2px 8px rgba(86, 207, 225, 0.08);
}

/* TOOLTIP für ganzen Container */
.feedback-controls.compact::before {
    content: "Feedback verwalten";
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #273849;
    color: #e0e0e0;
    padding: 0.5rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    margin-bottom: 8px;
}

.feedback-controls.compact:hover::before {
    opacity: 1;
    visibility: visible;
}

.feedback-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    flex-wrap: nowrap;
}

.feedback-controls.compact .feedback-role {
    color: #56cfe1;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.7rem;
    white-space: nowrap;
    min-width: 80px;
    flex-shrink: 0;
    position: relative;
    padding-left: 18px; /* Mehr Platz für den Punkt */
}

.feedback-controls.compact .feedback-role::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #56cfe1;
    position: absolute;
    left: 6px; /* Näher zum Text aber nicht außerhalb */
    top: 50%;
    transform: translateY(-50%);
    animation: pulse 2s infinite;
}

.feedback-controls.compact .feedback-buttons {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-shrink: 0;
}

.feedback-controls.compact .feedback-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid transparent;
    background: #2a3441;
    cursor: pointer;
    transition: all 0.25s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    position: relative;
    box-shadow: 0 1px 4px rgba(0,0,0,0.2);
    outline: none;
    flex-shrink: 0;
}

.feedback-controls.compact .feedback-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.feedback-controls.compact .feedback-btn:active {
    transform: scale(1.05);
}

.feedback-controls.compact .feedback-btn.green {
    background: linear-gradient(135deg, #27ae60, #2ecc71);
    border-color: #27ae60;
    color: white;
}

.feedback-controls.compact .feedback-btn.green:hover {
    background: linear-gradient(135deg, #2ecc71, #58d68d);
    box-shadow: 0 2px 8px rgba(39, 174, 96, 0.4);
}

.feedback-controls.compact .feedback-btn.yellow {
    background: linear-gradient(135deg, #f39c12, #f1c40f);
    border-color: #f39c12;
    color: white;
}

.feedback-controls.compact .feedback-btn.yellow:hover {
    background: linear-gradient(135deg, #f1c40f, #f7dc6f);
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.4);
}

.feedback-controls.compact .feedback-btn.red {
    background: linear-gradient(135deg, #e74c3c, #ec7063);
    border-color: #e74c3c;
    color: white;
}

.feedback-controls.compact .feedback-btn.red:hover {
    background: linear-gradient(135deg, #ec7063, #f1948a);
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.4);
}

.feedback-controls.compact .feedback-btn:not(.active) {
    background: #2a3441;
    color: #8a8886;
    border-color: #3a4a5a;
}

.feedback-controls.compact .feedback-btn:not(.active):hover {
    background: #3a4a5a;
    color: #e0e0e0;
    border-color: #4a5a6a;
}

.feedback-controls.compact .feedback-btn.active {
    box-shadow: 0 0 0 2px rgba(255,255,255,0.3), 0 2px 8px rgba(0,0,0,0.3);
    transform: scale(1.05);
}

.feedback-controls.compact .feedback-btn.green.active {
    box-shadow: 0 0 0 2px rgba(39, 174, 96, 0.5), 0 2px 8px rgba(39, 174, 96, 0.3);
}

.feedback-controls.compact .feedback-btn.yellow.active {
    box-shadow: 0 0 0 2px rgba(243, 156, 18, 0.5), 0 2px 8px rgba(243, 156, 18, 0.3);
}

.feedback-controls.compact .feedback-btn.red.active {
    box-shadow: 0 0 0 2px rgba(231, 76, 60, 0.5), 0 2px 8px rgba(231, 76, 60, 0.3);
}

.feedback-comment-inline {
    flex: 1;
    min-width: 120px;
    /* max-width entfernt für volle Nutzung des verfügbaren Platzes */
}

.feedback-comment-inline textarea {
    width: 100%;
    padding: 0.4rem 0.6rem;
    border: 1px solid #3a4a5a;
    border-radius: 4px;
    background: #12151b;
    color: #e0e0e0;
    font-size: 0.8rem;
    min-height: 28px;
    max-height: 60px;
    resize: vertical;
    font-family: inherit;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.feedback-comment-inline textarea:focus {
    outline: none;
    border-color: #56cfe1;
    box-shadow: 0 0 0 1px rgba(86, 207, 225, 0.2);
    background: #1a1f2a;
}

.feedback-comment-inline textarea:disabled {
    background: #1a1f2a;
    color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.feedback-comment-inline textarea::placeholder {
    color: #6c757d;
    font-style: italic;
    font-size: 0.75rem;
}

.feedback-status-inline {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    min-width: 120px;
}

.feedback-status-inline .status-text {
    color: #d1d9e6;
    font-weight: 500;
}

.feedback-status-inline .status-green {
    color: #27ae60;
    font-weight: 600;
}

.feedback-status-inline .status-yellow {
    color: #f39c12;
    font-weight: 600;
}

.feedback-status-inline .status-red {
    color: #e74c3c;
    font-weight: 600;
}

.feedback-status-inline em {
    color: #8a8886;
    font-style: italic;
}

.feedback-hint-inline {
    display: none !important; /* Versteckt da wir jetzt Container-Tooltip haben */
}

/* === READONLY STYLES === */
.readonly .grid-cell {
    background: #1a1f2a !important;
    cursor: not-allowed !important;
}

.readonly .btn:not(.view-btn) {
    display: none;
}

/* === ABRECHNUNGSÜBERSICHT === */
.accounting-summary {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
}

.accounting-summary h3 {
    color: #d1d9e6;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3a4a5a;
    padding-bottom: 0.5rem;
}

.accounting-group {
    background: #273849;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
}

.accounting-group h4 {
    color: #56cfe1;
    margin-bottom: 0.5rem;
}

.accounting-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-item {
    background: #1e293b;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
}

.stat-label {
    font-size: 0.85rem;
    color: #8a8886;
    margin-bottom: 0.25rem;
}

.stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #56cfe1;
}

/* === GRID CONTAINER === */
.task-grid-container {
    margin-top: 2rem;
    background: #1e293b;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
    overflow: hidden;
    position: relative !important;
}

.task-grid-container .top-nav {
    background: linear-gradient(90deg, #273849, #1e293b) !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #3a4a5a;
}

.task-grid-container .nav-left h1 {
    color: #d1d9e6 !important;
    font-size: 18px !important;
    font-weight: 500 !important;
}

.task-grid-container .grid-info-panel {
    background: #273849 !important;
    color: #e0e0e0 !important;
    border-bottom: 1px solid #3a4a5a;
}

.task-grid-container .grid-container {
    background: #12151b !important;
    min-height: 400px;
    position: relative;
}

.task-grid-container .excel-grid {
    background: #1e293b !important;
}

.task-grid-container .column-header {
    background: #273849 !important;
    color: #d1d9e6 !important;
    border-color: #3a4a5a !important;
}

.task-grid-container .grid-cell {
    background: #12151b !important;
    color: #e0e0e0 !important;
    border-color: #3a4a5a !important;
}

.task-grid-container .grid-cell:focus {
    background: #1a1f2a !important;
    outline-color: #56cfe1 !important;
}

.task-grid-container .row-number-cell {
    background: #273849 !important;
    color: #8a8886 !important;
    border-color: #3a4a5a !important;
}

.task-grid-empty {
    text-align: center;
    padding: 3rem;
    color: #8a8886;
    background: #12151b;
    border-radius: 8px;
    margin: 2rem 0;
}

.task-grid-empty h3 {
    color: #d1d9e6;
    margin-bottom: 1rem;
}

.task-grid-empty p {
    margin-bottom: 2rem;
    font-size: 1.1rem;
}

/* === DATE PICKER === */
#datePicker {
    position: absolute !important;
    background: #1e293b !important;
    border: 1px solid #3a4a5a !important;
    color: #e0e0e0 !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4) !important;
    z-index: 10000 !important;
    border-radius: 8px !important;
    padding: 15px !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    min-width: 280px !important;
    max-width: calc(100vw - 40px) !important;
}

#datePicker .calendar-header {
    background: #273849 !important;
    border-bottom: 1px solid #3a4a5a !important;
    padding: 10px !important;
    border-radius: 6px 6px 0 0 !important;
    margin: -15px -15px 15px -15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

#datePicker .calendar-title {
    color: #d1d9e6 !important;
    font-weight: bold !important;
    flex: 1 !important;
    text-align: center !important;
    font-size: 14px !important;
}

#datePicker .calendar-nav {
    background: #3a4a5a !important;
    color: #e0e0e0 !important;
    border: 1px solid #4a5a6a !important;
    border-radius: 4px !important;
    padding: 5px 8px !important;
    cursor: pointer !important;
    font-size: 12px !important;
    transition: background 0.2s !important;
}

#datePicker .calendar-nav:hover {
    background: #4a5a6a !important;
    color: #ffffff !important;
}

#datePicker .calendar-weekdays {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 1px !important;
    margin-bottom: 5px !important;
}

#datePicker .weekday {
    background: #273849 !important;
    color: #8a8886 !important;
    font-weight: bold !important;
    text-align: center !important;
    font-size: 12px !important;
    padding: 8px 4px !important;
}

#datePicker .calendar-days {
    display: grid !important;
    grid-template-columns: repeat(7, 1fr) !important;
    gap: 1px !important;
    margin-bottom: 15px !important;
}

#datePicker .calendar-day {
    color: #e0e0e0 !important;
    background: #1e293b !important;
    border: 1px solid #3a4a5a !important;
    text-align: center !important;
    padding: 8px 4px !important;
    cursor: pointer !important;
    font-size: 13px !important;
    border-radius: 3px !important;
    transition: all 0.2s !important;
    min-height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

#datePicker .calendar-day:hover {
    background: #3a4a5a !important;
    color: #ffffff !important;
}

#datePicker .calendar-day.today {
    background: #007bff !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

#datePicker .calendar-day.selected {
    background: #28a745 !important;
    color: #ffffff !important;
    font-weight: bold !important;
}

#datePicker .calendar-day.other-month {
    color: #6c757d !important;
    background: #12151b !important;
}

#datePicker .calendar-footer {
    background: #273849 !important;
    border-top: 1px solid #3a4a5a !important;
    padding: 10px !important;
    margin: 15px -15px -15px -15px !important;
    border-radius: 0 0 6px 6px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
}

#datePicker input[type="time"] {
    background: #12151b !important;
    color: #e0e0e0 !important;
    border: 1px solid #3a4a5a !important;
    border-radius: 3px !important;
    padding: 4px 6px !important;
    font-size: 12px !important;
    font-family: inherit !important;
}

#datePicker input[type="time"]:focus {
    border-color: #56cfe1 !important;
    box-shadow: 0 0 0 2px rgba(86, 207, 225, 0.2) !important;
    outline: none !important;
}

#datePicker .btn-small {
    padding: 4px 8px !important;
    font-size: 12px !important;
    border: 1px solid #3a4a5a !important;
    border-radius: 3px !important;
    background: #3a4a5a !important;
    color: #e0e0e0 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

#datePicker .btn-small:hover {
    background: #4a5a6a !important;
}

#datePicker .btn-small.btn-primary {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

#datePicker .btn-small.btn-primary:hover {
    background: #0056b3 !important;
}

/* === ENUM DROPDOWN === */
#enumDropdown {
    position: absolute !important;
    background: #1e293b !important;
    border: 1px solid #3a4a5a !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
    z-index: 10001 !important;
    border-radius: 6px !important;
    overflow: hidden !important;
    min-width: 150px !important;
    max-height: 200px !important;
    overflow-y: auto !important;
    max-width: calc(100vw - 40px) !important;
}

#enumDropdown .enum-option {
    color: #e0e0e0 !important;
    background: #1e293b !important;
    border-bottom: 1px solid #3a4a5a !important;
    padding: 10px 14px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    transition: all 0.15s ease !important;
}

#enumDropdown .enum-option:hover {
    background: #3a4a5a !important;
    color: #ffffff !important;
}

#enumDropdown .enum-option:last-child {
    border-bottom: none !important;
}

#enumDropdown .enum-option:active {
    background: #4a5a6a !important;
}

/* === TOOLTIPS === */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 200px;
    background-color: #273849;
    color: #e0e0e0;
    text-align: center;
    border-radius: 6px;
    padding: 0.5rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -100px;
    opacity: 0;
    transition: opacity 0.3s;
    font-size: 0.85rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tooltip:hover .tooltiptext {
    visibility: visible;
    opacity: 1;
}

/* === CODE ELEMENTE === */
code {
    background: #273849;
    color: #56cfe1;
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: inherit;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.2;
}

code:hover {
    background: #3a4a5a;
    color: #8bd5ff;
}

/* === MODAL DARK THEME === */
.modal {
    background: rgba(0, 0, 0, 0.8) !important;
}

.modal-content {
    background: #1e293b !important;
    color: #e0e0e0 !important;
    max-width: 800px;
    margin: 5% auto;
}

.modal-header {
    background: #273849 !important;
    border-bottom-color: #3a4a5a !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem 2rem;
}

.modal-header h3 {
    color: #d1d9e6 !important;
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-header h3 i {
    color: #56cfe1;
    font-size: 1.2em;
}

.modal-header .close {
    color: #8a8886 !important;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: all 0.2s ease;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.modal-header .close:hover {
    background: #3a4a5a !important;
    color: #e0e0e0 !important;
    transform: scale(1.1);
}

.modal-body {
    padding: 0;
}

.modal-body .project-form-container {
    margin: 0;
    box-shadow: none;
    border-radius: 0;
}

.modal-body input[type="text"],
.modal-body input[type="email"],
.modal-body input[type="password"] {
    background: #12151b !important;
    color: #e0e0e0 !important;
    border-color: #3a4a5a !important;
}

.modal-body input:focus {
    border-color: #56cfe1 !important;
    box-shadow: 0 0 0 3px rgba(86, 207, 225, 0.2) !important;
}

/* === TABELLEN === */
.project-section,
.project-table,
.content,
main {
    background: transparent !important;
}

.project-table {
    width: 100%;
    border-collapse: collapse;
    background: #1e293b !important;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.project-table th,
.project-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    font-size: 0.9rem;
    color: #e0e0e0 !important;
    vertical-align: middle !important;
    line-height: 1.4 !important;
}

.project-table thead {
    background: #273849 !important;
    color: #e0e0e0 !important;
}

.project-table tbody tr:nth-child(even) { 
    background: #1c2532 !important;
}

.project-table tbody tr:nth-child(odd)  { 
    background: #1e293b !important;
}

.project-table td {
    vertical-align: middle !important;
}

.project-table td code {
    vertical-align: baseline !important;
    line-height: inherit !important;
}

.no-projects {
    text-align: center;
    padding: 3rem;
    color: #8a8886 !important;
}

/* === LAYOUT SPACING === */
.content {
    margin-top: 4rem;
    margin-bottom: 6rem;
    padding-bottom: 2rem;
}

.accounting-summary:last-child,
.grid-action-buttons:last-child {
    margin-bottom: 3rem;
}

.grid-action-buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: #273849;
    border-radius: 0 0 8px 8px;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    align-items: center;
}

.grid-action-buttons .btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    white-space: nowrap;
}

.provider-actions {
    display: flex !important;
    gap: 0.75rem !important;
    justify-content: center;
    padding: 1.5rem 1rem !important;
    margin-top: 1.5rem !important;
    border-top: 1px solid #3a4a5a;
    flex-wrap: wrap;
}

.provider-actions .btn {
    padding: 0.6rem 1.2rem !important;
    font-size: 0.9rem !important;
    margin: 0 !important;
    white-space: nowrap;
}

/* === SCROLLBARS === */
#datePicker::-webkit-scrollbar,
#enumDropdown::-webkit-scrollbar {
    width: 8px;
}

#datePicker::-webkit-scrollbar-track,
#enumDropdown::-webkit-scrollbar-track {
    background: #273849;
    border-radius: 4px;
}

#datePicker::-webkit-scrollbar-thumb,
#enumDropdown::-webkit-scrollbar-thumb {
    background: #3a4a5a;
    border-radius: 4px;
}

#datePicker::-webkit-scrollbar-thumb:hover,
#enumDropdown::-webkit-scrollbar-thumb:hover {
    background: #4a5a6a;
}

/* === EDIT CONTAINER LAYOUT === */
.edit-container {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.edit-form-section {
    background: #1e293b;
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid #3a4a5a;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.section-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #3a4a5a;
}

.section-header h2 {
    color: #d1d9e6 !important;
    margin: 0 0 0.5rem 0;
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 i {
    color: #56cfe1;
    font-size: 1.2em;
}

.section-header p {
    color: #8a8886;
    margin: 0;
    font-size: 1rem;
    line-height: 1.5;
}

.project-form {
    width: 100%;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #d1d9e6 !important;
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 1rem;
}

.form-group label i {
    color: #56cfe1;
    font-size: 1em;
    width: 16px;
    text-align: center;
}

/* === EDIT SIDEBAR === */
.edit-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-section {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #3a4a5a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.sidebar-section h3 {
    color: #d1d9e6;
    margin: 0 0 1rem 0;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #3a4a5a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.sidebar-section h3 i {
    color: #56cfe1;
    font-size: 1em;
}

.edit-sidebar .accounting-summary {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

.edit-sidebar .accounting-group {
    background: #273849;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0;
}

.edit-sidebar .accounting-group h4 {
    color: #56cfe1;
    margin: 0 0 1rem 0;
    font-size: 1rem;
}

.edit-sidebar .accounting-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}

.edit-sidebar .stat-item {
    background: #1e293b;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #3a4a5a;
}

.edit-sidebar .stat-label {
    font-size: 0.8rem;
    color: #8a8886;
    margin-bottom: 0.25rem;
    display: block;
}

.edit-sidebar .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #56cfe1;
    display: block;
}

.edit-sidebar .stat-value-highlight {
    color: #f39c12;
    font-size: 1.1rem;
}

.quick-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.btn-full {
    width: 100% !important;
    justify-content: flex-start !important;
    gap: 0.75rem !important;
    text-align: left !important;
    margin: 0 !important;
}

.btn-full i {
    width: 16px;
    text-align: center;
}

/* === TOKEN ACTION BUTTONS (für Tabellen) === */
.token-table-display {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
}

.token-table-item {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
}

.token-code-small {
    background: #273849 !important;
    color: #56cfe1 !important;
    padding: 0.25rem 0.5rem !important;
    border-radius: 4px !important;
    font-family: 'Courier New', monospace !important;
    font-size: 0.85rem !important;
    font-weight: bold !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: inline-block !important;
    border: 1px solid #3a4a5a !important;
}

.token-code-small:hover {
    background: #3a4a5a !important;
    color: #8bd5ff !important;
    transform: scale(1.05) !important;
}

.token-table-actions {
    display: flex !important;
    gap: 0.25rem !important;
    justify-content: center !important;
}

.token-action-btn {
    background: #3a4a5a !important;
    color: #e0e0e0 !important;
    border: 1px solid #4a5a6a !important;
    border-radius: 4px !important;
    padding: 0.375rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 28px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
}

.token-action-btn:hover {
    background: #4a5a6a !important;
    color: #ffffff !important;
    transform: scale(1.1) !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3) !important;
}

.token-action-btn i {
    font-size: 0.75rem !important;
}

/* Spezifische Hover-Farben für Token-Actions */
.token-action-btn:hover:nth-child(1) {
    background: #27ae60 !important; /* Copy - Grün */
    border-color: #27ae60 !important;
}

.token-action-btn:hover:nth-child(2) {
    background: #3a86ff !important; /* Link - Blau */
    border-color: #3a86ff !important;
}

.token-action-btn:hover:nth-child(3) {
    background: #f39c12 !important; /* External Link - Orange */
    border-color: #f39c12 !important;
}

.token-action-btn:hover:nth-child(4) {
    background: #8e44ad !important; /* QR - Lila */
    border-color: #8e44ad !important;
}

/* === PUBLIC VIEW FOOTER (im Stil der accounting-summary, zentriert) === */
.public-view-footer {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-align: center;
}

.public-view-footer h3 {
    color: #d1d9e6;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3a4a5a;
    padding-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.public-view-footer h3 i {
    color: #56cfe1;
    font-size: 1em;
}

.footer-info {
    /* Verwende das gleiche Layout wie accounting-group */
}

.footer-info-group {
    background: #273849;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    text-align: center;
}

.footer-info-group h4 {
    color: #56cfe1;
    margin-bottom: 0.75rem;
    font-size: 1rem;
    text-align: center;
}

.footer-info-group p {
    color: #e0e0e0 !important;
    line-height: 1.6;
    margin: 0 0 1.5rem 0;
    font-size: 0.95rem;
    text-align: center;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 1.5rem;
}

.footer-actions-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 0.5rem;
    justify-items: center;
}

.footer-action-item {
    background: #1e293b;
    padding: 0.75rem;
    border-radius: 4px;
    text-align: center;
    border: 1px solid #3a4a5a;
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    max-width: 220px;
}

.footer-action-item:hover {
    background: #2a3441;
    border-color: #56cfe1;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(86, 207, 225, 0.15);
}

.footer-action-item .action-label {
    font-size: 0.85rem;
    color: #8a8886;
    margin-bottom: 0.5rem;
    display: block;
    text-align: center;
}

.footer-action-item .action-button {
    background: none;
    border: none;
    color: #56cfe1;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    padding: 0.5rem;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-align: center;
}

.footer-action-item:hover .action-button {
    background: rgba(86, 207, 225, 0.1);
    color: #8bd5ff;
}

.last-update-group {
    background: #273849;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0;
    text-align: center;
}

.last-update-group .stat-label {
    font-size: 0.85rem;
    color: #8a8886;
    margin-bottom: 0.25rem;
    display: block;
    text-align: center;
}

.last-update-group .stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #f39c12;
    display: block;
    text-align: center;
}

/* === PUBLIC VIEW NOTICE === */
.public-view-notice {
    background: rgba(86, 207, 225, 0.1);
    border: 1px solid rgba(86, 207, 225, 0.3);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin: 1rem 0;
    color: #e0e0e0 !important;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    text-align: center;
}

.public-view-notice i {
    color: #56cfe1;
    font-size: 1.1em;
    flex-shrink: 0;
}

.public-view-notice strong {
    color: #56cfe1;
    font-weight: 600;
}

/* === SELECTION STYLES === */
tr.selected {
    background: rgba(86, 207, 225, 0.15) !important;
    box-shadow: inset 0 0 0 2px #56cfe1 !important;
    border-radius: 4px;
}

tr.selected .drag-handle-cell {
    background: #56cfe1 !important;
    color: #12151b !important;
    font-weight: bold;
}

tr.selected .delete-handle-cell {
    background: #e74c3c !important;
    color: #ffffff !important;
    font-weight: bold;
}

tr.selected .grid-cell {
    background: rgba(86, 207, 225, 0.1) !important;
    border-color: #56cfe1 !important;
}

/* === NOTIFICATIONS === */
.notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10001;
    pointer-events: none;
}

.notification {
    background: #2a3441;
    color: #e0e0e0;
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.4);
    border-left: 4px solid #56cfe1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transform: translateX(100%);
    opacity: 0;
    transition: all 0.3s ease;
    pointer-events: auto;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
    opacity: 1;
}

.notification.success {
    border-left-color: #27ae60;
}

.notification.error {
    border-left-color: #e74c3c;
}

.notification.warning {
    border-left-color: #f39c12;
}

.notification i {
    font-size: 1rem;
    flex-shrink: 0;
}

.notification.success i {
    color: #27ae60;
}

.notification.error i {
    color: #e74c3c;
}

.notification.warning i {
    color: #f39c12;
}

.notification.info i {
    color: #56cfe1;
}

/* === RESPONSIVE KOMPAKTE FEEDBACK === */
@media (max-width: 1400px) {
    .feedback-controls.compact {
        min-width: 420px;
    }
    
    .feedback-comment-inline {
        /* max-width entfernt für volle Nutzung */
    }
    
    .feedback-status-inline {
        min-width: 100px;
    }
}

@media (max-width: 1200px) {
    .feedback-controls.compact {
        min-width: 380px;
    }
    
    .feedback-comment-inline {
        /* max-width entfernt für volle Nutzung */
    }
    
    .feedback-status-inline {
        min-width: 90px;
        font-size: 0.75rem;
    }
    
    .feedback-controls.compact .feedback-role {
        min-width: 70px;
        font-size: 0.65rem;
    }
}

@media (max-width: 992px) {
    .feedback-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .feedback-controls.compact {
        min-width: 320px;
    }
    
    .feedback-comment-inline {
        flex: 1 1 100%;
        /* max-width entfernt für volle Nutzung */
        order: 3;
        margin-top: 0.5rem;
    }
    
    .feedback-status-inline {
        flex: 1;
        text-align: left;
        min-width: auto;
        font-size: 0.7rem;
    }
}

@media (max-width: 768px) {
    .project-header {
        flex-direction: column;
        gap: 1.5rem;
        padding: 1rem;
    }
    
    .header-right {
        min-width: auto;
        max-width: none;
        width: 100%;
    }
    
    .token-header-display {
        align-items: center;
        text-align: center;
    }
    
    .token-header-actions {
        justify-content: center;
    }
    
    .header-status-section {
        gap: 0.75rem;
    }
    
    .status-group {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
    
    .status-label {
        min-width: auto;
        font-size: 0.8rem;
    }
    
    .status-value {
        font-size: 0.9rem;
    }
    
    #datePicker,
    #enumDropdown {
        max-width: calc(100vw - 20px) !important;
        left: 10px !important;
    }
    
    #datePicker {
        min-width: 260px !important;
        padding: 10px !important;
    }
    
    #datePicker .calendar-header {
        margin: -10px -10px 10px -10px !important;
        padding: 8px !important;
    }
    
    #datePicker .calendar-footer {
        margin: 10px -10px -10px -10px !important;
        padding: 8px !important;
        flex-direction: column !important;
        gap: 5px !important;
    }
    
    #datePicker .calendar-day {
        min-height: 25px !important;
        font-size: 11px !important;
        padding: 6px 2px !important;
    }
    
    #enumDropdown {
        min-width: 120px !important;
    }
    
    #enumDropdown .enum-option {
        padding: 8px 10px !important;
        font-size: 13px !important;
    }
    
    .feedback-controls.compact {
        min-width: 280px;
        padding: 0.4rem;
    }
    
    .feedback-row {
        gap: 0.4rem;
    }
    
    .feedback-controls.compact .feedback-btn {
        width: 28px;
        height: 28px;
        font-size: 0.8rem;
    }
    
    .feedback-controls.compact .feedback-role {
        min-width: 60px;
        font-size: 0.6rem;
    }
    
    .feedback-comment-inline textarea {
        font-size: 0.75rem;
        min-height: 24px;
        padding: 0.3rem 0.5rem;
    }
    
    .feedback-status-inline {
        font-size: 0.65rem;
    }
    
    .drag-handle-cell,
    .drag-header-cell,
    .delete-handle-cell,
    .delete-header-cell {
        width: 40px !important;
        min-width: 40px !important;
        max-width: 40px !important;
    }
}

@media (max-width: 480px) {
    .project-header {
        padding: 0.75rem;
        margin-bottom: 1.5rem;
    }
    
    .header-title-section h1 {
        font-size: 1.3rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .header-breadcrumb {
        font-size: 0.8rem;
        flex-wrap: wrap;
    }
    
    .token-header-btn {
        width: 32px !important;
        height: 32px !important;
        font-size: 0.8rem !important;
    }
    
    .token-code-header {
        font-size: 0.9rem !important;
        padding: 0.3rem 0.6rem !important;
    }
    
    #datePicker {
        min-width: 240px !important;
        padding: 8px !important;
    }
    
    #datePicker .calendar-header {
        margin: -8px -8px 8px -8px !important;
        padding: 6px !important;
    }
    
    #datePicker .calendar-footer {
        margin: 8px -8px -8px -8px !important;
        padding: 6px !important;
    }
    
    #datePicker .calendar-day {
        min-height: 22px !important;
        font-size: 10px !important;
        padding: 4px 1px !important;
    }
    
    .feedback-controls.compact {
        min-width: 260px;
        padding: 0.3rem;
    }
    
    .feedback-controls.compact .feedback-btn {
        width: 26px;
        height: 26px;
        font-size: 0.7rem;
    }
    
    .feedback-controls.compact .feedback-role {
        min-width: 50px;
        font-size: 0.55rem;
    }
    
    .feedback-comment-inline textarea {
        font-size: 0.7rem;
        min-height: 22px;
        padding: 0.25rem 0.4rem;
    }
    
    .feedback-status-inline {
        font-size: 0.6rem;
    }
}

/* === RESPONSIVE EDIT LAYOUT === */
@media (max-width: 1200px) {
    .edit-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .edit-sidebar .accounting-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .edit-form-section {
        padding: 1.5rem;
    }
    
    .sidebar-section {
        padding: 1rem;
    }
    
    .edit-sidebar .accounting-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .footer-actions-stats {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    
    .footer-action-item {
        max-width: 280px;
    }
    
    .public-view-notice {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        flex-direction: column;
        text-align: center;
    }
}

/* === TABELLEN-INTEGRATION === */
.project-table td .feedback-controls.compact {
    margin: 0;
    width: 100%;
}

/* Stelle sicher dass die Tabellenzelle genug Platz hat */
.project-table td:has(.feedback-controls.compact) {
    min-width: 500px;
    padding: 0.5rem;
}

@media (max-width: 1400px) {
    .project-table td:has(.feedback-controls.compact) {
        min-width: 450px;
    }
}

@media (max-width: 1200px) {
    .project-table td:has(.feedback-controls.compact) {
        min-width: 400px;
    }
}

@media (max-width: 992px) {
    .project-table td:has(.feedback-controls.compact) {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    .project-table td:has(.feedback-controls.compact) {
        min-width: 300px;
    }
}


/* Share Links Panel */
.share-links-panel {
    background: var(--card-bg, #1f2a37);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 16px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

.share-links-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.share-links-header h2 {
    margin-bottom: 0.3rem;
}

.share-links-header p {
    margin: 0;
    color: rgba(255,255,255,0.8);
}

.share-links-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

.share-field {
    background: rgba(15,20,30,0.45);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 12px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    min-height: 120px;
    justify-content: center;
}

.share-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.1rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.75);
}

.share-field input,
.share-field select {
    width: 100%;
    padding: 0.55rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(10,14,22,0.9);
    color: var(--color-text);
    font-family: 'Inter', sans-serif;
}

.share-field input[type="datetime-local"] {
    font-size: 0.95rem;
    line-height: 1.2;
}

.share-checkbox {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    cursor: pointer;
    font-size: 0.95rem;
}

.share-checkbox input {
    width: 1.05rem;
    height: 1.05rem;
    margin: 0;
    accent-color: #56cfe1;
    flex-shrink: 0;
    transform: translateY(3px);
}

.share-checkbox span {
    line-height: 1.2;
}

.share-field-submit {
    display: flex;
    align-items: stretch;
}

.share-field-submit .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-field-shortcode {
    display: none;
}

.share-field-description {
    grid-column: span 2;
}

@media (max-width: 700px) {
    .share-field-description {
        grid-column: span 1;
    }
}

.share-links-table-wrapper {
    overflow-x: auto;
}

.share-links-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(15,20,30,0.65);
    border-radius: 12px;
    overflow: hidden;
}

.share-links-table th,
.share-links-table td {
    padding: 0.85rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.share-links-table th {
    background: rgba(255,255,255,0.03);
    font-weight: 600;
    font-size: 0.9rem;
}

.share-url-cell {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.share-links-table td .share-url {
    font-family: 'Inter', monospace;
    flex: 1;
    min-width: 0;
    white-space: normal;
    overflow: visible;
    word-break: break-all;
}

.share-url-actions {
    display: inline-flex;
    gap: 0.25rem;
    margin-left: 0.5rem;
}

.share-url-actions .token-copy-btn {
    padding: 0.3rem 0.45rem;
}

.share-links-table .btn-warning {
    background: rgba(231, 76, 60, 0.18);
    border: 1px solid rgba(231, 76, 60, 0.45);
    color: #ff6b6b;
    font-weight: 600;
}

.share-links-table .btn-warning:hover {
    background: rgba(231, 76, 60, 0.3);
    border-color: rgba(231, 76, 60, 0.7);
    color: #ffecec;
}

.share-status {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.share-status.active {
    background: rgba(39, 174, 96, 0.15);
    color: #27ae60;
}

.share-status.inactive {
    background: rgba(231, 76, 60, 0.15);
    color: #e74c3c;
}

.share-pill {
    margin-top: 0.35rem;
    display: inline-flex;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: rgba(255,255,255,0.08);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Share View */
.share-view .share-project-header {
    margin-bottom: 1.5rem;
}

.share-meta-cards {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.share-meta-card {
    background: rgba(15,20,30,0.65);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 12px;
    padding: 0.85rem 1rem;
    min-width: 160px;
}

.share-meta-card .meta-label {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.7);
}

.share-meta-card .meta-value {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 0.35rem;
}

.share-shortcode-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border-radius: 12px;
    border: 1px dashed rgba(255,255,255,0.1);
}

.share-shortcode-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.share-shortcode-pill {
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 999px;
    padding: 0.35rem 0.9rem;
    font-size: 0.85rem;
    color: inherit;
}

.share-shortcode-pill.active,
.share-shortcode-pill:hover {
    background: #56cfe1;
    border-color: #56cfe1;
    color: #0f172a;
}

.share-error {
    background: rgba(231, 76, 60, 0.1);
    border: 1px solid rgba(231, 76, 60, 0.4);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
}

.share-error h2 {
    color: #e74c3c;
    margin-bottom: 0.5rem;
}
