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

body {
    background: radial-gradient(circle at 10% 30%, #0B1120, #030712);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.dashboard {
    max-width: 550px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.card {
    background: rgba(15, 25, 35, 0.65);
    backdrop-filter: blur(16px);
    border-radius: 2.5rem;
    border: 1px solid rgba(255, 215, 150, 0.25);
    box-shadow: 0 25px 45px -12px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
}

.canvas-card {
    width: 100%;
    padding: 1.8rem;
    display: flex;
    flex-direction: column;
}

.canvas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.2rem;
    flex-wrap: wrap;
    gap: 10px;
}

.canvas-header h3 {
    font-weight: 700;
    color: #FDE68A;
    font-size: 1.2rem;
}

.btn-download {
    background: #1E293B;
    border: 1px solid #F59E0B80;
    padding: 0.5rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    color: #FFEDD5;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-download:hover {
    background: #F59E0B;
    color: #0A0F1A;
}

.btn-upload {
    width: 100%;
    background: #2d2d44;
    border: 1px solid #F59E0B80;
    padding: 0.7rem;
    border-radius: 2rem;
    font-weight: 600;
    color: #FCD34D;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 1rem;
}

.btn-upload:hover {
    background: #F59E0B20;
    border-color: #F59E0B;
}

.canvas-wrapper {
    display: flex;
    justify-content: center;
    border-radius: 2rem;
}

canvas {
    background: #FEF9F0;
    border-radius: 2rem;
    box-shadow: 0 25px 40px -12px black;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

footer {
    font-size: 0.7rem;
    text-align: center;
    color: #6B7280;
    margin-top: 1rem;
}

.upload-loading {
    background: rgba(79, 172, 254, 0.15);
    border-radius: 40px;
    padding: 12px;
    margin-top: 10px;
    text-align: center;
}

.upload-loading i {
    font-size: 20px;
    color: #4facfe;
    margin-right: 8px;
    animation: spin 1s linear infinite;
}

.upload-loading p {
    color: white;
    font-size: 12px;
    display: inline;
}

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

.success-box {
    background: rgba(40, 167, 69, 0.15);
    border-radius: 40px;
    padding: 12px;
    margin-bottom: 12px;
    text-align: center;
    margin-top: 10px;
}

.success-box i {
    font-size: 20px;
    color: #28a745;
    margin-right: 8px;
}

.success-box p {
    color: #28a745;
    font-size: 13px;
    font-weight: 500;
    display: inline;
}

.btn-wa {
    width: 100%;
    background: #25D366;
    border: none;
    padding: 12px;
    border-radius: 40px;
    color: white;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.btn-wa:hover {
    opacity: 0.85;
    transform: scale(0.98);
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loading-content {
    text-align: center;
    color: white;
}

.loading-content i {
    font-size: 40px;
    color: #4facfe;
    margin-bottom: 12px;
    animation: spin 1s linear infinite;
}

.loading-content p {
    font-size: 14px;
}

.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 40px;
    color: white;
    font-weight: 500;
    z-index: 1002;
    animation: slideIn 0.3s ease;
}

.notification.success {
    background: #28a745;
}

.notification.error {
    background: #dc3545;
}

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

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

@media (max-width: 860px) {
    body { padding: 1rem; }
    .canvas-card { min-width: auto; }
}