body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar {
    background-color: #25d366;
    min-height: 100vh;
    color: white;
}

.sidebar h4 {
    color: white;
    font-weight: bold;
}

.sidebar hr {
    border-color: rgba(255, 255, 255, 0.3);
}

.nav-pills .nav-link {
    color: white;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}

.nav-pills .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
}

.nav-pills .nav-link.active {
    background-color: white;
    color: #25d366;
    font-weight: bold;
}

.main-content {
    padding: 20px;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.card-header {
    background-color: #25d366;
    color: white;
    border-radius: 12px 12px 0 0 !important;
    font-weight: bold;
}

.connection-status .alert {
    border-radius: 8px;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border-color: #28a745;
    color: #155724;
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border-color: #ffc107;
    color: #856404;
}

.alert-danger {
    background-color: rgba(220, 53, 69, 0.1);
    border-color: #dc3545;
    color: #721c24;
}

#qr-code img {
    max-width: 200px;
    border-radius: 8px;
    border: 2px solid white;
}

.preview-section {
    background-color: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
}

#status-preview {
    min-height: 150px;
    background-color: white;
}

.status-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    transition: all 0.3s ease;
}

.status-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Modern Status Cards */
.status-card {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.status-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: #25d366;
}

.status-card.expiring-soon {
    border-left: 4px solid #ffc107;
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%);
}

/* Status Header */
.status-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px 12px;
    border-bottom: 1px solid #f5f5f5;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.status-type-badge {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-timestamp {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Status Content */
.status-content {
    padding: 20px;
    flex-grow: 1;
}

.text-status .status-text {
    font-size: 16px;
    line-height: 1.5;
    color: #333;
    margin: 0;
    word-wrap: break-word;
    max-height: 120px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    line-clamp: 4; /* Standard property for compatibility */
}

.image-status .status-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f8f9fa;
}

.status-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.status-image:hover {
    transform: scale(1.05);
}

/* Video Status Styling */
.video-status .status-video-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 12px;
    background: #f8f9fa;
}

.status-video {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.status-video:hover {
    transform: scale(1.02);
}

.status-caption {
    font-size: 14px;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Status Stats Section */
.status-stats-section {
    padding: 0 20px 16px;
    border-bottom: 1px solid #f5f5f5;
}

.stat-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stat-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

.stat-item i {
    font-size: 18px;
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    display: block;
}

.stat-label {
    font-size: 11px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

/* Status Info Section */
.status-info-section {
    padding: 16px 20px;
    background: #fafbfc;
    border-bottom: 1px solid #f0f0f0;
}

.status-targets {
    margin-bottom: 8px;
}

.status-targets small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

.status-expiry small {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
}

/* Action Buttons */
.status-actions {
    padding: 16px 20px;
    background: white;
    display: flex;
    gap: 8px;
}

.status-actions .btn {
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.status-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-actions .btn-outline-primary:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
}

.status-actions .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
    .status-card {
        border-radius: 12px;
    }
    
    .status-header {
        padding: 12px 16px 8px;
    }
    
    .status-content {
        padding: 16px;
    }
    
    .status-stats-section {
        padding: 0 16px 12px;
    }
    
    .status-info-section {
        padding: 12px 16px;
    }
    
    .status-actions {
        padding: 12px 16px;
    }
    
    .stat-item {
        padding: 8px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    .status-image {
        height: 150px;
    }
    
    .status-video {
        height: 150px;
    }
    
    .text-status .status-text {
        font-size: 14px;
        -webkit-line-clamp: 3;
        line-clamp: 3; /* Standard property for compatibility */
        max-height: 90px;
    }
}

@media (max-width: 576px) {
    .status-actions .btn span {
        display: none !important;
    }
    
    .status-actions .btn {
        padding: 8px 12px;
    }
    
    .status-type-badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    .status-image {
        height: 120px;
    }
    
    .status-video {
        height: 120px;
    }
}

/* Loading, Empty, and Error States */
.loading-state,
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #f0f0f0;
}

.empty-state-icon,
.error-state-icon {
    font-size: 64px;
    color: #25d366;
    margin-bottom: 20px;
    opacity: 0.7;
}

.error-state-icon {
    color: #ffc107;
}

.empty-state-title,
.error-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

.empty-state-text,
.error-state-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.5;
}

.loading-state p {
    font-size: 16px;
    color: #666;
    margin: 0;
}

.loading-state .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Animation for loading state */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.status-card {
    animation: fadeIn 0.5s ease-out;
}

/* Hover effects for interactive elements */
.empty-state .btn,
.error-state .btn {
    transition: all 0.3s ease;
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 500;
}

.empty-state .btn:hover,
.error-state .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

/* Status card animations */
.status-card {
    animation: slideInUp 0.6s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Staggered animation for multiple cards */
.status-card:nth-child(1) { animation-delay: 0.1s; }
.status-card:nth-child(2) { animation-delay: 0.2s; }
.status-card:nth-child(3) { animation-delay: 0.3s; }
.status-card:nth-child(4) { animation-delay: 0.4s; }
.status-card:nth-child(5) { animation-delay: 0.5s; }
.status-card:nth-child(6) { animation-delay: 0.6s; }

/* Pulse animation for expiring status */
.status-card.expiring-soon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
    }
    50% {
        box-shadow: 0 4px 30px rgba(255, 193, 7, 0.4);
    }
    100% {
        box-shadow: 0 4px 20px rgba(255, 193, 7, 0.2);
    }
}

/* Improved button interactions */
.status-actions .btn {
    position: relative;
    overflow: hidden;
}

.status-actions .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.status-actions .btn:hover::before {
    left: 100%;
}

/* Status-item styles */
.status-item {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    background-color: white;
    transition: all 0.3s ease;
}

.status-item:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.status-item.expiring-soon {
    border-left: 4px solid #ffc107;
    background-color: #fff8e1;
}

.status-expiry {
    border-top: 1px solid #eee;
    padding-top: 8px;
    margin-top: 8px;
}

/* Mobile optimizations */
@media (max-width: 576px) {
    .loading-state,
    .empty-state,
    .error-state {
        padding: 40px 15px;
    }
    
    .empty-state-icon,
    .error-state-icon {
        font-size: 48px;
    }
    
    .empty-state-title,
    .error-state-title {
        font-size: 20px;
    }
    
    .empty-state-text,
    .error-state-text {
        font-size: 14px;
    }
}

.status-timestamp {
    color: #6c757d;
    font-size: 12px;
}

.viewer-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
}

.viewer-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #25d366;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 15px;
}

.viewer-info {
    flex: 1;
}

.viewer-name {
    font-weight: bold;
    margin-bottom: 2px;
}

.viewer-time {
    color: #6c757d;
    font-size: 12px;
}

.btn-success {
    background-color: #25d366;
    border-color: #25d366;
}

.btn-success:hover {
    background-color: #128c7e;
    border-color: #128c7e;
}

.image-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Video Preview Styling */
.video-preview video {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    margin-top: 10px;
}

/* Multiple Sessions Styling */
.session-selector {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
}

.session-selector label {
    color: white;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.session-selector select {
    background: white;
    border: none;
    border-radius: 8px;
    color: #333;
    font-weight: 500;
}

.session-selector select:focus {
    border-color: #128c7e;
    box-shadow: 0 0 0 0.2rem rgba(18, 140, 126, 0.25);
}

.session-selector .btn-group {
    width: 100%;
}

.session-selector .btn {
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.session-selector .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

.session-selector .btn-outline-success {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.session-selector .btn-outline-success:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

.session-selector .btn-outline-primary {
    border-color: rgba(255, 255, 255, 0.3);
    color: white;
}

.session-selector .btn-outline-primary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
}

/* Modal Styling */
.modal-content {
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    color: white;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
    padding: 20px 24px;
}

.modal-header .modal-title {
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 24px;
}

.modal-footer {
    border-top: 1px solid #f0f0f0;
    padding: 20px 24px;
    border-radius: 0 0 16px 16px;
}

/* Session Management Cards */
.session-management-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 16px;
    background: white;
    transition: all 0.3s ease;
}

.session-management-card:hover {
    border-color: #25d366;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.1);
    transform: translateY(-2px);
}

.session-management-card .card-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.session-management-card .badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
}

.session-management-card small {
    color: #666;
    font-size: 13px;
}

.session-management-card .btn-group-sm .btn {
    padding: 6px 12px;
    font-size: 12px;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.session-management-card .btn-outline-primary:hover {
    background: #25d366;
    border-color: #25d366;
    color: white;
    transform: translateY(-1px);
}

.session-management-card .btn-outline-danger:hover {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
    transform: translateY(-1px);
}

/* Form Styling */
.form-control {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #25d366;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.form-text {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

/* Connection Status Enhancements */
.connection-status {
    position: relative;
}

.connection-status .alert {
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    padding: 12px 16px;
    border: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.connection-status .alert i {
    font-size: 16px;
}

.alert-success {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(40, 167, 69, 0.05) 100%);
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.1) 0%, rgba(255, 193, 7, 0.05) 100%);
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-danger {
    background: linear-gradient(135deg, rgba(220, 53, 69, 0.1) 0%, rgba(220, 53, 69, 0.05) 100%);
    color: #721c24;
    border-left: 4px solid #dc3545;
}

/* QR Code Section */
#qr-section {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
}

#qr-section h6 {
    color: white;
    font-weight: 600;
    margin-bottom: 15px;
}

#qr-code img {
    max-width: 180px;
    border-radius: 12px;
    border: 3px solid white;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#qr-section small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    display: block;
    margin-top: 10px;
}

/* Own Number Info */
#own-number-info .alert {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 10px;
    padding: 12px 16px;
}

#own-number-info .alert i {
    color: rgba(255, 255, 255, 0.8);
}

#own-number-info strong {
    color: white;
}

#own-number-info .text-muted {
    color: rgba(255, 255, 255, 0.7) !important;
    font-size: 11px;
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px 20px;
    transition: all 0.3s ease;
    border: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-success {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border: none;
    color: white;
}

.btn-success:hover {
    background: linear-gradient(135deg, #128c7e 0%, #0d6b5c 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
}

.btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #a71e2a 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.3);
}

.btn-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #545b62 100%);
    border: none;
}

.btn-secondary:hover {
    background: linear-gradient(135deg, #545b62 0%, #3d4449 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(108, 117, 125, 0.3);
}

/* Loading Animation */
.fa-spin {
    animation: fa-spin 1s infinite linear;
}

@keyframes fa-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Toast Enhancements */
.toast {
    border-radius: 12px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
}

.toast-header {
    border-radius: 12px 12px 0 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.toast-body {
    font-weight: 500;
    padding: 16px 20px;
}

/* Responsive Enhancements */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
    }
    
    .main-content {
        padding: 10px;
    }
    
    .session-selector {
        padding: 12px;
        margin-bottom: 12px;
    }
    
    .session-selector .btn {
        font-size: 11px;
        padding: 5px 10px;
    }
    
    #qr-code img {
        max-width: 150px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
    }
}

@media (max-width: 576px) {
    .session-selector {
        padding: 10px;
    }
    
    .session-selector label {
        font-size: 13px;
    }
    
    .session-selector .btn {
        font-size: 10px;
        padding: 4px 8px;
    }
    
    #qr-code img {
        max-width: 120px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-body {
        padding: 16px;
    }
    
    .modal-footer {
        padding: 12px 16px;
    }
    
    .session-management-card {
        padding: 16px;
    }
}

/* Animation for session switching */
.session-switching {
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.session-switching::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

/* Success/Error state indicators */
.session-status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
    margin-left: 8px;
}

.session-status-indicator.connected {
    background: #28a745;
    box-shadow: 0 0 6px rgba(40, 167, 69, 0.5);
}

.session-status-indicator.disconnected {
    background: #dc3545;
    box-shadow: 0 0 6px rgba(220, 53, 69, 0.5);
}

.session-status-indicator.connecting {
    background: #ffc107;
    box-shadow: 0 0 6px rgba(255, 193, 7, 0.5);
    animation: pulse 1.5s infinite;
}

/* Pairing Code Styles */
.pairing-code-container {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-align: center;
}

.pairing-code-container h5 {
    margin-bottom: 15px;
    font-weight: bold;
}

.pairing-code-display {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pairing-code-text {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 3px;
    font-family: 'Courier New', monospace;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.pairing-code-container small {
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
}

.pairing-code-container .btn {
    margin-top: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    transition: all 0.3s ease;
}

.pairing-code-container .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    color: white;
    transform: translateY(-1px);
}

/* Animation for pairing code */
@keyframes pairingCodePulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.pairing-code-display {
    animation: pairingCodePulse 2s infinite;
}

/* Make phone number input more prominent */
#new-session-phone {
    border: 2px solid #25d366;
    border-radius: 8px;
    font-weight: 500;
}

#new-session-phone:focus {
    border-color: #128c7e;
    box-shadow: 0 0 0 0.2rem rgba(37, 211, 102, 0.25);
}

/* QR Code Styles */
.qr-code-container {
    background: linear-gradient(135deg, #128c7e 0%, #0d7a32 100%);
    border-radius: 12px;
    padding: 20px;
    color: white;
    box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    text-align: center;
}

.qr-code-container h5 {
    margin-bottom: 15px;
    font-weight: bold;
}

.qr-code-display {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    padding: 20px;
    margin: 15px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-code-image {
    max-width: 250px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.qr-code-container small {
    color: white !important;
    font-size: 12px;
    line-height: 1.4;
    opacity: 0.9;
}

/* Authentication Method Selection Styles */
.auth-method-selection {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.auth-method-selection .form-check {
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
    cursor: pointer;
}

.auth-method-selection .form-check:hover {
    border-color: #25d366;
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.1);
}

.auth-method-selection .form-check:has(input:checked) {
    border-color: #25d366;
    background: rgba(37, 211, 102, 0.05);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.2);
}

.auth-method-selection .form-check-label {
    cursor: pointer;
    width: 100%;
    margin-bottom: 0;
}

.auth-method-selection .form-check-label i {
    font-size: 18px;
    margin-right: 8px;
}

.auth-method-selection .form-check-input {
    margin-top: 2px;
}

.auth-method-selection .form-check:last-child {
    margin-bottom: 0;
}

/* Phone input group animation */
#phone-input-group {
    transition: all 0.3s ease;
    overflow: hidden;
}

/* Responsive adjustments for QR code */
@media (max-width: 768px) {
    .qr-code-image {
        max-width: 200px;
    }
    
    .qr-code-container {
        padding: 15px;
    }
    
    .auth-method-selection .form-check {
        padding: 12px;
    }
    
    .auth-method-selection .form-check-label i {
        font-size: 16px;
    }
}

/* System Monitor Styles */
.memory-data,
.system-data,
.cpu-data {
    animation: fadeIn 0.5s ease-out;
}

.memory-stat,
.system-stat,
.cpu-stat {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 15px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #e9ecef;
}

.memory-stat:hover,
.system-stat:hover,
.cpu-stat:hover {
    background: #e9ecef;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-bottom: 8px;
}

.stat-value {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin-bottom: 4px;
}

.stat-desc {
    font-size: 11px;
    color: #888;
    line-height: 1.3;
}

.progress {
    background-color: #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.1);
}

.progress-bar {
    font-weight: 600;
    transition: width 0.6s ease;
}


#memory-update-time,
#system-update-time {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    animation: pulse 2s infinite;
}

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

/* Responsive adjustments for system monitor */
@media (max-width: 768px) {
    .memory-stat,
    .system-stat,
    .cpu-stat {
        padding: 12px;
        margin-bottom: 10px;
    }
    
    .stat-value {
        font-size: 16px;
    }
    
    .stat-label {
        font-size: 11px;
    }
    
}

/* Loading animation for system data */
.system-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}

.system-loading .spinner-border {
    width: 3rem;
    height: 3rem;
    margin-bottom: 15px;
}

.system-loading p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

/* Animation for data updates */
@keyframes dataUpdate {
    0% { background-color: rgba(37, 211, 102, 0.1); }
    100% { background-color: transparent; }
}

.data-updated {
    animation: dataUpdate 1s ease-out;
}

/* Special animation for MySQL storage card */
#mysql-storage-info.data-updated {
    animation: mysqlDataUpdate 1s ease-out;
}

@keyframes mysqlDataUpdate {
    0% {
        background-color: rgba(37, 211, 102, 0.1);
        transform: scale(1);
    }
    50% {
        background-color: rgba(37, 211, 102, 0.2);
        transform: scale(1.02);
    }
    100% {
        background-color: transparent;
        transform: scale(1);
    }
}

/* MySQL Storage Card Styles */
.mysql-database-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid #e9ecef;
    margin-bottom: 15px;
}

.mysql-database-name {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mysql-database-name::before {
    content: '\f1c0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #25d366;
}

.mysql-sessions-info h6 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mysql-sessions-info h6::before {
    content: '\f0c0';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #25d366;
}

.mysql-stat {
    background: white;
    border-radius: 8px;
    padding: 12px;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.mysql-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.mysql-sessions-info .table {
    font-size: 13px;
}

.mysql-sessions-info .table th {
    font-weight: 600;
    color: #495057;
    border-top: none;
    border-bottom: 2px solid #e9ecef;
    padding: 8px 12px;
}

.mysql-sessions-info .table td {
    padding: 8px 12px;
    vertical-align: middle;
}

.mysql-sessions-info .table tr:hover {
    background-color: rgba(37, 211, 102, 0.05);
}

.session-name {
    font-weight: 600;
    color: #333;
}

#mysql-update-time {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    animation: pulse 2s infinite;
}

/* Responsive adjustments for MySQL storage card */
@media (max-width: 768px) {
    .mysql-database-info {
        padding: 12px;
    }
    
    .mysql-database-name {
        font-size: 14px;
    }
    
    .mysql-sessions-info .table {
        font-size: 12px;
    }
    
    .mysql-sessions-info .table th,
    .mysql-sessions-info .table td {
        padding: 6px 8px;
    }
}

/* Viewers Modal Styles */
#viewersModal .modal-body {
    padding: 0;
}

#viewers-modal-content {
    padding: 24px;
    min-height: 200px;
}

.viewers-count-info {
    margin-bottom: 20px;
}

.viewers-list {
    max-height: 400px;
    overflow-y: auto;
}

#viewersModal .viewer-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

#viewersModal .viewer-item:hover {
    background-color: #f8f9fa;
}

#viewersModal .viewer-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    margin-right: 16px;
    flex-shrink: 0;
}

#viewersModal .viewer-info {
    flex: 1;
}

#viewersModal .viewer-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
    font-size: 16px;
}

#viewersModal .viewer-time {
    color: #666;
    font-size: 14px;
}

#viewersModal .empty-state-icon {
    font-size: 64px;
    color: #25d366;
    margin-bottom: 20px;
    opacity: 0.7;
}

#viewersModal .empty-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

#viewersModal .empty-state-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto;
}

#viewersModal .error-state-icon {
    font-size: 64px;
    color: #ffc107;
    margin-bottom: 20px;
}

#viewersModal .error-state-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 12px;
}

#viewersModal .error-state-text {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
    max-width: 400px;
    margin: 0 auto 24px;
}

/* Responsive adjustments for viewers modal */
@media (max-width: 768px) {
    #viewers-modal-content {
        padding: 16px;
    }
    
    #viewersModal .viewer-item {
        padding: 10px 12px;
    }
    
    #viewersModal .viewer-avatar {
        width: 40px;
        height: 40px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    #viewersModal .viewer-name {
        font-size: 14px;
    }
    
    #viewersModal .viewer-time {
        font-size: 12px;
    }
    
    #viewersModal .empty-state-icon,
    #viewersModal .error-state-icon {
        font-size: 48px;
    }
    
    #viewersModal .empty-state-title,
    #viewersModal .error-state-title {
        font-size: 20px;
    }
    
    #viewersModal .empty-state-text,
    #viewersModal .error-state-text {
        font-size: 14px;
    }
}