* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(165deg, #f093fb 0%, #f5576c 25%, #fda085 50%, #f6d365 75%, #84fab0 100%);
    min-height: 100vh;
    color: #2d2d2d;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.08'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1400px;
    margin: 0;
    padding: 60px 80px;
    position: relative;
    z-index: 1;
}

.header {
    margin-bottom: 60px;
    position: relative;
}

.header h1 {
    font-size: 3.5rem;
    margin-bottom: 8px;
    transform: rotate(-2deg);
    display: inline-block;
    color: #2d2d2d;
    text-shadow: 4px 4px 0 rgba(255,255,255,0.4);
}

.header .subtitle {
    font-size: 1.2rem;
    opacity: 0.85;
    margin-left: 40px;
    transform: rotate(1deg);
}

.grid {
    display: grid;
    grid-template-columns: 2fr 1.2fr 1.5fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.grid-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
    align-items: start;
}

.card {
    background: rgba(255,255,255,0.92);
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: rotate(var(--rotate, 0deg));
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card:nth-child(1) {
    --rotate: -1deg;
}

.card:nth-child(2) {
    --rotate: 1.5deg;
    margin-top: 30px;
}

.card:nth-child(3) {
    --rotate: -0.5deg;
    margin-top: -10px;
}

.card:hover {
    transform: rotate(0deg) translateY(-8px);
    box-shadow: 0 30px 80px rgba(0,0,0,0.2);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: #2d2d2d;
    display: flex;
    align-items: center;
    gap: 12px;
}

.card-title iconify-icon {
    font-size: 1.6rem;
    color: #f5576c;
}

.status-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #33cc66;
    animation: wiggle 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) infinite;
}

.status-dot.offline {
    background: #ff6666;
    animation: none;
}

@keyframes wiggle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed #ddd;
    cursor: pointer;
    user-select: none;
}

.metric:last-child {
    border-bottom: none;
}

.metric-no-chart {
    cursor: default;
}

.metric-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.expand-icon {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.expand-icon.expanded {
    transform: rotate(180deg);
}

.chart-container {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.chart-container.expanded {
    max-height: 200px;
}

.chart {
    width: 100%;
    height: 160px;
    margin-top: 10px;
    position: relative;
    display: block;
    background: #fafafa;
    border-radius: 12px;
}

.chart-line {
    fill: none;
    stroke: #33cc66;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-area {
    fill: url(#gradient);
}

.chart-dot {
    fill: #33cc66;
    transition: r 0.2s ease;
}

.metric:hover .chart-dot {
    r: 5;
}

.chart-grid {
    stroke: #e8e8e8;
    stroke-width: 1;
}

.chart-axis-text {
    fill: #999;
    font-size: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.metric-label {
    color: #666;
    font-size: 0.95rem;
}

.metric-value {
    font-weight: 700;
    font-size: 1.15rem;
    color: #2d2d2d;
}

.metric-value.good {
    color: #33cc66;
}

.metric-value.warning {
    color: #ff9933;
}

.metric-value.danger {
    color: #ff6666;
}

.progress-bar {
    width: 100%;
    height: 14px;
    background: #f0f0f0;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
}

.progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.progress-fill.good {
    background: linear-gradient(90deg, #33cc66, #84fab0);
}

.progress-fill.warning {
    background: linear-gradient(90deg, #ff9933, #fda085);
}

.progress-fill.danger {
    background: linear-gradient(90deg, #ff6666, #f5576c);
}

.players-list {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: hidden;
    width: 100%;
}

.player-item {
    display: flex;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed #eee;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.player-item:hover {
    transform: translateX(8px);
}

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

.player-avatar {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, #fda085 0%, #f6d365 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    margin-right: 14px;
    font-size: 1rem;
    transform: rotate(-5deg);
}

.player-info {
    flex: 1;
}

.player-name {
    font-weight: 600;
    color: #2d2d2d;
}

.player-status {
    font-size: 0.85rem;
    color: #999;
}

.player-status.online {
    color: #33cc66;
}

.player-status.offline {
    color: #ff6666;
}

.plugin-list {
    max-height: 280px;
    overflow-y: auto;
    overflow-x: hidden;
}

.plugin-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.plugin-name {
    font-weight: 600;
    color: #2d2d2d;
}

.plugin-version {
    font-size: 0.85rem;
    color: #999;
}

.config-item {
    padding: 10px 0;
    border-bottom: 1px dashed #eee;
}

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

.config-label {
    color: #666;
    font-size: 0.85rem;
}

.config-value {
    font-weight: 600;
    color: #2d2d2d;
    font-size: 1rem;
}

.motd-section {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed #eee;
}

.motd-label {
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.motd-line {
    padding: 4px 0;
    font-size: 0.95rem;
    line-height: 1.5;
    color: #2d2d2d;
    word-wrap: break-word;
}

.motd-line:last-child {
    padding-bottom: 0;
}

.rainbow-text {
    background: linear-gradient(90deg, #FF0000, #FF7F00, #FFFF00, #00FF00, #0000FF, #4B0082, #9400D3);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: rainbow 3s linear infinite;
}

@keyframes rainbow {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

.footer {
    margin-top: 60px;
    color: #2d2d2d;
    opacity: 0.75;
    font-size: 0.95rem;
    transform: rotate(1deg);
}

.loading {
    text-align: center;
    padding: 50px;
    color: #888;
}

.loading iconify-icon {
    font-size: 2.5rem;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.server-info {
    background: rgba(255,255,255,0.92);
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    transform: rotate(0.8deg);
}

.server-info-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
    gap: 20px;
}

.server-info-item {
    text-align: center;
    padding: 20px 15px;
    background: #fafafa;
    border-radius: 16px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.server-info-item:hover {
    transform: translateY(-5px);
}

.server-info-item iconify-icon {
    font-size: 2.4rem;
    margin-bottom: 10px;
    color: #f5576c;
}

.server-info-item .value {
    font-size: 1.6rem;
    font-weight: bold;
    color: #2d2d2d;
}

.server-info-item .label {
    font-size: 0.95rem;
    color: #777;
    margin-top: 6px;
}

@media (max-width: 1024px) {
    .grid {
        grid-template-columns: 1fr 1fr;
    }
    .card:nth-child(3) {
        grid-column: 1 / -1;
        margin-top: 0;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 40px 30px;
    }
    .header h1 {
        font-size: 2.5rem;
    }
    .grid {
        grid-template-columns: 1fr;
    }
    .card {
        margin-top: 0 !important;
    }
    .countdown {
        position: static;
        margin-top: 20px;
        display: inline-flex;
    }
    .server-info-grid {
        grid-template-columns: 1fr 1fr;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: rgba(45,45,45,0.3);
    border-radius: 10px;
}
