.grid-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.grid-item {
    background-color: #f1f1f1;
    padding: 20px;
    border-radius: 5px;
}

.server-controls {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.server-controls button {
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Server Dashboard Styles */
.server-dashboard {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.server-info {
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 6px;
}

.server-info p {
    margin: 10px 0;
    color: #333;
}

.server-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
}

.stat-container {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    height: 250px; /* Set fixed height */
    min-height: 250px; /* Ensure minimum height */
    display: flex;
    flex-direction: column;
}

.stat-container h3 {
    margin: 0 0 10px 0;
    padding: 0;
    font-size: 16px;
    color: #2c3e50;
}

.stat-container canvas {
    flex: 1;  /* Make canvas fill remaining space */
    width: 100% !important;
    height: 200px !important; /* Set fixed height for charts */
}

/* Server Control Buttons */
.server-action {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.server-action[data-action="boot"] {
    background: #4CAF50;
    color: white;
}

.server-action[data-action="reboot"] {
    background: #ff9800;
    color: white;
}

.server-action[data-action="shutdown"] {
    background: #f44336;
    color: white;
}

.server-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.server-action:active {
    transform: translateY(0);
}

.server-action:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Server Status Indicators */
.server-status {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.status-running {
    background: #e8f5e9;
    color: #2e7d32;
}

.status-offline {
    background: #ffebee;
    color: #c62828;
}

.status-booting {
    background: #fff3e0;
    color: #ef6c00;
}

/* Notifications */
#server-notifications {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    width: 300px;
}

.notification {
    padding: 15px 20px;
    margin-bottom: 10px;
    border-radius: 6px;
    color: white;
    animation: slideIn 0.3s ease-in-out;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.notification-success {
    background: #4CAF50;
}

.notification-error {
    background: #f44336;
}

.notification-warning {
    background: #ff9800;
}

.notification-info {
    background: #2196F3;
}

/* Charts Container */
.chart-container {
    position: relative;
    height: 200px;
    width: 100%;
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
    position: relative;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Responsive Design */
@media (max-width: 768px) {
    .server-stats {
        grid-template-columns: 1fr;
    }
    
    .server-controls {
        flex-direction: column;
    }
    
    .server-action {
        width: 100%;
        margin-bottom: 10px;
    }
}

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

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.mt-2 {
    margin-top: 20px;
}

.mb-2 {
    margin-bottom: 20px;
}

.font-bold {
    font-weight: bold;
}

/* Server Resource Usage Bars */
.resource-bar {
    width: 100%;
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 5px;
}

.resource-bar-fill {
    height: 100%;
    background: #4CAF50;
    transition: width 0.3s ease;
}

.resource-bar-warning {
    background: #ff9800;
}

.resource-bar-danger {
    background: #f44336;
}

/* Server Details Table */
.server-details-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

.server-details-table th,
.server-details-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.server-details-table th {
    background: #f5f5f5;
    font-weight: 600;
}

/* Copy IP Button */
.copy-ip {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    margin-left: 10px;
}

.copy-ip:hover {
    background: #f5f5f5;
}

/* Success Animation */
.success-checkmark {
    color: #4CAF50;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.success-checkmark.show {
    opacity: 1;
}

/* WooCommerce Specific Styles */
.woocommerce div.product form.cart .variations {
    margin-bottom: 2em;
}

.woocommerce div.product form.cart .variations select {
    min-width: 200px;
    padding: 8px;
}

.woocommerce div.product form.cart .variations label {
    font-weight: 600;
}

.woocommerce-variation-price {
    margin: 1em 0;
    font-size: 1.2em;
}

.server-features {
    margin: 2em 0;
}

.server-features ul {
    list-style: none;
    padding: 0;
}

.server-features li {
    margin: 0.5em 0;
    padding-left: 1.5em;
    position: relative;
}

.server-features li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #4CAF50;
}

/* Specific Button IDs */
#start-server { 
    background-color: #4CAF50; 
    color: white;
}

#restart-server { 
    background-color: #ff9800; 
    color: white;
}

#stop-server { 
    background-color: #f44336; 
    color: white;
}

/* Button Hover States */
#start-server:hover,
#restart-server:hover,
#stop-server:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}