/* XXMXLI Visitor Tracker Styles */
.visitor-info-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    font-family: 'Courier New', monospace;
    max-width: 400px;
    animation: slideIn 0.5s ease-out;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.visitor-info-card {
    background: linear-gradient(135deg, #001100, #002200);
    border: 2px solid #00ff00;
    border-radius: 8px;
    box-shadow: 
        0 0 20px rgba(0, 255, 0, 0.3),
        inset 0 0 20px rgba(0, 255, 0, 0.1);
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.visitor-header {
    background: rgba(0, 255, 0, 0.1);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #00ff00;
}

.visitor-header h3 {
    margin: 0;
    color: #00ff00;
    font-size: 16px;
    text-shadow: 0 0 5px #00ff00;
    display: flex;
    align-items: center;
    gap: 8px;
}

.close-btn {
    background: none;
    border: 1px solid #00ff00;
    color: #00ff00;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-btn:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 10px #00ff00;
}

.visitor-details {
    padding: 20px;
}

.info-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    flex-wrap: wrap;
    gap: 8px;
}

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

.label {
    color: #008000;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 0 0 auto;
    min-width: 80px;
}

.value {
    color: #00ff00;
    font-size: 12px;
    text-align: right;
    flex: 1;
    word-break: break-all;
}

.session-id {
    font-family: monospace;
    font-size: 10px;
    opacity: 0.7;
}

.status {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    flex: 0 0 auto;
}

.status.allowed {
    background: rgba(0, 255, 0, 0.2);
    color: #00ff00;
    border: 1px solid #00ff00;
}

.status.blocked {
    background: rgba(255, 0, 0, 0.2);
    color: #ff0000;
    border: 1px solid #ff0000;
    animation: pulse 1s infinite;
}

.threat-low {
    color: #00ff00;
}

.threat-medium {
    color: #ffff00;
}

.threat-high {
    color: #ff0000;
}

.threat-unknown {
    color: #808080;
}

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

/* Mobile responsiveness */
@media (max-width: 768px) {
    .visitor-info-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .visitor-header {
        padding: 12px 15px;
    }
    
    .visitor-details {
        padding: 15px;
    }
    
    .info-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .label {
        min-width: auto;
    }
    
    .value {
        text-align: left;
        word-break: break-word;
    }
}

/* Admin dashboard styles */
.visitor-dashboard {
    background: #000000;
    color: #00ff00;
    font-family: 'Courier New', monospace;
    padding: 20px;
    min-height: 100vh;
}

.dashboard-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #00ff00;
}

.dashboard-title {
    font-size: 2.5rem;
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00;
    margin-bottom: 10px;
}

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

.stat-card {
    background: linear-gradient(135deg, #001100, #002200);
    border: 1px solid #00ff00;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 255, 0, 0.3);
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #00ff00;
    text-shadow: 0 0 5px #00ff00;
}

.stat-label {
    color: #008000;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 5px;
}

.visitor-table {
    background: #001100;
    border: 1px solid #00ff00;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
}

.table-header {
    background: rgba(0, 255, 0, 0.1);
    padding: 15px 20px;
    border-bottom: 1px solid #00ff00;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.visitor-list {
    max-height: 600px;
    overflow-y: auto;
}

.visitor-item {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
    transition: background 0.3s ease;
}

.visitor-item:hover {
    background: rgba(0, 255, 0, 0.05);
}

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

.visitor-summary {
    display: grid;
    grid-template-columns: 1fr 150px 100px 120px;
    gap: 15px;
    align-items: center;
}

.visitor-ip {
    font-weight: bold;
    color: #00ff00;
}

.visitor-location {
    color: #008000;
    font-size: 0.9rem;
}

.visitor-time {
    color: #606060;
    font-size: 0.8rem;
}

.visitor-status.blocked {
    color: #ff0000;
    font-weight: bold;
}

.visitor-status.allowed {
    color: #00ff00;
}

/* Controls */
.dashboard-controls {
    margin-bottom: 20px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.control-button {
    background: none;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.control-button:hover {
    background: #00ff00;
    color: #000000;
    box-shadow: 0 0 10px #00ff00;
}

.filter-input {
    background: #001100;
    border: 1px solid #00ff00;
    color: #00ff00;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.9rem;
}

.filter-input::placeholder {
    color: #008000;
}
