/* WASAP BULUHGADING - Custom Styles */

.login-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #321fdb 0%, #1f1498 100%);
    display: flex;
    align-items: center;
    padding: 2rem 1rem;
}

.login-wrapper.admin-theme {
    background: linear-gradient(135deg, #2c2c34 0%, #1a1a20 100%);
}

.login-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.login-logo {
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-logo h2 {
    color: #321fdb;
    font-weight: 700;
    margin: 0;
}

.login-logo .admin-badge {
    color: #fff;
    background: #2c2c34;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    margin-top: 8px;
    display: inline-block;
}

/* Status Indicators */
.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 6px;
    vertical-align: middle;
}

.status-dot.connected { background: #2eb85c; box-shadow: 0 0 8px #2eb85c; }
.status-dot.disconnected { background: #e55353; }
.status-dot.scanning { background: #f9b115; animation: pulse 1.5s infinite; }
.status-dot.error { background: #e55353; }

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Sidebar customization */
.sidebar-brand {
    padding: 1rem;
    text-align: center;
    background: rgba(0, 0, 0, 0.2);
}

.sidebar-brand h4 {
    color: #fff;
    margin: 0;
    font-weight: 700;
}

.sidebar-brand small {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.75rem;
}

.admin-sidebar {
    background: #2c2c34 !important;
}

/* Stat cards */
.stat-card {
    border: none;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

/* Loading button */
.btn-loading {
    position: relative;
    pointer-events: none;
    color: transparent !important;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 16px;
    height: 16px;
    top: 50%;
    left: 50%;
    margin: -8px 0 0 -8px;
    border: 2px solid #fff;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .login-card {
        margin: 1rem;
    }
}

/* Add Members Modal — Contact Row */
.contact-row:hover {
    background-color: rgba(50, 31, 219, 0.04);
}
.contact-row .contact-notes {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.contact-notes-cell {
    max-width: 280px;
}
/* Pastikan modal scrollable berfungsi */
#ruleModal .modal-dialog-scrollable .modal-body {
    overflow-y: auto;
    max-height: calc(100vh - 200px);
}

/* Sticky preview dalam scrollable modal */
#ruleModal .position-sticky {
    position: sticky !important;
    top: 0;
}

/* Mobile responsive — preview di bawah */
@media (max-width: 991.98px) {
    #ruleModal .position-sticky {
        position: static !important;
    }
}
