body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    max-width: 800px;
    margin: 40px auto;
    padding: 20px;
    text-align: center;
    background-color: #f5f5f5;
}

.login-container {
    max-width: 500px;
    width: 90%;
    margin: 60px auto;
    padding: 40px 30px;
    text-align: center;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(255,255,255,0.8);
}

.login-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(135deg, #5cb85c 0%, #4CAF50 50%, #3d8b40 100%);
    color: white;
    padding: 14px 32px;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 24px;
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    border: none;
}

.login-button:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #357a38 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.login-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.login-subtitle {
    color: #636e72;
    font-size: 1.1em;
    margin: 0 0 16px 0;
    font-weight: 400;
}

.login-description {
    color: #636e72;
    font-size: 0.95em;
    margin: 16px 0 0 0;
    line-height: 1.5;
    max-width: 300px;
}

.welcome-text {
    color: #2d3436;
    font-size: 1.8em;
    margin-bottom: 8px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.login-container .welcome-text {
    background: linear-gradient(135deg, #2d3436 0%, #4CAF50 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.user-info {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
}

.user-menu {
    position: relative;
    cursor: pointer;
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 3px solid #4CAF50;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.2);
}

.user-dropdown {
    position: absolute;
    right: 0;
    top: 60px;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.08);
    display: none;
    min-width: 180px;
    border: 1px solid rgba(255,255,255,0.8);
}

.user-menu:hover .user-dropdown {
    display: block;
}

.user-menu:hover .user-avatar {
    transform: scale(1.1);
}

.logout-link {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s;
}

.logout-link:hover {
    color: #4CAF50;
}

.dashboard-container {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 40px 35px;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.06);
    margin-top: 20px;
    border: 1px solid rgba(255,255,255,0.8);
}

.action-button {
    background: linear-gradient(135deg, #5cb85c 0%, #4CAF50 50%, #3d8b40 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 0.95em;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.action-button:hover {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 50%, #357a38 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.action-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

.dashboard-container h2,
.user-details h2 {
    color: #2d3436;
    font-size: 1.4em;
    font-weight: 600;
    margin: 30px 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid #4CAF50;
    display: inline-block;
}

.stats-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stats-table th,
.stats-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.stats-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #2d3436;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-table tr:hover {
    background-color: #f8fdf8;
}

.stats-table tbody tr {
    transition: background-color 0.2s ease;
}

.active-users {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #5cb85c 0%, #4CAF50 50%, #3d8b40 100%);
    color: white;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
}

.active-users:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.active-users:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 18px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12), 0 2px 10px rgba(0,0,0,0.08);
    min-width: 220px;
    z-index: 1000;
    transition: all 0.3s ease;
    margin-top: 12px;
    border: 1px solid rgba(255,255,255,0.8);
}

.tooltip::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    border-width: 0 8px 8px 8px;
    border-style: solid;
    border-color: transparent transparent white transparent;
}

.active-user-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.active-user-list li {
    padding: 5px 0;
    border-bottom: 1px solid #eee;
}

.empty-state {
    color: #7f8c8d;
    font-style: italic;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px dashed #ddd;
}

.server-status {
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

.status-badge {
    padding: 6px 14px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.running {
    background: linear-gradient(135deg, #5cb85c, #4CAF50);
    color: white;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.status-badge.stopped {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.server-control {
    margin: 20px 0;
}

.action-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.action-button:hover {
    background-color: #45a049;
}

.active-indicator {
    color: #4CAF50;
    font-weight: bold;
    margin-left: 5px;
}

.user-link {
    color: #4CAF50;
    text-decoration: none;
}

.user-link:hover {
    text-decoration: underline;
}

.user-details {
    padding: 40px 35px;
    max-width: 600px;
    margin: 40px auto;
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08), 0 2px 10px rgba(0,0,0,0.06);
    border: 1px solid rgba(255,255,255,0.8);
}

.overlap-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.overlap-table th,
.overlap-table td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.overlap-table th {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    font-weight: 600;
    color: #2d3436;
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.overlap-table tr:hover {
    background-color: #f8fdf8;
}

.overlap-table tbody tr {
    transition: background-color 0.2s ease;
}

.empty-state {
    color: #666;
    font-style: italic;
}

.user-link {
    color: #4CAF50;
    text-decoration: none;
}

.user-link:hover {
    text-decoration: underline;
}

.toggle-control {
    display: inline-block;
    position: relative;
    margin: 20px 0;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 120px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.slider.running {
    background-color: #4CAF50;
}

.slider.running:before {
    transform: translateX(85px);
}

.slider-text {
    color: white;
    position: absolute;
    transform: translate(-50%, -50%);
    top: 50%;
    left: 50%;
    font-size: 14px;
    font-family: sans-serif;
    font-weight: bold;
}

.sortable {
    cursor: pointer;
    position: relative;
    padding-right: 20px;
}

.sortable:after {
    content: '↕';
    position: absolute;
    right: 8px;
    color: #999;
}

.sortable[data-direction="asc"]:after {
    content: '↑';
}

.sortable[data-direction="desc"]:after {
    content: '↓';
}

.image-container {
    width: 100%;
    max-width: 320px;
    margin: 20px auto;
    padding: 8px;
    background: linear-gradient(145deg, #f0f0f0, #ffffff);
    border-radius: 16px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.06);
}

.login-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-container:hover .login-image {
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .login-container {
        width: 95%;
        margin: 30px auto;
        padding: 30px 20px;
    }
    
    .login-container .welcome-text {
        font-size: 1.5em;
    }
    
    .image-container {
        max-width: 280px;
    }
}

.level-info {
    margin-top: 10px;
    padding: 8px;
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
    font-size: 0.9em;
    color: #666;
}

.save-button {
    margin-left: 8px;
    padding: 4px 12px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9em;
}

.save-button:hover {
    background-color: #45a049;
}

.level-info select {
    padding: 4px 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9em;
    margin: 0 8px;
}

/* Minecraft lookup page styles */
.minecraft-lookup-container {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    margin-top: 20px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.minecraft-link {
    display: block;
    color: #666;
    text-decoration: none;
    padding: 5px 0;
    transition: color 0.3s;
}

.minecraft-link:hover {
    color: #4CAF50;
}

.back-link {
    color: #4CAF50;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 24px;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    background: rgba(76, 175, 80, 0.08);
    transition: all 0.2s ease;
}

.back-link:hover {
    background: rgba(76, 175, 80, 0.15);
    transform: translateX(-4px);
}

.description {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.lookup-form {
    margin: 30px 0;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-sizing: border-box;
    background: #fafafa;
}

.form-input:focus {
    outline: none;
    border-color: #4CAF50;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

.submit-button {
    background-color: #4CAF50;
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-button:hover {
    background-color: #45a049;
}

.result-area {
    margin-top: 30px;
    min-height: 50px;
}

.result-container {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.success-message {
    color: #4CAF50;
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 20px;
}

.error-message {
    color: #f44336;
    padding: 15px;
    background: #ffebee;
    border-radius: 4px;
    border-left: 4px solid #f44336;
}

.player-info {
    margin-top: 15px;
}

.player-field {
    margin-bottom: 15px;
    padding: 12px;
    background: white;
    border-radius: 4px;
    text-align: left;
}

.player-field label {
    display: block;
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
    font-size: 14px;
}

.player-value {
    display: block;
    color: #333;
    font-size: 16px;
    word-break: break-all;
}

.player-value.uuid {
    font-family: 'Courier New', monospace;
    background: #f0f0f0;
    padding: 8px;
    border-radius: 4px;
}

/* Dashboard Stats Summary Cards */
.stats-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.summary-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    transition: transform 0.2s, box-shadow 0.2s;
}

.summary-card:nth-child(2) {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.summary-card:nth-child(3) {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    box-shadow: 0 4px 15px rgba(79, 172, 254, 0.3);
}

.summary-card:nth-child(4) {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    box-shadow: 0 4px 15px rgba(67, 233, 123, 0.3);
}

.summary-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.summary-icon {
    font-size: 2em;
}

.summary-content {
    flex: 1;
}

.summary-value {
    font-size: 1.5em;
    font-weight: bold;
    line-height: 1.2;
}

.summary-label {
    font-size: 0.85em;
    opacity: 0.9;
}

/* Chart Containers */
.chart-container {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.chart-title {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.1em;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
}

/* Bar Charts */
.bar-chart {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 15px;
}

.bar-label {
    min-width: 100px;
    max-width: 100px;
    font-size: 0.9em;
    text-align: right;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bar-container {
    flex: 1;
    background: #f5f5f5;
    border-radius: 8px;
    height: 28px;
    position: relative;
    overflow: hidden;
}

.bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    border-radius: 8px;
    transition: width 0.5s ease-out;
    min-width: 2px;
}

.playtime-bar {
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.sessions-bar {
    background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.bar-value {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    color: #333;
    font-size: 0.8em;
    font-weight: bold;
    text-shadow: none;
}

/* Activity Grid (Heatmap style) */
.activity-grid {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-bottom: 15px;
}

.activity-cell {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 0.75em;
    font-weight: 500;
    cursor: default;
    transition: transform 0.2s;
}

.activity-cell:hover {
    transform: scale(1.1);
}

.activity-day {
    color: #666;
}

.activity-cell.none {
    background: #f0f0f0;
    color: #999;
}

.activity-cell.low {
    background: #c6e48b;
    color: #2d5016;
}

.activity-cell.medium {
    background: #7bc96f;
    color: #1a3d0f;
}

.activity-cell.high {
    background: #239a3b;
    color: white;
}

.activity-legend {
    display: flex;
    justify-content: center;
    gap: 20px;
    font-size: 0.8em;
    color: #666;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
}

.legend-color.none {
    background: #f0f0f0;
}

.legend-color.low {
    background: #c6e48b;
}

.legend-color.medium {
    background: #7bc96f;
}

.legend-color.high {
    background: #239a3b;
}

/* Charts Container */
.charts-container {
    margin-top: 30px;
}

.charts-section-title {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

/* Responsive adjustments */
@media (max-width: 600px) {
    .stats-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .summary-card {
        padding: 15px;
    }

    .summary-value {
        font-size: 1.2em;
    }

    .bar-label {
        min-width: 70px;
        max-width: 70px;
        font-size: 0.8em;
    }

    .activity-cell {
        width: 40px;
        height: 40px;
    }
}
