/* ===================================================================
   MINIMAL MOBILE FIX - JUST TABS + CLOSE BUTTON
   No aggressive styling, just makes things visible
   =================================================================== */

/* Close button - visible on all screens */
.close {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    background-color: #f00;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    border: 2px solid #fff;
    display: block;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    overflow-y: auto;
    padding: 20px;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 20px auto;
    padding: 20px;
    padding-top: 50px;
    border: 1px solid #888;
    width: 90%;
    max-width: 800px;
    border-radius: 12px;
    max-height: 85vh;
    overflow-y: auto;
}

/* Tabs - visible on mobile */
.tab-header {
    display: flex;
    gap: 5px;
    margin-bottom: 20px;
    border-bottom: 2px solid #e0e0e0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-link {
    padding: 12px 16px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    flex-shrink: 0;
}

.tab-link:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.05);
}

.tab-link.active {
    color: #667eea;
    border-bottom-color: #667eea;
    font-weight: 600;
    background: rgba(102, 126, 234, 0.08);
}

.tab-link i {
    font-size: 18px;
}

.tab-content {
    display: none;
    padding: 20px 0;
}

.tab-content.active {
    display: block;
}

/* Mobile adjustments - MINIMAL */
@media (max-width: 600px) {
    .modal {
        padding: 10px;
    }
    
    .modal-content {
        width: 95%;
        padding: 15px;
        padding-top: 50px;
        margin: 10px auto;
    }
    
    .close {
        position: fixed;
        top: 15px;
        right: 15px;
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 32px;
        z-index: 999999;
    }
    
    .tab-header {
        gap: 3px;
    }
    
    .tab-link {
        padding: 10px 12px;
        font-size: 14px;
    }
    
    .tab-link i {
        font-size: 16px;
    }
    
    /* Keep text visible on mobile */
    .tab-link span {
        display: inline-block;
        font-size: 12px;
    }
}

/* Prevent body scroll when modal open */
body.modal-open {
    overflow: hidden;
}