/* Enhanced User Info Styles for Reverse Proxy */
.user-info-container {
    max-width: 1200px;
    margin: 20px auto;
    padding: 20px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f9f9f9;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.user-info-container h2 {
    color: #333;
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #007cba;
    padding-bottom: 10px;
}

.proxy-notice {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    text-align: center;
}

.proxy-notice h4 {
    margin: 0 0 10px 0;
    font-size: 18px;
}

.proxy-notice p {
    margin: 0;
    opacity: 0.9;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-section, .proxy-section {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.info-section h3, .proxy-section h3 {
    color: #007cba;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

.proxy-section {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    margin-bottom: 20px;
}

.proxy-section h3 {
    color: white;
    border-bottom-color: rgba(255,255,255,0.3);
}

.proxy-section .info-item .label,
.proxy-section .info-item .value {
    color: white;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.proxy-section .info-item {
    border-bottom-color: rgba(255,255,255,0.2);
}

.info-item:last-child {
    border-bottom: none;
}

.info-item .label {
    font-weight: 600;
    color: #555;
    min-width: 140px;
}

.info-item .value {
    color: #333;
    text-align: right;
    flex: 1;
    margin-left: 10px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.user-agent {
    font-size: 11px;
    word-break: break-all;
    text-align: left !important;
    background: #f8f9fa;
    padding: 5px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
}

.additional-info {
    background: white;
    padding: 20px;
    border-radius: 6px;
    box-shadow: 0 1px 5px rgba(0,0,0,0.1);
}

.additional-info h3 {
    color: #007cba;
    margin-top: 0;
    margin-bottom: 15px;
    border-bottom: 1px solid #eee;
    padding-bottom: 8px;
}

/* Status indicators */
.value:contains("Yes") {
    color: #28a745;
    font-weight: bold;
}

.value:contains("No") {
    color: #dc3545;
    font-weight: bold;
}

/* Responsive design */
@media (max-width: 768px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
    
    .info-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .info-item .value {
        text-align: left;
        margin-left: 0;
        margin-top: 5px;
        width: 100%;
    }
    
    .info-item .label {
        min-width: auto;
    }
}

/* Animation for loading states */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.value:contains("Detecting") {
    animation: pulse 1.5s infinite;
    color: #6c757d;
    font-style: italic;
}