.edelweiss-gt-container {
    max-width: 1000px;
    margin: 20px auto;
    padding: 20px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

.gt-header h2 {
    margin-top: 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #005a8e;
    color: #005a8e;
}

.gt-tabs {
    margin-bottom: 20px;
    border-bottom: 1px solid #ccc;
}

.gt-tab-link {
    background: #f1f1f1;
    border: 1px solid #ccc;
    border-bottom: none;
    padding: 10px 20px;
    cursor: pointer;
    margin-right: 5px;
    border-radius: 4px 4px 0 0;
}

.gt-tab-link.active {
    background: #fff;
    border-bottom: 1px solid #fff;
    margin-bottom: -1px;
    font-weight: bold;
}

.gt-tab-content {
    display: none;
}

.gt-tab-content.active {
    display: block;
}

.gt-form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.gt-form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gt-form-group label {
    font-weight: bold;
    margin-bottom: 5px;
}

.gt-form-group input, .gt-form-group select, .gt-form-group textarea {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
    height: 34px; /* Einheitliche Höhe für alle Felder */
}

.gt-form-group textarea {
    height: auto;
}

.gt-search-wrapper {
    position: relative;
    width: 100%;
}

.gt-spinner {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border: 2px solid #ccc;
    border-top: 2px solid #005a8e;
    border-radius: 50%;
    animation: gt-spin 0.8s linear infinite;
}

@keyframes gt-spin {
    0% { transform: translateY(-50%) rotate(0deg); }
    100% { transform: translateY(-50%) rotate(360deg); }
}

.search-results {
    position: relative;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-result-item {
    padding: 8px;
    cursor: pointer;
}

.gt-doc-select-wrapper {
    padding: 10px 0;
}

.gt-doc-select-wrapper label {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 5px;
    display: block;
}

.gt-doc-select-row, .gt-search-row {
    display: flex;
    gap: 8px;
    align-items: center;
}

.gt-doc-select {
    flex: 1 1 auto;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.gt-doc-select:disabled,
#gt-gun-search:disabled {
    background-color: #eee !important;
    cursor: not-allowed;
    opacity: 1; /* Sicherstellen, dass es nicht zu blass ist */
}

.gt-add-gun-btn, .gt-add-doc-btn-square {
    padding: 0;
    width: 34px;
    min-width: 34px;
    height: 34px;
    font-size: 20px;
    line-height: 32px; /* Etwas angepasst für bessere vertikale Zentrierung des + */
    background-color: #005a8e;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-side-box {
    background: #fdfdfd;
    border: 1px solid #e5e5e5;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.gt-box-header {
    font-weight: bold;
    font-size: 1.1em;
    color: #005a8e;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px dashed #ddd;
}

.gt-field-group {
    margin-bottom: 15px;
}

.gt-add-doc-btn-square {
    padding: 0;
    width: 34px;
    min-width: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gt-add-gun-btn:hover, .gt-add-doc-btn-square:hover:not(:disabled) {
    background-color: #004a75;
}

.gt-add-doc-btn-square:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    opacity: 0.6;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.gallery-item img {
    border: 1px solid #ddd;
    border-radius: 4px;
}

.gt-suggest {
    position: relative;
}

.gc-suggest-box {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.suggest-item {
    padding: 8px 12px;
    cursor: pointer;
}

.suggest-item:hover {
    background: #f0f0f0;
}

.search-result-item.no-click {
    cursor: default;
    color: #999;
    font-style: italic;
}

.search-result-item.no-click:hover {
    background: transparent;
}

.gt-form-section {
    margin-top: 30px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.gt-task-item {
    border: 1px solid #ddd;
    border-left: 5px solid #ccc;
    padding: 15px;
    margin-bottom: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}

.gt-task-item.status-cooldown {
    border-left-color: #ffb900;
}

.gt-task-item.status-warning {
    border-left-color: #005a8e;
}

.gt-task-item.status-ready {
    border-left-color: #46b450;
    background: #f0fff0;
}

.gt-task-main {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gt-badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.status-cooldown .gt-badge {
    background: #fff8e5;
    color: #856404;
    border: 1px solid #ffeeba;
}

.status-warning .gt-badge {
    background: #f0f7fd;
    color: #005a8e;
    border: 1px solid #c2e0f5;
}

.status-ready .gt-badge {
    background: #e7f3e1;
    color: #235a11;
    border: 1px solid #c3e6cb;
}

/* Modal Styling */
.gt-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Etwas dunkler */
    backdrop-filter: blur(5px); /* Unscharfer Hintergrund */
    -webkit-backdrop-filter: blur(5px);
}

.gt-modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 600px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.gt-modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.gt-modal-close:hover {
    color: #000;
}

.doc-preview img {
    max-width: 100%;
    height: auto;
    margin-top: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Doc Selection Styling */
.gt-doc-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.gt-doc-item {
    width: 150px;
    border: 2px solid #ddd;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: all 0.2s;
    background: #fff;
}

.gt-doc-item:hover {
    border-color: #999;
}

.gt-doc-item.selected {
    border-color: #005a8e;
    background: #e7f3f9;
    box-shadow: 0 0 5px rgba(0,90,142,0.3);
}

.gt-doc-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    background: #f0f0f0;
}

.gt-doc-info {
    font-size: 11px;
    line-height: 1.3;
    margin-top: 5px;
}

.gt-add-doc-btn {
    margin-bottom: 15px;
}

.gt-task-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: flex-end;
}

.gt-task-actions .button {
    border-radius: 12px !important;
    padding: 2px 10px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
    height: auto !important;
    width: fit-content;
    margin: 0 !important;
}

.gt-btn-subtle {
    background-color: #f0f7fd !important;
    color: #005a8e !important;
    border: 1px solid #c2e0f5 !important;
    transition: all 0.2s !important;
    font-weight: 600 !important;
    box-shadow: none !important;
}

.gt-btn-subtle:hover {
    background-color: #005a8e !important;
    color: #fff !important;
    border-color: #005a8e !important;
}

.gt-btn-subtle:disabled {
    background-color: #f5f5f5 !important;
    color: #ccc !important;
    border-color: #ddd !important;
    cursor: not-allowed !important;
    font-weight: normal !important;
}

.gt-type-selector {
    display: flex;
    gap: 10px;
    margin-top: 5px;
}

.gt-type-btn {
    padding: 6px 15px;
    border-radius: 15px;
    border: 1px solid #ddd;
    background: #f5f5f5;
    color: #999;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    outline: none;
}

.gt-type-btn.active {
    background: #005a8e;
    color: #fff;
    border-color: #005a8e;
    font-weight: 600;
}

.gt-type-btn:hover:not(.active) {
    background: #eee;
    color: #777;
    border-color: #ccc;
}

#gt-transaction-info {
    font-family: inherit;
    resize: vertical;
}

.gt-add-chat-badge {
    background-color: #e1f0fa;
    color: #005a8e;
    border: 1px solid #b3d7ef;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    line-height: 1.4;
}

.gt-add-chat-badge:hover {
    background-color: #005a8e;
    color: #fff;
    border-color: #005a8e;
}

.gt-add-zwr-badge {
    background-color: #e8f5e9;
    color: #2e7d32;
    border: 1px solid #c8e6c9;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    line-height: 1.4;
}

.gt-add-zwr-badge:hover {
    background-color: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

/* Neuer Badge-Button: Transfer in Formular laden */
.gt-edit-transfer-badge {
    background-color: #f4f4f5;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 2px 10px;
    font-size: 11px;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    line-height: 1.4;
}

.gt-edit-transfer-badge:hover {
    background-color: #e2e8f0;
    color: #222;
    border-color: #cbd5e1;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .gt-form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .gt-modal-content {
        width: 90%;
        margin: 10% auto;
    }
}
