/* public/assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: #0f0f1a;
    color: #e0e0e0;
}

#app {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 240px;
    background: #1a1a2e;
    padding: 20px 0;
    border-right: 1px solid #2a2a4a;
    height: 100vh;
    position: sticky;
    top: 0;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #2a2a4a;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 700;
    color: #6c63ff;
}

.logo i {
    font-size: 28px;
}

.sidebar-nav {
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    color: #a0a0b0;
    text-decoration: none;
    transition: 0.3s;
    cursor: pointer;
    border-left: 3px solid transparent;
}

.nav-item:hover {
    background: #16213e;
    color: #e0e0e0;
}

.nav-item.active {
    color: #6c63ff;
    border-left-color: #6c63ff;
    background: #16213e;
}

.nav-item i {
    width: 20px;
}

/* Main Content */
.main-content {
    flex: 1;
}

.topbar {
    background: #1a1a2e;
    padding: 16px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #2a2a4a;
}

.topbar-title h1 {
    font-size: 20px;
    font-weight: 600;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: #e0e0e0;
    font-size: 20px;
    cursor: pointer;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #a0a0b0;
}

.user-info i {
    font-size: 24px;
}

.content {
    padding: 30px;
}

/* Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: #16213e;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
}

.stat-label {
    color: #a0a0b0;
    font-size: 14px;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    margin-top: 8px;
}

.stat-value.success { color: #00c853; }
.stat-value.warning { color: #ffab00; }
.stat-value.danger { color: #ff1744; }
.stat-value.info { color: #6c63ff; }

/* Project Cards */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.project-card {
    background: #16213e;
    border-radius: 12px;
    border: 1px solid #2a2a4a;
    padding: 20px;
    transition: 0.3s;
}

.project-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.project-card-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.project-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: #6c63ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
}

.project-name {
    font-weight: 600;
    font-size: 16px;
}

.project-version {
    font-size: 12px;
    color: #a0a0b0;
}

.project-meta {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: #a0a0b0;
    margin-bottom: 12px;
}

.project-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.status-ready { background: #00c85320; color: #00c853; }
.status-error { background: #ff174420; color: #ff1744; }
.status-building { background: #ffab0020; color: #ffab00; }

.project-actions {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #2a2a4a;
}

/* Buttons */
.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary {
    background: #6c63ff;
    color: white;
}

.btn-primary:hover {
    background: #4a42c4;
}

.btn-success {
    background: #00c853;
    color: white;
}

.btn-success:hover {
    opacity: 0.9;
}

.btn-outline {
    background: transparent;
    border: 1px solid #2a2a4a;
    color: #a0a0b0;
}

.btn-outline:hover {
    background: #2a2a4a;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

/* Form */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 6px;
    color: #a0a0b0;
}

.form-control {
    width: 100%;
    padding: 10px 14px;
    background: #0f0f1a;
    border: 1px solid #2a2a4a;
    border-radius: 8px;
    color: #e0e0e0;
    font-size: 14px;
}

.form-control:focus {
    outline: none;
    border-color: #6c63ff;
}

.loading {
    text-align: center;
    padding: 40px;
    color: #a0a0b0;
}

/* Toast */
#toastContainer {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    padding: 14px 20px;
    border-radius: 12px;
    background: #1a1a2e;
    border: 1px solid #2a2a4a;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    animation: slideIn 0.3s ease;
}

.toast-success { border-left: 4px solid #00c853; }
.toast-error { border-left: 4px solid #ff1744; }

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

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal {
    background: #1a1a2e;
    border-radius: 12px;
    padding: 30px;
    max-width: 500px;
    width: 90%;
    border: 1px solid #2a2a4a;
}

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

.modal-close {
    background: none;
    border: none;
    color: #a0a0b0;
    font-size: 24px;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        transform: translateX(-100%);
        width: 280px;
        z-index: 1000;
        transition: 0.3s;
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .menu-toggle {
        display: block;
    }
    
    .topbar {
        padding: 12px 16px;
    }
    
    .content {
        padding: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }
}