div#mid {
    background-image: none;
    float: none;
    height: auto;
    margin: 0 auto;
    width: 1030px !important;
}

div#side_navi {
    height: auto !important;
    /* Important Regel für moderne Browser */
    height: 453px;
    /* Mindesthöhe für den IE */
    min-height: 453px;
    width: 205px !important;
}

.menu-section {
    width: 180px !important;
}

.plus-active {
    color: #71D000;
}

.plus-inactive {
    color: #FF6F0F;
}

/* Tooltip styles for Special Waiting buttons */
.tt-special {
    position: relative;
}

.tt-special[data-tooltip] {
    cursor: help;
}

/* default hidden bubble */
.tt-special[data-tooltip]::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 50%;
    bottom: 125%;
    transform: translateX(-50%);
    min-width: 220px;
    max-width: 320px;
    padding: 6px 8px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.85);
    color: #fff;
    font-size: 11px;
    line-height: 1.3;
    white-space: normal;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    opacity: 0;
    pointer-events: none;
    transition: opacity .15s ease, transform .15s ease;
    z-index: 1000;
}

.tt-special[data-tooltip]::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: calc(125% - 6px);
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.85);
    opacity: 0;
    transition: opacity .15s ease;
}

.tt-special:hover::after,
.tt-special:hover::before,
.tt-special:focus::after,
.tt-special:focus::before {
    opacity: 1;
}

/* place above other UI */
.tt-special {
    z-index: 9999;
}

/* Enhanced Registration and Login Styles */
.enhanced-auth-page {
    /* Keep original background */
}

/* .auth-container {
    max-width: 700px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    border: 1px solid #ddd;
} */

.form-section {
    background: #f9f9f9;
    border-radius: 5px;
    padding: 15px;
    margin: 15px 0;
    border: 1px solid #ddd;
}

.section-title {
    color: #333;
    font-size: 14px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 1px solid #ccc;
}

/* Enhanced Input Styles */
.enhanced-input {
    width: 95%;
    padding: 8px 10px;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 13px;
    background: #fff;
}

.enhanced-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
}

.input-group {
    margin-bottom: 15px;
}

.input-label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
    font-size: 13px;
}

/* Enhanced Tribe Selection */
.tribe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.tribe-option {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 15px 10px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.tribe-option:hover {
    border-color: #4CAF50;
}

.tribe-option.selected {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.tribe-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.tribe-image {
    /* width: 50px;
    height: 50px; */
    margin: 0 auto 8px;
    border-radius: 3px;
    overflow: hidden;
    border: 1px solid #ddd;
}

.tribe-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
    font-size: 14px;
}

.tribe-description {
    font-size: 11px;
    color: #666;
    line-height: 1.3;
}

/* Enhanced Perk Selection */
.perk-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 10px;
    margin: 15px 0;
}

.perk-option {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 12px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.perk-option:hover {
    border-color: #4CAF50;
}

.perk-option.selected {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.perk-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.perk-icon {
    width: 40px;
    height: 40px;
    background: #4CAF50;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.perk-details {
    flex: 1;
}

.perk-name {
    font-weight: bold;
    color: #333;
    margin-bottom: 3px;
    font-size: 14px;
}

.perk-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
}

/* Position Selection - Map Style */
.position-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 15px 0;
}

.position-random {
    margin-bottom: 15px;
}

.position-random .position-option {
    background: #fff;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px 15px;
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-align: center;
    display: inline-block;
    min-width: 120px;
}

.position-map {
    display: grid;
    grid-template-columns: repeat(2, 120px);
    grid-template-rows: repeat(2, 80px);
    gap: 2px;
    border: 2px solid #333;
    background: #333;
    position: relative;
}

.position-map::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background: #333;
    transform: translateY(-1px);
}

.position-map::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #333;
    transform: translateX(-1px);
}

.position-option {
    background: #fff;
    border: 1px solid #ccc;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
}

.position-option:hover {
    border-color: #4CAF50;
    background: #f0f8f0;
}

.position-option.selected {
    border-color: #4CAF50;
    background: #e8f5e8;
}

.position-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Enhanced Buttons */
.enhanced-button {
    background: #4CAF50;
    color: white;
    border: 1px solid #45a049;
    padding: 10px 25px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.enhanced-button:hover {
    background: #45a049;
}

.enhanced-button:active {
    background: #3d8b40;
}

/* CSRF and Form Protection */
.security-notice {
    background: #fff3cd;
    color: #856404;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
    font-size: 13px;
    border: 1px solid #ffeaa7;
}

/* reCAPTCHA Container */
.recaptcha-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px dashed #ccc;
}

/* Error Messages */
.error-message {
    background: #f8d7da;
    color: #721c24;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 13px;
    border: 1px solid #f5c6cb;
}

/* Success Messages */
.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 15px;
    border-radius: 5px;
    margin: 10px 0;
    font-size: 13px;
    border: 1px solid #c3e6cb;
}

/* Responsive Design */
@media (max-width: 768px) {
    /* .auth-container {
        margin: 10px;
        padding: 20px;
    } */

    .tribe-grid {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 10px;
    }

    .perk-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .perk-option {
        flex-direction: column;
        text-align: center;
    }

    .position-grid {
        grid-template-columns: 1fr;
    }
}