/* Glassmorphism Base */
.glass-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    transition: transform 0.3s ease;
    overflow-y: auto;
}

/* Enhanced Glassmorphism for Usage Card */
.usage-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0);
}

/* Pulse Animation for Updates */
@keyframes shadowPulse {
    0% { box-shadow: 0 0 0 rgba(59, 130, 246, 0.4); }
    50% { box-shadow: 0 0 20px rgba(59, 130, 246, 0.6); }
    100% { box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2); }
}

.pulse-update {
    animation: shadowPulse 1s ease-out;
}

/* Success Animation */
@keyframes successPulse {
    0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.success-indicator {
    position: relative;
    animation: successPulse 1.5s ease-out;
}

/* Progress Bar Styling */
.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    transition: width 0.5s ease;
    border-radius: 4px;
}

/* Create Server Card Styling */
.create-card {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1rem;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.create-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.5);
}

/* Fade-in Animation */
.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(10px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Skeleton Loading Animation */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.1) 25%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0.1) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 4px;
    display: inline-block;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.skeleton-text {
    height: 1.5rem;
    width: 60%;
    margin-bottom: 0.5rem;
}

.skeleton-status {
    height: 1rem;
    width: 30%;
    margin-top: 0.5rem;
}

.skeleton-identifier {
    height: 1rem;
    width: 40%;
}

.loaded .skeleton {
    display: none;
}

.loaded .content {
    display: block;
}

.content {
    display: none;
}

/* Modal Animation */
@keyframes modalIn {
    0% { opacity: 0; transform: scale(0.95) translateY(20px); }
    100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes modalOut {
    0% { opacity: 1; transform: scale(1) translateY(0); }
    100% { opacity: 0; transform: scale(0.95) translateY(20px); }
}

/* Status Indicator */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.status-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
}

/* Button Styling */
.manage-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #1f1f1f;
    color: #ffffff;
    width: 100%;
    text-align: center;
}

.manage-btn:hover {
    background: #333333;
    transform: translateY(-1px);
}

.create-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    background: #3b82f6;
    color: #ffffff;
}

.create-btn:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Modal Styling */
.modal-bg {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-bg.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: rgba(24, 24, 27, 0.2);
    backdrop-filter: blur(2px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 1rem;
    padding: 2rem;
    max-width: 95vw;
    width: 100%;
    max-width: 450px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    text-align: center;
    animation: modalIn 0.3s ease-out forwards;
}

.modal-bg.closing .modal-content {
    animation: modalOut 0.3s ease-out forwards;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.modal-message {
    font-size: 1rem;
    color: #d1d5db;
    margin-bottom: 1.5rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.modal-confirm {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.modal-cancel {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    transition: all 0.3s ease;
}

.modal-cancel:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* Action-specific confirm button colors */
.modal-delete .modal-confirm {
    background: #ef4444;
}

.modal-delete .modal-confirm:hover {
    background: #dc2626;
}

.modal-reinstall .modal-confirm {
    background: #9333ea;
}

.modal-reinstall .modal-confirm:hover {
    background: #7e22ce;
}

.modal-suspend .modal-confirm {
    background: #f59e0b;
}

.modal-suspend .modal-confirm:hover {
    background: #d97706;
}

.modal-unsuspend .modal-confirm {
    background: #22c55e;
}

.modal-unsuspend .modal-confirm:hover {
    background: #16a34a;
}

/* Power and Console Section Styling */
.power-console-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 1.25rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.power-console-card:hover {
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Power Buttons */
.power-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
    color: #ffffff;
}

.power-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.power-btn-start {
    background: #22c55e;
}

.power-btn-start:hover:not(:disabled) {
    background: #16a34a;
    transform: translateY(-1px);
}

.power-btn-stop {
    background: #ef4444;
}

.power-btn-stop:hover:not(:disabled) {
    background: #dc2626;
    transform: translateY(-1px);
}

.power-btn-restart {
    background: #3b82f6;
}

.power-btn-restart:hover:not(:disabled) {
    background: #2563eb;
    transform: translateY(-1px);
}

/* Console Form */
.console-form {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.console-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    padding: 0.75rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.console-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.15);
}

.console-btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #4b5563;
    color: #ffffff;
    transition: all 0.3s ease;
}

.console-btn:hover:not(:disabled) {
    background: #6b7280;
    transform: translateY(-1px);
}

.console-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Status Message */
.console-status {
    color: #d1d5db;
    font-size: 0.875rem;
    margin-top: 0.75rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .container {
    padding-left: 1rem;
    padding-right: 1rem;
    }

    .layout-container {
    flex-direction: column;
    gap: 1.5rem;
    }

    .sidebar {
    flex: 1;
    max-width: 100%;
    padding: 1.5rem;
    min-height: 500px;
    }

    .sidebar .flex-col {
    gap: 1rem;
    }

    .manage-btn {
    padding: 0.5rem;
    font-size: 0.75rem;
    }

    .main-content {
    width: 100%;
    }

    .power-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    flex: 1;
    }

    .console-form {
    flex-direction: column;
    align-items: stretch;
    }

    .console-input {
    padding: 0.5rem;
    width: 100%;
    }

    .console-btn {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    width: 100%;
    }

    h1 {
    font-size: 1.5rem;
    }

    .modal-content {
    padding: 1.5rem;
    max-width: 90vw;
    }

    .modal-title {
    font-size: 1.25rem;
    }

    .modal-actions {
    flex-direction: column;
    gap: 0.75rem;
    }

    .modal-confirm,
    .modal-cancel {
    width: 100%;
    padding: 0.5rem;
    }

    .power-console-card {
    padding: 1.5rem;
    }

    .usage-card {
    padding: 1.5rem;
    }
}

@media (max-width: 640px) {
    .power-btn {
    font-size: 0.7rem;
    }

    .console-input {
    font-size: 0.875rem;
    }

    .console-btn {
    font-size: 0.7rem;
    }

    h1 {
    font-size: 1.25rem;
    }

    .modal-title {
    font-size: 1rem;
    }

    .modal-message {
    font-size: 0.875rem;
    }

    .manage-btn {
    font-size: 0.7rem;
    padding: 0.5rem;
    }
}

/* Minimal Background */
body {
    background: #111111;
}

.minecraft-bg {
    position: relative;
    overflow: hidden;
    }
    .minecraft-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: url('/assets/manager_img/minecraft.png') center/cover no-repeat;
        filter: blur(8px) brightness(0.5);
        opacity: 1;
        pointer-events: none;
    }
    .minecraft-bg > * {
        position: relative;
        z-index: 1;
    }

    .nodejs-bg {
        position: relative;
        overflow: hidden;
    }
    .nodejs-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: url('/assets/manager_img/nodejs.png') center/cover no-repeat;
        filter: blur(8px) brightness(0.5);
        opacity: 1;
        pointer-events: none;
    }
    .nodejs-bg > * {
        position: relative;
        z-index: 1;
    }

    .novalife-bg {
        position: relative;
        overflow: hidden;
    }
    .novalife-bg::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 0;
        background: url('/assets/manager_img/gtav.png') center/cover no-repeat;
        filter: blur(8px) brightness(0.5);
        opacity: 1;
        pointer-events: none;
    }
.novalife-bg > * {
    position: relative;
    z-index: 1;
}

/* Sidebar and Main Content Layout */
.layout-container {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.sidebar {
    flex: 0 0 300px;
    max-width: 300px;
}

.main-content {
    flex: 1;
    min-width: 0;
}