/* Basislayout wie bisher, erweitert um Board-Info */
.direct-links-wrapper {
    max-width: 1400px;
    margin: 30px auto;
    padding: 20px;
    background: #ffffff;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
}

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

.direct-links-header h2 {
    margin: 0;
    font-size: 24px;
}

.direct-links-info {
    position: relative;
    display: inline-block;
}

.direct-links-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #0073aa;
    color: #fff;
    font-size: 14px;
    font-weight: bold;
    cursor: default;
}

.direct-links-info-tooltip {
    position: absolute;
    top: 110%;
    right: 0;
    background: #333;
    color: #fff;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(5px);
    pointer-events: none;
    transition: all 0.2s ease;
    z-index: 10;
}

.direct-links-info:hover .direct-links-info-tooltip {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.direct-links-user-info {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 15px;
    font-size: 14px;
}

.direct-links-user-login {
    margin-left: 6px;
    font-size: 12px;
    opacity: 0.8;
}

.direct-links-logout-link {
    color: #004e64;
    font-weight: 600;
    text-decoration: underline;
    margin-left: 10px;
}

.direct-links-logout-link:hover {
    color: #0073aa;
}

.direct-links-container {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.direct-links-board-wrapper {
    flex: 2;
}

.direct-links-form-wrapper {
    flex: 1;
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.direct-links-username-select {
    margin-bottom: 15px;
    padding: 12px 14px;
    background: #f1f9ff;
    border: 1px solid #cce5ff;
    border-radius: 6px;
}

.direct-links-username-select label {
    display: block;
    font-weight: 600;
    font-size: 13px;
    margin-bottom: 6px;
}

.direct-links-username-row {
    display: flex;
    gap: 8px;
    margin-bottom: 6px;
}

#direct_links_username {
    flex: 1;
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ccc;
    font-size: 13px;
}

#direct_links_username_load {
    padding: 8px 12px;
    border-radius: 4px;
    border: none;
    background: #0073aa;
    color: #fff;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#direct_links_username_load:hover {
    background: #005f8d;
}

.direct-links-username-hint {
    margin: 0;
    font-size: 12px;
    color: #555;
}

.direct-links-current-board-info {
    background: #fff3cd;
    border: 1px solid #ffc107;
    color: #856404;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 15px;
    font-size: 14px;
    font-weight: 600;
}

.direct-links-form {
    background: #f9f9f9;
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    padding: 20px;
}

.direct-links-form h3 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.direct-links-edit-info {
    font-size: 12px;
    color: #555;
    margin-bottom: 10px;
}

.direct-links-form-group {
    margin-bottom: 12px;
}

.direct-links-form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 13px;
}

.direct-links-form-group input[type="url"],
.direct-links-form-group input[type="text"],
.direct-links-form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

#direct_link_add_btn {
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 4px;
    background: #0073aa;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.2s ease;
}

#direct_link_add_btn[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}

#direct_link_add_btn:hover:not([disabled]) {
    background: #005f8d;
}

.direct-links-hint {
    margin-top: 10px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.direct-links-login-box {
    background: linear-gradient(135deg, #2bc0e4 0%, #eaecc6 100%);
    border: 2px solid #2bc0e4;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.direct-links-login-box h3 {
    margin: 0 0 10px 0;
    font-size: 16px;
    color: #004e64;
}

.direct-links-login-box form {
    background: rgba(255,255,255,0.9);
    padding: 12px;
    border-radius: 6px;
}

.direct-links-login-box label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #004e64;
    font-size: 12px;
}

.direct-links-login-box input[type="text"],
.direct-links-login-box input[type="password"] {
    width: 100%;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
    box-sizing: border-box;
    margin-bottom: 10px;
}

.direct-links-login-box input[type="submit"] {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.direct-links-login-box input[type="submit"]:hover {
    background: #005f8d;
}

.direct-links-login-box .login-remember {
    margin-bottom: 10px;
}

.direct-links-login-box .login-remember label {
    display: inline;
    font-weight: normal;
    margin-left: 5px;
    font-size: 12px;
}

.direct-links-board {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.direct-links-row-block {
    border: 1px solid #e2e4e7;
    border-radius: 8px;
    background: #fafafa;
    padding: 15px;
}

.direct-links-row-label {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 12px;
    padding: 6px 10px;
    border-radius: 999px;
    display: inline-block;
    color: #004e64;
}

.direct-links-row-label-1 { background: rgba(43, 192, 228, 0.18); }
.direct-links-row-label-2 { background: rgba(43, 192, 228, 0.24); }
.direct-links-row-label-3 { background: rgba(43, 192, 228, 0.30); }
.direct-links-row-label-4 { background: rgba(43, 192, 228, 0.36); }
.direct-links-row-label-5 { background: rgba(43, 192, 228, 0.42); }

.direct-links-row-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.direct-link-card {
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, #2bc0e4, #eaecc6);
    padding: 18px;
    display: flex;
    flex-direction: column;
    min-height: 150px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.direct-link-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top left, rgba(255,255,255,0.35), transparent 55%);
    pointer-events: none;
}

.direct-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
}

.direct-link-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
}

.direct-link-card-label {
    font-size: 11px;
    font-weight: 700;
    color: #005a70;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.direct-link-card-delete {
    border: none;
    border-radius: 999px;
    background: rgba(220, 50, 50, 0.9);
    color: #fff;
    padding: 3px 8px;
    font-size: 10px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.1s ease;
}

.direct-link-card-delete:hover {
    background: rgba(178, 39, 39, 0.95);
    transform: translateY(-1px);
}

.direct-link-card-empty {
    font-size: 13px;
    color: #0b3c4b;
    font-style: italic;
    margin-top: 10px;
    opacity: 0.8;
    position: relative;
    z-index: 1;
}

.direct-link-card-content {
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: relative;
    z-index: 1;
}

.direct-link-card-title {
    font-weight: 700;
    font-size: 16px;
    color: #004e64;
    text-decoration: none;
}

.direct-link-card-title:hover {
    text-decoration: underline;
}

.direct-link-card-url {
    font-size: 12px;
    color: #0f3f4f;
    word-break: break-all;
}

@media (max-width: 1100px) {
    .direct-links-container {
        flex-direction: column;
    }
    .direct-links-form-wrapper {
        position: static;
        width: 100%;
    }
    .direct-links-row-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .direct-links-row-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 500px) {
    .direct-links-row-grid {
        grid-template-columns: 1fr;
    }
}
