* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: #f8f9fa;
    color: #1f2937;
    line-height: 1.6;
}

.admin-container {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: 220px;
    background: #0f1419;
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    box-shadow: 4px 0 24px rgba(0,0,0,0.2);
    z-index: 1000;
}

.sidebar-header {
    padding: 20px 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: white;
    object-fit: cover;
}

.logo-text {
    font-size: 18px;
    font-weight: 600;
    color: white;
}

.sidebar-nav {
    padding: 12px 0;
}

.sidebar-nav ul {
    list-style: none;
}

.sidebar-nav li {
    margin: 3px 10px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    color: #8b92a7;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.sidebar-nav a:hover {
    background: rgba(255,255,255,0.05);
    color: #ffffff;
}

.sidebar-nav a.active {
    background: #2563eb;
    color: white;
}

.sidebar-nav .icon {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Main Content */
.main-content {
    margin-left: 220px;
    flex: 1;
    padding: 40px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    font-size: 32px;
    color: #1f2937;
    margin-bottom: 8px;
    font-weight: 700;
}

.page-header p {
    color: #6b7280;
    font-size: 16px;
}

.content-card {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .logo-text {
        display: none;
    }
    
    .sidebar-nav span {
        display: none;
    }
    
    .main-content {
        margin-left: 70px;
    }
}

/* Page Header */
.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-primary {
    background: #7c3aed;
    color: white;
}

.btn-primary:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

.btn-secondary {
    background: white;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-2px);
}

.btn-success {
    background: #7c3aed;
    color: white;
}

.btn-success:hover {
    background: #6d28d9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.4);
}

/* Projects Grid */
.projects-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

@media (max-width: 1600px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1200px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }
}

.project-card {
    background: white;
    border: none;
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

.project-card:hover {
    box-shadow: 0 12px 40px rgba(0,0,0,0.15);
    transform: translateY(-4px);
}

.project-header {
    padding: 20px 24px;
    background: white;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 12px;
}

.project-favicon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    object-fit: cover;
    background: #f3f4f6;
    flex-shrink: 0;
}

.project-header h3 {
    margin: 0;
    font-size: 18px;
    color: #1f2937;
    font-weight: 600;
}

.project-body {
    padding: 0;
    display: none;
}

.project-footer {
    padding: 16px 24px;
    background: white;
    border-top: 1px solid #f3f4f6;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.project-footer form {
    display: contents;
}

.project-footer .btn {
    width: 100%;
    justify-content: center;
    font-size: 13px;
    padding: 10px 16px;
    box-sizing: border-box;
    display: flex;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 20px;
}

.empty-state svg {
    color: #e5e7eb;
    margin-bottom: 24px;
    opacity: 0.5;
}

.empty-state h3 {
    margin: 0 0 12px;
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
}

.empty-state p {
    margin: 0 0 32px;
    color: #6b7280;
    font-size: 16px;
}

/* Form Styles */
.form {
    max-width: 900px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 0;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1f2937;
    font-size: 13px;
}

.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s ease;
    background: white;
}

.form-control:focus {
    outline: none;
    border-color: #7c3aed;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

@media (max-width: 768px) {
    .form-grid {
        grid-template-columns: 1fr;
    }
}

.form-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Badge */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    background: #f3f4f6;
    color: #6b7280;
}

.badge-success {
    background: #d1fae5;
    color: #065f46;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-card {
    animation: fadeIn 0.5s ease forwards;
}

.project-card:nth-child(1) { animation-delay: 0.1s; }
.project-card:nth-child(2) { animation-delay: 0.2s; }
.project-card:nth-child(3) { animation-delay: 0.3s; }
.project-card:nth-child(4) { animation-delay: 0.4s; }
.project-card:nth-child(5) { animation-delay: 0.5s; }
.project-card:nth-child(6) { animation-delay: 0.6s; }

/* Alerts */
.alert {
    padding: 18px 20px;
    border-radius: 12px;
    margin-bottom: 28px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background: #fef2f2;
    color: #991b1b;
    border: 2px solid #fecaca;
}

.alert-error::before {
    content: "⚠️";
    font-size: 20px;
}

.alert-success {
    background: #f0fdf4;
    color: #166534;
    border: 2px solid #bbf7d0;
}

.alert-success::before {
    content: "✓";
    font-size: 20px;
    font-weight: bold;
}
