* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f7fa;
    color: #333;
}

/* LOGIN SCREEN */
#login-screen {
    display: none;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #1e293b, #0f172a);
}

#login-screen.active {
    display: flex;
}

.login-box {
    background: #fff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    text-align: center;
    width: 100%;
    max-width: 400px;
}

.login-box .logo {
    font-size: 24px;
    font-weight: bold;
    color: #e50914;
    margin-bottom: 20px;
}

.login-box h2 { margin-bottom: 10px; color: #1e293b; }
.login-box p { color: #64748b; margin-bottom: 20px; }
.login-box input {
    width: 100%; padding: 12px; margin-bottom: 15px;
    border: 1px solid #cbd5e1; border-radius: 5px;
}
.login-box button {
    width: 100%; padding: 12px;
    background: #e50914; color: white; border: none;
    border-radius: 5px; font-weight: bold; cursor: pointer;
    transition: 0.3s;
}
.login-box button:hover { background: #b0070f; }
.error-msg { color: #e50914; margin-top: 15px; display: none; font-size: 14px; }

/* ADMIN PANEL LAYOUT */
#admin-panel {
    display: none;
    height: 100vh;
}
#admin-panel.active { display: flex; }

/* SIDEBAR */
.sidebar {
    width: 250px;
    background: #1e293b;
    color: white;
    display: flex;
    flex-direction: column;
}
.sidebar .logo {
    padding: 20px;
    font-size: 20px;
    font-weight: bold;
    text-align: center;
    background: #0f172a;
    color: #e50914;
}
.sidebar .menu {
    list-style: none;
    flex: 1;
}
.sidebar .menu li {
    padding: 15px 20px;
    cursor: pointer;
    border-left: 4px solid transparent;
    transition: 0.2s;
}
.sidebar .menu li:hover { background: #334155; }
.sidebar .menu li.active {
    background: #334155;
    border-left-color: #e50914;
}
.sidebar .menu li i { margin-right: 10px; width: 20px; text-align: center; }
.logout-btn {
    padding: 15px;
    background: #dc2626;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 16px;
    text-align: left;
}
.logout-btn:hover { background: #b91c1c; }

/* MAIN CONTENT */
.content {
    flex: 1;
    padding: 30px;
    overflow-y: auto;
}
.tab-content { display: none; }
.tab-content.active { display: block; animation: fadeIn 0.3s ease; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

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

/* BUTTONS */
.btn-primary {
    padding: 10px 20px; background: #e50914; color: white;
    border: none; border-radius: 5px; cursor: pointer; transition: 0.2s;
}
.btn-primary:hover { background: #b0070f; }
.btn-secondary {
    padding: 10px 20px; background: #64748b; color: white;
    border: none; border-radius: 5px; cursor: pointer;
}
.btn-secondary:hover { background: #475569; }

/* TABLES */
.table-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    overflow: hidden;
}
table {
    width: 100%;
    border-collapse: collapse;
}
table th, table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #f1f5f9;
}
table th { background: #f8fafc; font-weight: 600; color: #475569; }
table tr:hover { background: #f8fafc; }
table img { border-radius: 5px; object-fit: cover; }

/* DASHBOARD CARDS */
.dashboard-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 20px;
}
.card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}
.card i {
    font-size: 30px;
    color: #e50914;
    background: #ffe6e6;
    padding: 15px;
    border-radius: 50%;
    margin-right: 15px;
}
.card-info h3 { font-size: 14px; color: #64748b; margin-bottom: 5px; }
.card-info p { font-size: 24px; font-weight: bold; color: #1e293b; }

/* STATUS BADGES */
.badge { padding: 5px 10px; border-radius: 12px; font-size: 12px; font-weight: bold; }
.badge.pending { background: #fef08a; color: #854d0e; }
.badge.shipped { background: #bfdbfe; color: #1e3a8a; }
.badge.completed { background: #bbf7d0; color: #166534; }

/* FORMS */
.settings-form {
    background: white; padding: 20px; border-radius: 8px; max-width: 600px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05); margin-top: 20px;
}
.form-group { margin-bottom: 15px; }
.form-group label { display: block; margin-bottom: 5px; font-weight: bold; color: #475569; }
.form-group input, .form-group textarea, .form-group select {
    width: 100%; padding: 10px; border: 1px solid #cbd5e1; border-radius: 5px;
}

/* MODALS */
.modal {
    display: none; position: fixed; z-index: 1000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(0,0,0,0.5);
    justify-content: center; align-items: center;
}
.modal-content {
    background-color: white; padding: 25px; border-radius: 8px;
    width: 90%; max-width: 500px; max-height: 90vh; overflow-y: auto;
    position: relative;
}
.close { position: absolute; right: 20px; top: 15px; font-size: 24px; cursor: pointer; color: #64748b; }
.close:hover { color: #000; }

/* ACTION BUTTONS */
.action-btn { background: none; border: none; cursor: pointer; font-size: 16px; margin-right: 10px; }
.edit-btn { color: #3b82f6; }
.del-btn { color: #ef4444; }
