/* Dashboard Stats */
.gml-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: #f5f5f5;
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    border-left: 4px solid #ccc;
}

.stat-card h3 {
    font-size: 28px;
    margin: 0;
    color: #333;
}

.stat-card.active {
    border-left-color: #4CAF50;
}
.stat-card.expired {
    border-left-color: #f44336;
}
.stat-card.guests {
    border-left-color: #FF9800;
}
.stat-card.today {
    border-left-color: #2196F3;
}

/* Members Table */
.gml-members-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

.gml-members-table th,
.gml-members-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: left;
}

.gml-members-table th {
    background: #f0f0f0;
    font-weight: bold;
}

/* QR Container */
.gml-qr-container {
    text-align: center;
    padding: 20px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gml-qr-container img {
    max-width: 200px;
    height: auto;
}

/* Form */
.gml-membership-form {
    max-width: 500px;
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.gml-membership-form label {
    display: inline-block;
    width: 120px;
}

.gml-membership-form input,
.gml-membership-form select {
    width: calc(100% - 130px);
    padding: 8px;
}
/* ===== POPUP DE ASISTENCIA ===== */

.gml-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.gml-popup-overlay.gml-popup-show {
    opacity: 1;
    visibility: visible;
}

.gml-popup-card {
    background: white;
    border-radius: 16px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.gml-popup-show .gml-popup-card {
    transform: scale(1) translateY(0);
}

.gml-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}

.gml-popup-close:hover {
    color: #333;
}

.gml-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px 20px 20px;
    text-align: center;
    border-radius: 16px 16px 0 0;
}

.gml-popup-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.4);
    margin-bottom: 10px;
}

.gml-popup-header h2 {
    margin: 5px 0 2px;
    font-size: 22px;
}

.gml-popup-header p {
    margin: 0;
    opacity: 0.9;
    font-size: 14px;
}

.gml-popup-phone {
    margin-top: 5px !important;
    font-size: 13px !important;
    opacity: 0.8 !important;
}

.gml-popup-body {
    padding: 20px;
}

.gml-popup-status {
    display: inline-block;
    padding: 5px 20px;
    border-radius: 20px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    margin: 0 auto 15px;
    text-align: center;
    width: auto;
}

.gml-popup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 15px 0;
}

.gml-popup-item {
    background: #f5f5f5;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
}

.gml-popup-item small {
    display: block;
    color: #888;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gml-popup-item strong {
    display: block;
    font-size: 20px;
    margin-top: 4px;
}

.gml-popup-message {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 12px;
    border-radius: 8px;
    text-align: center;
    font-weight: bold;
    margin: 15px 0 10px;
}

.gml-popup-history {
    text-align: center;
    color: #888;
    font-size: 13px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

/* Error */
.gml-error {
    background: #ffebee;
    color: #c62828;
    padding: 12px;
    border-radius: 8px;
    margin-top: 10px;
    text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
    .gml-popup-grid {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }
    
    .gml-popup-item strong {
        font-size: 16px;
    }
    
    .gml-popup-header h2 {
        font-size: 18px;
    }
}