* { box-sizing: border-box; margin: 0; padding: 0; }
body {
    font-family: Arial, sans-serif;
    background: #f0f2f5;
    min-height: 100vh;
}
.app-container { max-width: 1200px; margin: 0 auto; padding: 20px; }
.card {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    max-width: 400px;
    margin: 40px auto;
}
.tabs { display: flex; margin-bottom: 20px; }
.tabs button {
    flex: 1;
    padding: 10px;
    border: none;
    background: #eee;
    cursor: pointer;
    font-size: 16px;
}
.tabs button.active { background: #0052cc; color: #fff; }
.form { display: none; }
.form.active { display: block; }
label { display: block; margin-top: 10px; font-weight: bold; }
input, select { width: 100%; padding: 10px; margin-top: 5px; border: 1px solid #ddd; border-radius: 6px; }
button[type="submit"], .btn {
    padding: 10px 20px;
    background: #0052cc;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-top: 10px;
}
button.danger { background: #cc0000; }
.error { color: red; margin-top: 10px; }
.hidden { display: none !important; }

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}
#user-name-display { font-weight: bold; }
#logout-btn { background: #ddd; color: #333; border: none; padding: 8px 16px; border-radius: 6px; cursor: pointer; }

.admin-layout { display: flex; gap: 20px; }
#sidebar { width: 200px; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
#sidebar ul { list-style: none; }
#sidebar li {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 6px;
    margin-bottom: 5px;
}
#sidebar li:hover { background: #e6f0ff; }
#sidebar li.active { background: #0052cc; color: white; }
#content { flex: 1; background: #fff; border-radius: 12px; padding: 20px; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
table { width: 100%; border-collapse: collapse; margin-top: 15px; }
th, td { padding: 10px; text-align: left; border-bottom: 1px solid #eee; }
th { background: #f5f5f5; }
.status-active { color: green; }
.status-blocked { color: red; }
.modal { display: none; position: fixed; top:0; left:0; width:100%; height:100%; background: rgba(0,0,0,0.5); justify-content: center; align-items: center; }
.modal-content { background: #fff; padding: 30px; border-radius: 12px; max-width: 500px; width: 100%; }
.close-btn { float: right; cursor: pointer; font-size: 20px; }