* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 50%, #0a0a0a 100%);
    color: #00ff41;
    min-height: 100vh;
    padding: 20px;
}

.admin-header {
    text-align: center;
    padding: 30px 20px;
    border-bottom: 2px solid #ff0000;
    margin-bottom: 30px;
    background: rgba(255, 0, 0, 0.05);
}

.admin-header h1 {
    font-size: 48px;
    text-shadow: 0 0 10px #ff0000, 0 0 20px #ff0000;
    margin-bottom: 10px;
    letter-spacing: 3px;
    color: #ff0000;
    white-space: nowrap;
}

.subtitle {
    font-size: 16px;
    color: #00cc33;
    margin-bottom: 20px;
}

.auth-section {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

button {
    padding: 12px 24px;
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
    transition: all 0.3s;
}

button:hover {
    background: rgba(0, 255, 65, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 255, 65, 0.3);
}

#loadDataBtn {
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

#loadDataBtn:hover {
    background: rgba(255, 0, 0, 0.2);
    box-shadow: 0 5px 15px rgba(255, 0, 0, 0.3);
}

.admin-container {
    width: 100%;
    max-width: none; /* Remove max-width for ultra-wide monitors */
    margin: 0 auto;
    padding: 0 20px;
}

/* Ultra-wide monitor responsive grid (2500px+ like 49" monitors) */
@media (min-width: 2500px) {
    .admin-container {
        padding: 0 40px; /* More padding on ultra-wide */
    }

    /* Stats and map side-by-side on ultra-wide */
    .stats-map-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 30px;
        align-items: start;
    }
}

/* Wide monitor responsive grid (1920px+) */
@media (min-width: 1920px) {
    .admin-container {
        padding: 0 30px;
    }

    /* Create flex container for filters + bot detection to sit side-by-side */
    .responsive-row-filters-bots {
        display: flex;
        gap: 30px;
        align-items: flex-start;
    }

    .responsive-row-filters-bots > * {
        flex: 1;
        min-width: 0;
    }
}

/* Statistics Section */
.stats-section {
    background: rgba(0, 255, 65, 0.03);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.stats-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #00ff41;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 10px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}

/* Ultra-wide responsive layouts for stats */
@media (min-width: 2500px) {
    .admin-stats-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 3200px) {
    .admin-stats-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 3840px) {
    .admin-stats-grid {
        grid-template-columns: repeat(9, 1fr);
    }
}

@media (min-width: 5120px) {
    .admin-stats-grid {
        grid-template-columns: repeat(11, 1fr);
    }
}

.admin-stat-card {
    background: rgba(0, 255, 65, 0.05);
    border: 2px solid #00ff41;
    padding: 12px;
    text-align: center;
    border-radius: 8px;
    transition: all 0.3s;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.admin-stat-card:hover {
    background: rgba(0, 255, 65, 0.1);
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.3);
}

.admin-stat-card.clickable {
    cursor: pointer;
    transition: all 0.3s ease;
}

.admin-stat-card.clickable:hover {
    background: rgba(0, 255, 65, 0.15);
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 8px 25px rgba(0, 255, 65, 0.4);
}

.admin-stat-card.clickable:active {
    transform: translateY(-4px) scale(0.98);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: #00ff41;
    text-shadow: 0 0 10px #00ff41;
}

.stat-label {
    font-size: 12px;
    color: #00cc33;
    margin-top: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Leaderboards Section */
.leaderboard-section {
    background: rgba(255, 215, 0, 0.03);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.leaderboard-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #ffd700;
    border-bottom: 1px solid #ffd700;
    padding-bottom: 10px;
    color: #ffd700;
}

.leaderboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

/* Ultra-wide responsive layouts for leaderboards */
@media (min-width: 1920px) {
    .leaderboard-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 2500px) {
    .leaderboard-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 3200px) {
    .leaderboard-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 3840px) {
    .leaderboard-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (min-width: 5120px) {
    .leaderboard-grid {
        grid-template-columns: repeat(10, 1fr);
    }
}

.leaderboard-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #ffd700;
    border-radius: 10px;
    padding: 20px;
}

.leaderboard-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ffd700;
    text-shadow: 0 0 5px #ffd700;
    border-bottom: 1px solid rgba(255, 215, 0, 0.3);
    padding-bottom: 10px;
}

.leaderboard-item {
    padding: 10px 12px;
    background: rgba(255, 215, 0, 0.05);
    border-left: 3px solid #ffd700;
    margin-bottom: 8px;
    border-radius: 3px;
    display: grid;
    grid-template-columns: 35px 1fr auto;
    gap: 12px;
    align-items: center;
    transition: all 0.3s;
}

.leaderboard-item:hover {
    background: rgba(255, 215, 0, 0.1);
    transform: translateX(5px);
}

.leaderboard-rank {
    font-size: 18px;
    font-weight: bold;
    color: #ffd700;
    text-align: center;
}

.leaderboard-info {
    min-width: 0;
    overflow: hidden;
}

.leaderboard-name {
    color: #00ff41;
    font-weight: bold;
    font-size: 13px;
    line-height: 1.4;
    word-wrap: break-word;
}

.leaderboard-detail {
    color: #00cc33;
    font-size: 11px;
    margin-top: 2px;
    line-height: 1.4;
    word-wrap: break-word;
    white-space: normal;
    word-break: break-word;
}

.leaderboard-value {
    color: #ff0000;
    font-weight: bold;
    font-size: 18px;
    text-align: right;
    min-width: 50px;
}

/* Filters Section */
.filters-section {
    background: rgba(0, 255, 65, 0.03);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 15px 20px;
    margin-bottom: 30px;
}

.filters-section h2 {
    font-size: 18px;
    margin-bottom: 12px;
    text-shadow: 0 0 5px #00ff41;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 8px;
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

input[type="text"], select {
    width: 100%;
    padding: 8px 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #00ff41;
    color: #00ff41;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border-radius: 5px;
}

input[type="text"]:focus, select:focus {
    outline: none;
    border-color: #00cc33;
    box-shadow: 0 0 10px rgba(0, 255, 65, 0.3);
}

/* Better contrast for dropdown options */
select option {
    background: #1a1a2e;
    color: #00ff41;
    padding: 10px;
}

/* Specific styling for selective delete modal inputs */
#selectiveDeleteModal select,
#selectiveDeleteModal input[type="text"] {
    background: #1a1a2e;
    border: 2px solid #ff6b35;
    color: #00ff41;
    font-size: 15px;
    padding: 12px;
}

#selectiveDeleteModal select option {
    background: #1a1a2e;
    color: #00ff41;
    padding: 12px;
}

#selectiveDeleteModal select:focus,
#selectiveDeleteModal input[type="text"]:focus {
    border-color: #ff8c61;
    box-shadow: 0 0 10px rgba(255, 107, 53, 0.5);
}

/* Bot Detection Section */
.bot-detection-section {
    background: rgba(255, 0, 0, 0.05);
    border: 2px solid #ff6b35;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.bot-detection-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #ff6b35;
    border-bottom: 1px solid #ff6b35;
    padding-bottom: 10px;
    color: #ff6b35;
}

.bot-detection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 15px;
}

@media (min-width: 1400px) and (max-width: 1919px) {
    .bot-detection-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1920px) and (max-width: 2499px) {
    .bot-detection-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 2500px) and (max-width: 3199px) {
    .bot-detection-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 3200px) {
    /* Ultra-wide 49" monitors (3840px or 5120px) */
    .bot-detection-grid {
        grid-template-columns: repeat(7, 1fr);
    }
}

@media (min-width: 3840px) {
    .bot-detection-grid {
        grid-template-columns: repeat(9, 1fr);
    }
}

@media (min-width: 5120px) {
    .bot-detection-grid {
        grid-template-columns: repeat(12, 1fr);
    }
}

@media (max-width: 768px) {
    .bot-detection-grid {
        grid-template-columns: 1fr;
    }
}

.bot-detection-card {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #ff6b35;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
}

.bot-detection-card h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #ff6b35;
    text-shadow: 0 0 5px #ff6b35;
    border-bottom: 1px solid rgba(255, 0, 0, 0.3);
    padding-bottom: 8px;
    flex-shrink: 0;
}

.bot-list {
    max-height: 320px;
    overflow-y: auto;
    flex: 1;
}

.bot-item {
    padding: 10px 12px;
    background: rgba(255, 0, 0, 0.05);
    border-left: 3px solid #ff6b35;
    margin-bottom: 8px;
    border-radius: 5px;
    transition: all 0.3s;
}

.bot-item:hover {
    background: rgba(255, 0, 0, 0.1);
    transform: translateX(5px);
}

.bot-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.bot-header strong {
    color: #ff6b35;
    font-size: 13px;
}

.bot-timestamp {
    color: #16a085;
    font-size: 10px;
}

.bot-badge {
    display: inline-block;
    padding: 2px 6px;
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #f39c12;
    border-radius: 3px;
    color: #f39c12;
    font-size: 10px;
    font-weight: bold;
}

.bot-reason {
    color: #f39c12;
    font-size: 12px;
    margin-bottom: 4px;
    font-weight: bold;
}

.bot-detail {
    color: #16a085;
    font-size: 10px;
    font-family: 'Courier New', monospace;
    word-break: break-all;
}

/* Top Lists Section */
.top-lists-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.top-list {
    background: rgba(0, 255, 65, 0.03);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 20px;
}

.top-list h3 {
    font-size: 18px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #00ff41;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 10px;
}

.top-list-item {
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #00ff41;
    margin-bottom: 10px;
    border-radius: 3px;
    display: flex;
    justify-content: space-between;
}

/* Activity Timeline Section */
.activity-section {
    background: rgba(0, 200, 255, 0.03);
    border: 2px solid #00c8ff;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.activity-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #00c8ff;
    border-bottom: 1px solid #00c8ff;
    padding-bottom: 10px;
    color: #00c8ff;
}

.activity-timeline {
    max-height: 500px;
    overflow-y: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
    padding: 15px;
}

.activity-item-timeline {
    padding: 15px;
    background: rgba(0, 200, 255, 0.05);
    border-left: 4px solid #00c8ff;
    margin-bottom: 15px;
    border-radius: 5px;
    transition: all 0.3s;
}

.activity-item-timeline:hover {
    background: rgba(0, 200, 255, 0.1);
    transform: translateX(5px);
}

.activity-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.activity-type {
    color: #00c8ff;
    font-weight: bold;
    font-size: 14px;
}

.activity-timestamp {
    color: #00cc33;
    font-size: 12px;
}

.activity-visitor-info {
    color: #00ff41;
    font-size: 13px;
    margin-bottom: 5px;
}

.activity-details {
    color: #00cc33;
    font-size: 12px;
    padding: 5px 0;
}

.activity-badge {
    display: inline-block;
    padding: 3px 8px;
    background: rgba(255, 0, 0, 0.2);
    border: 1px solid #ff0000;
    border-radius: 3px;
    color: #ff0000;
    font-size: 11px;
    margin-right: 5px;
}

/* Photos Section */
.photos-section {
    background: rgba(255, 0, 0, 0.03);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.photos-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #ff0000;
    border-bottom: 1px solid #ff0000;
    padding-bottom: 10px;
    color: #ff0000;
}

.photos-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.photo-card {
    background: rgba(0, 0, 0, 0.4);
    border: 2px solid #ff0000;
    border-radius: 10px;
    padding: 15px;
    transition: all 0.3s;
}

.photo-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(255, 0, 0, 0.5);
    border-color: #ff6666;
}

.photo-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid #00ff41;
    transition: all 0.3s;
}

.photo-card img:hover {
    border-color: #ff0000;
    box-shadow: 0 0 20px rgba(255, 0, 0, 0.5);
}

.photo-info {
    margin-top: 10px;
    font-size: 12px;
}

.photo-info-item {
    padding: 5px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
    color: #00ff41;
}

.photo-info-label {
    color: #00cc33;
    font-weight: bold;
    margin-right: 8px;
}

/* Visitors Table Section */
.visitors-section {
    background: rgba(0, 255, 65, 0.03);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.visitors-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-shadow: 0 0 5px #00ff41;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 10px;
}

.table-container {
    overflow-x: auto;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

table {
    width: 100%;
    border-collapse: collapse;
    color: #00ff41;
}

thead {
    background: rgba(0, 255, 65, 0.1);
    position: sticky;
    top: 0;
}

th {
    padding: 15px;
    text-align: left;
    font-weight: bold;
    border-bottom: 2px solid #00ff41;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 1px;
}

td {
    padding: 12px 15px;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

tbody tr {
    transition: all 0.2s;
}

tbody tr:hover {
    background: rgba(0, 255, 65, 0.1);
}

.loading-message {
    text-align: center;
    padding: 40px !important;
    color: #00cc33;
}

.view-details-btn {
    padding: 6px 12px;
    font-size: 12px;
    background: rgba(255, 0, 0, 0.1);
    border-color: #ff0000;
    color: #ff0000;
}

.view-details-btn:hover {
    background: rgba(255, 0, 0, 0.2);
}

/* Snapshot Thumbnail */
.snapshot-thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border: 2px solid #ff0000;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.snapshot-thumbnail:hover {
    transform: scale(1.5);
    z-index: 100;
    box-shadow: 0 5px 20px rgba(255, 0, 0, 0.5);
}

.no-snapshot {
    color: #666;
    font-size: 12px;
    font-style: italic;
}

/* Snapshot Gallery */
.snapshot-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.snapshot-item {
    background: rgba(0, 0, 0, 0.3);
    border: 2px solid #ff0000;
    border-radius: 5px;
    padding: 10px;
    text-align: center;
}

.snapshot-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s;
}

.snapshot-item img:hover {
    transform: scale(1.05);
}

.snapshot-timestamp {
    color: #00cc33;
    font-size: 12px;
    margin-top: 8px;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    overflow: auto;
}

.modal-content {
    background: #1a1a2e;
    margin: 5% auto;
    padding: 30px;
    border: 2px solid #00ff41;
    border-radius: 10px;
    width: 90%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}

.photo-modal-content {
    max-width: 1200px;
    border-color: #ff0000;
}

.photo-modal-content h2 {
    color: #ff0000;
    text-shadow: 0 0 5px #ff0000;
}

.photo-modal-content img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    border: 3px solid #ff0000;
    margin: 20px 0;
    box-shadow: 0 0 30px rgba(255, 0, 0, 0.5);
}

.close {
    color: #ff0000;
    float: right;
    font-size: 32px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close:hover {
    color: #ff6666;
}

.detail-section {
    margin-bottom: 20px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-left: 3px solid #00ff41;
    border-radius: 5px;
}

.detail-section h3 {
    color: #00ff41;
    margin-bottom: 10px;
    font-size: 18px;
}

.detail-item {
    padding: 8px 0;
    border-bottom: 1px solid rgba(0, 255, 65, 0.1);
}

.detail-label {
    color: #00cc33;
    font-weight: bold;
    display: inline-block;
    width: 200px;
}

.detail-value {
    color: #00ff41;
}

pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-size: 12px;
}

/* Footer */
.admin-footer {
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    border-top: 2px solid #ff0000;
    color: #00cc33;
}

.admin-footer p {
    margin: 5px 0;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb {
    background: #00ff41;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #00cc33;
}

/* Live Dashboard Elements */
.live-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(0, 255, 65, 0.2);
    border: 2px solid #00ff41;
    border-radius: 20px;
    font-size: 18px;
    margin-left: 15px;
    animation: pulse 2s ease-in-out infinite;
    vertical-align: middle;
}

.live-info {
    color: #00cc33;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

.new-visitors-badge {
    display: inline-block;
    padding: 5px 12px;
    background: rgba(255, 215, 0, 0.2);
    border: 2px solid #ffd700;
    border-radius: 15px;
    color: #ffd700;
    font-size: 14px;
    font-weight: bold;
    margin-left: 10px;
    animation: flash 1s ease-in-out infinite;
}

.new-visitor-notification {
    position: fixed;
    top: 100px;
    right: 20px;
    padding: 20px 30px;
    background: rgba(255, 215, 0, 0.95);
    border: 3px solid #ffd700;
    border-radius: 10px;
    color: #000;
    font-size: 18px;
    font-weight: bold;
    z-index: 9999;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.5);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

@keyframes flash {
    0%, 50%, 100% {
        opacity: 1;
    }
    25%, 75% {
        opacity: 0.5;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 32px;
    }

    .live-badge {
        display: block;
        margin: 10px auto 0;
        width: fit-content;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
    }

    .top-lists-section {
        grid-template-columns: 1fr;
    }

    .table-container {
        font-size: 12px;
    }

    th, td {
        padding: 8px;
    }

    .new-visitor-notification {
        right: 10px;
        left: 10px;
        font-size: 14px;
        padding: 15px 20px;
    }
}

/* ============================================================================
   BEHAVIORAL PROFILING SYSTEM - Dark Theme
   Black/green matrix-style design for the behavioral fingerprinting section
   ============================================================================ */

.behavioral-profiles-wrapper {
    background: linear-gradient(135deg, #000000 0%, #0a0a0a 100%) !important;
    border: 2px solid #00ff00 !important;
    box-shadow: 0 0 30px rgba(0, 255, 0, 0.3) !important;
}

.behavioral-profiles-wrapper h2 {
    color: #00ff00 !important;
    text-shadow: 0 0 20px #00ff00 !important;
}

.profiles-header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 255, 0, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.profiles-header h3 {
    color: #00ff00;
    font-size: 1.8em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #00ff00;
}

.profiles-desc {
    color: #00cc00;
    font-size: 1.05em;
    margin-top: 10px;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 20px;
}

.profile-card {
    background: linear-gradient(135deg, #0a0a0a 0%, #000000 100%);
    border: 2px solid #00ff00;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.2);
    transition: all 0.3s ease;
}

.profile-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 40px rgba(0, 255, 0, 0.4);
    border-color: #33ff33;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 255, 0, 0.2);
}

.profile-header h3 {
    color: #00ff00;
    font-size: 1.4em;
    text-shadow: 0 0 10px #00ff00;
    margin: 0;
}

.profile-confidence {
    font-size: 1.2em;
    font-weight: bold;
    padding: 8px 15px;
    background: rgba(0, 255, 0, 0.1);
    border-radius: 20px;
    border: 1px solid currentColor;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.profile-stat {
    background: rgba(0, 255, 0, 0.05);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid rgba(0, 255, 0, 0.2);
}

.profile-stat .stat-label {
    color: #00cc00;
    font-size: 0.85em;
    display: block;
    margin-bottom: 5px;
}

.profile-stat .stat-value {
    color: #00ff00;
    font-size: 1.2em;
    font-weight: bold;
}

.profile-indicators {
    margin-bottom: 20px;
}

.profile-indicators h4 {
    color: #00ff00;
    font-size: 1.1em;
    margin-bottom: 12px;
    text-shadow: 0 0 5px #00ff00;
}

.indicators-grid {
    display: grid;
    gap: 8px;
}

.indicator {
    background: rgba(0, 255, 0, 0.05);
    padding: 8px 12px;
    border-radius: 5px;
    border-left: 3px solid #00ff00;
    color: #00cc00;
    font-size: 0.9em;
}

.profile-timeline {
    margin-bottom: 20px;
}

.profile-timeline h4 {
    color: #00ff00;
    font-size: 1.1em;
    margin-bottom: 12px;
    text-shadow: 0 0 5px #00ff00;
}

.timeline-item {
    background: rgba(0, 255, 0, 0.05);
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 8px;
    display: flex;
    justify-content: space-between;
    color: #00cc00;
    font-size: 0.9em;
}

.timeline-more {
    color: #00cc00;
    font-style: italic;
    text-align: center;
    padding: 8px;
}

.profile-details-btn {
    width: 100%;
    padding: 12px 20px;
    background: linear-gradient(135deg, #00ff00 0%, #00cc00 100%);
    border: none;
    border-radius: 8px;
    color: #000;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: none;
}

.profile-details-btn:hover {
    background: linear-gradient(135deg, #33ff33 0%, #00ff00 100%);
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.5);
    transform: translateY(-2px);
}

/* ============================================================================
   COLLAPSIBLE SECTION
   ============================================================================ */

.collapsible-section {
    margin-bottom: 30px;
}

.collapsible-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 15px 20px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border-radius: 10px 10px 0 0;
    transition: all 0.3s ease;
}

.collapsible-header:hover {
    background: linear-gradient(135deg, #3d3d3d 0%, #2e2e2e 100%);
    box-shadow: 0 0 15px rgba(255, 107, 53, 0.2);
}

.collapsible-header h2 {
    margin: 0;
}

.collapse-toggle {
    font-size: 1.5em;
    color: #ff0000;
    transition: transform 0.3s ease;
    user-select: none;
}

.collapsible-content {
    padding: 20px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 0 0 10px 10px;
    border: 2px solid #ff0000;
    border-top: none;
}

/* ============================================================================
   SESSION-GROUPED PHOTOS
   ============================================================================ */

.session-photos-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.session-card {
    background: linear-gradient(135deg, #2d2d2d 0%, #1e1e1e 100%);
    border: 2px solid #ff6b35;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.session-card:hover {
    border-color: #ff8c61;
    box-shadow: 0 5px 20px rgba(255, 107, 53, 0.3);
}

.session-header {
    padding: 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.session-header:hover {
    background: rgba(0, 0, 0, 0.3);
}

.session-info h3 {
    color: #ff6b35;
    font-size: 1.3em;
    margin-bottom: 10px;
    text-shadow: 0 0 10px #ff6b35;
}

.session-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: #00cc33;
    font-size: 0.9em;
}

.session-meta span {
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 5px;
}

.session-toggle {
    font-size: 1.5em;
    color: #ff6b35;
    transition: transform 0.3s ease;
}

.session-photos-container {
    padding: 0;
}

.session-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 15px;
    padding: 20px;
    background: #1a1a1a;
}

.session-photo-thumbnail {
    position: relative;
    cursor: pointer;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid #00ff41;
    transition: all 0.3s ease;
}

.session-photo-thumbnail:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.5);
    border-color: #ff6b35;
}

.session-photo-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.thumbnail-number {
    position: absolute;
    top: 5px;
    right: 5px;
    background: rgba(0, 0, 0, 0.8);
    color: #00ff41;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
}

.fullscreen-btn {
    display: block;
    margin: 20px auto;
    padding: 12px 30px;
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: bold;
    font-size: 1em;
    cursor: pointer;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    white-space: nowrap;
}

.fullscreen-btn:hover {
    background: linear-gradient(135deg, #45a049 0%, #4caf50 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.4);
}

/* ============================================================================
   FULL SCREEN SESSION MODAL
   ============================================================================ */

.fullscreen-modal {
    z-index: 10001;
}

.fullscreen-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    width: 95%;
    max-width: 100%;
    max-height: 95vh;
    overflow: hidden;
    border: 3px solid #ff6b35;
    border-radius: 15px;
    padding: 0;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.9);
}

.fullscreen-modal-content h2 {
    color: #ff6b35;
    text-shadow: 0 0 15px #ff6b35;
    margin: 0;
    padding: 25px 30px;
    background: rgba(0, 0, 0, 0.5);
    border-bottom: 2px solid #ff6b35;
}

.fullscreen-modal-content .close {
    position: absolute;
    right: 30px;
    top: 20px;
    z-index: 1;
}

.session-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding: 20px 30px;
    background: rgba(0, 0, 0, 0.3);
    border-bottom: 1px solid rgba(255, 107, 53, 0.3);
    color: #00cc33;
    font-size: 0.95em;
}

.session-details span {
    padding: 8px 15px;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 5px;
    border: 1px solid rgba(0, 255, 65, 0.2);
}

.fullscreen-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    padding: 30px;
    max-height: calc(95vh - 200px);
    overflow-y: auto;
}

.fullscreen-photo-item {
    position: relative;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
    border: 3px solid #00ff41;
    transition: all 0.3s ease;
    background: #000;
}

.fullscreen-photo-item:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 255, 65, 0.6);
    border-color: #ff6b35;
    z-index: 10;
}

.fullscreen-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fullscreen-photo-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9), transparent);
    color: #00ff41;
    padding: 15px 10px 10px;
    font-size: 0.9em;
    text-align: center;
}

/* Responsive adjustments for full-screen modal */
@media (max-width: 768px) {
    .fullscreen-modal-content {
        width: 98%;
        max-height: 90vh;
    }

    .fullscreen-modal-content h2 {
        font-size: 1.3em;
        padding: 20px;
    }

    .session-details {
        gap: 10px;
        padding: 15px;
        font-size: 0.85em;
    }

    .fullscreen-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 15px;
        padding: 20px;
    }

    .profiles-grid {
        grid-template-columns: 1fr;
    }

    .profile-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================================================
   THEME SYSTEM - Alternative Color Schemes
   ============================================================================ */

/* Matrix Theme - Enhanced Green */
body.theme-matrix {
    background: linear-gradient(135deg, #000000 0%, #001a00 50%, #000000 100%);
}

body.theme-matrix .admin-header {
    border-bottom-color: #00ff00;
    background: rgba(0, 255, 0, 0.05);
}

body.theme-matrix .admin-header h1 {
    color: #00ff00;
    text-shadow: 0 0 10px #00ff00, 0 0 20px #00ff00;
}

body.theme-matrix .stats-section,
body.theme-matrix .visitors-section,
body.theme-matrix .filters-section,
body.theme-matrix .top-list {
    border-color: #00ff00;
}

body.theme-matrix .admin-stat-card {
    border-color: #00ff00;
}

body.theme-matrix button {
    border-color: #00ff00;
    color: #00ff00;
}

body.theme-matrix #loadDataBtn {
    border-color: #00ff00;
    color: #00ff00;
    background: rgba(0, 255, 0, 0.1);
}

/* Hacker Theme - Purple Cyber */
body.theme-hacker {
    background: linear-gradient(135deg, #0a0010 0%, #1a0a2e 50%, #0a0010 100%);
    color: #b19cd9;
}

body.theme-hacker .admin-header {
    border-bottom-color: #b19cd9;
    background: rgba(177, 156, 217, 0.05);
}

body.theme-hacker .admin-header h1 {
    color: #b19cd9;
    text-shadow: 0 0 10px #b19cd9, 0 0 20px #b19cd9;
}

body.theme-hacker .stats-section,
body.theme-hacker .visitors-section,
body.theme-hacker .filters-section,
body.theme-hacker .top-list {
    border-color: #b19cd9;
    background: rgba(177, 156, 217, 0.03);
}

body.theme-hacker .admin-stat-card {
    border-color: #b19cd9;
    background: rgba(177, 156, 217, 0.05);
}

body.theme-hacker .stat-number {
    color: #b19cd9;
    text-shadow: 0 0 10px #b19cd9;
}

body.theme-hacker button {
    border-color: #b19cd9;
    color: #b19cd9;
}

body.theme-hacker #loadDataBtn {
    border-color: #9d7bbe;
    color: #9d7bbe;
}

body.theme-hacker .leaderboard-section {
    border-color: #ffd700;
}

body.theme-hacker ::-webkit-scrollbar-thumb {
    background: #b19cd9;
}

/* Dark Blue Theme - Professional */
body.theme-dark-blue {
    background: linear-gradient(135deg, #0a1128 0%, #1a2332 50%, #0a1128 100%);
    color: #4da6ff;
}

body.theme-dark-blue .admin-header {
    border-bottom-color: #4da6ff;
    background: rgba(77, 166, 255, 0.05);
}

body.theme-dark-blue .admin-header h1 {
    color: #4da6ff;
    text-shadow: 0 0 10px #4da6ff, 0 0 20px #4da6ff;
}

body.theme-dark-blue .stats-section,
body.theme-dark-blue .visitors-section,
body.theme-dark-blue .filters-section,
body.theme-dark-blue .top-list {
    border-color: #4da6ff;
    background: rgba(77, 166, 255, 0.03);
}

body.theme-dark-blue .admin-stat-card {
    border-color: #4da6ff;
    background: rgba(77, 166, 255, 0.05);
}

body.theme-dark-blue .stat-number {
    color: #4da6ff;
    text-shadow: 0 0 10px #4da6ff;
}

body.theme-dark-blue button {
    border-color: #4da6ff;
    color: #4da6ff;
}

body.theme-dark-blue #loadDataBtn {
    border-color: #ff6b35;
    color: #ff6b35;
}

body.theme-dark-blue .leaderboard-section {
    border-color: #ffd700;
}

body.theme-dark-blue ::-webkit-scrollbar-thumb {
    background: #4da6ff;
}

/* ============================================================================
   GEOGRAPHIC VISUALIZATION MAP
   ============================================================================ */

.map-section {
    background: rgba(0, 255, 65, 0.03);
    border: 2px solid #00ff41;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 30px;
}

.map-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
    text-shadow: 0 0 5px #00ff41;
    border-bottom: 1px solid #00ff41;
    padding-bottom: 10px;
}

.map-description {
    color: #00cc33;
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.visitor-map {
    width: 100%;
    height: 600px;
    border: 2px solid #00ff41;
    box-shadow: 0 5px 20px rgba(0, 255, 65, 0.2);
    background: #000 !important;
}

/* Force all Leaflet elements to black background */
.visitor-map .leaflet-container,
.visitor-map .leaflet-container * {
    background-color: #000 !important;
}

/* Override Leaflet's default light gray background */
.leaflet-container {
    background: #000 !important;
}

.map-legend {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 15px;
    padding: 15px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #00ff41;
    font-size: 14px;
}

.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* Theme-specific map styles */
body.theme-matrix .map-section {
    border-color: #00ff00;
}

body.theme-matrix .map-section h2 {
    text-shadow: 0 0 5px #00ff00;
    border-bottom-color: #00ff00;
}

body.theme-matrix .visitor-map {
    border-color: #00ff00;
}

body.theme-hacker .map-section {
    border-color: #b19cd9;
    background: rgba(177, 156, 217, 0.03);
}

body.theme-hacker .map-section h2 {
    color: #b19cd9;
    text-shadow: 0 0 5px #b19cd9;
    border-bottom-color: #b19cd9;
}

body.theme-hacker .visitor-map {
    border-color: #b19cd9;
}

body.theme-dark-blue .map-section {
    border-color: #4da6ff;
    background: rgba(77, 166, 255, 0.03);
}

body.theme-dark-blue .map-section h2 {
    color: #4da6ff;
    text-shadow: 0 0 5px #4da6ff;
    border-bottom-color: #4da6ff;
}

body.theme-dark-blue .visitor-map {
    border-color: #4da6ff;
}


/* Responsive map */
@media (max-width: 768px) {
    .visitor-map {
        height: 400px;
    }

    .map-legend {
        flex-direction: column;
        gap: 10px;
    }
}

/* ============================================================================
   MOBILE & TABLET OPTIMIZATIONS
   ============================================================================ */

/* Tablet Landscape (1024px and below) */
@media (max-width: 1024px) {
    body {
        padding: 10px;
    }

    .admin-container {
        padding: 0 10px;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .stat-number {
        font-size: 36px;
    }

    .stat-label {
        font-size: 12px;
    }

    .leaderboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .table-container {
        font-size: 13px;
    }

    th, td {
        padding: 10px;
        font-size: 12px;
    }
}

/* Tablet Portrait (768px and below) */
@media (max-width: 768px) {
    .admin-header h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .admin-container {
        padding: 0 5px;
    }

    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .admin-stat-card {
        padding: 15px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 11px;
    }

    .leaderboard-grid,
    .top-lists-section {
        grid-template-columns: 1fr;
    }

    .bot-detection-grid {
        grid-template-columns: 1fr;
    }

    .filters-grid {
        grid-template-columns: 1fr;
    }

    .auth-section {
        flex-direction: column;
        gap: 10px;
    }

    button {
        width: 100%;
    }

    .visitor-map {
        height: 350px;
    }

    .photos-gallery,
    .session-photos-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    th, td {
        padding: 8px;
        font-size: 11px;
    }

    .snapshot-thumbnail {
        width: 60px;
        height: 45px;
    }
}

/* Mobile Landscape (640px and below) */
@media (max-width: 640px) {
    .admin-header h1 {
        font-size: 24px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }

    .visitor-map {
        height: 300px;
    }

    .map-section,
    .stats-section,
    .leaderboard-section,
    .filters-section,
    .bot-detection-section,
    .visitors-section,
    .photos-section {
        padding: 15px;
    }

    h2 {
        font-size: 20px !important;
    }

    .photos-gallery,
    .session-photos-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile Portrait (480px and below) */
@media (max-width: 480px) {
    body {
        padding: 5px;
    }

    .admin-header {
        padding: 20px 10px;
    }

    .admin-header h1 {
        font-size: 20px;
        margin-bottom: 5px;
    }

    .subtitle,
    .live-info {
        font-size: 12px;
    }

    .live-badge {
        font-size: 14px;
        padding: 6px 12px;
    }

    .admin-stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .admin-stat-card {
        padding: 12px;
    }

    .stat-number {
        font-size: 28px;
    }

    .stat-label {
        font-size: 10px;
    }

    button {
        padding: 10px 16px;
        font-size: 12px;
    }

    .visitor-map {
        height: 250px;
    }

    .map-legend {
        font-size: 12px;
    }

    .leaderboard-item,
    .bot-item,
    .activity-item-timeline {
        padding: 10px;
        font-size: 12px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
        margin: 2% auto;
    }

    h2 {
        font-size: 18px !important;
    }

    h3 {
        font-size: 16px !important;
    }

    .table-container {
        font-size: 10px;
    }

    th, td {
        padding: 6px;
        font-size: 10px;
    }

    .view-details-btn {
        padding: 4px 8px;
        font-size: 10px;
    }

    .snapshot-thumbnail {
        width: 50px;
        height: 38px;
    }

    /* Make table horizontally scrollable on small screens */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 800px; /* Ensure table doesn't collapse too much */
    }
}

/* Collapsible section headers */
.collapsible-header-title {
    cursor: pointer;
    user-select: none;
    transition: opacity 0.2s;
}

.collapsible-header-title:hover {
    opacity: 0.8;
}

.section-content-collapsible {
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
}

.section-content-collapsed {
    max-height: 0 !important;
    opacity: 0;
    margin: 0 !important;
    padding: 0 !important;
}
