* { margin:0; padding:0; box-sizing:border-box; }
body { font-family: Segoe UI, Tahoma, sans-serif; background:#f0f2f5; color:#333; }

.header { background:linear-gradient(135deg,#1a237e,#283593); color:#fff; padding:12px 30px;
    box-shadow:0 2px 10px rgba(0,0,0,.3); display:flex; justify-content:space-between; align-items:center; }
.header h1 { font-size:22px; font-weight:600; }
.header .subtitle { font-size:12px; opacity:.8; }
.header-right { text-align:right; }
.user-info strong { font-size:14px; }
.role-badge { display:inline-block; background:rgba(255,255,255,.2); padding:2px 10px; border-radius:10px; font-size:11px; margin-left:8px; }
.btn-logout { margin-top:6px; display:inline-block; padding:5px 14px; background:rgba(255,255,255,.15); color:#fff;
    border-radius:4px; text-decoration:none; font-size:12px; border:1px solid rgba(255,255,255,.3); }
.btn-logout:hover { background:rgba(255,255,255,.3); }

.nav-bar { background:#263238; }
.nav-bar ul { list-style:none; display:flex; flex-wrap:wrap; }
.nav-bar ul li a { display:block; color:#eceff1; padding:12px 18px; text-decoration:none; font-size:13px; font-weight:500; }
.nav-bar ul li a:hover { background:#37474f; }

.main-content { padding:25px 30px; max-width:1400px; margin:0 auto; }
.page-title { font-size:20px; color:#1a237e; margin-bottom:20px; padding-bottom:10px; border-bottom:2px solid #1a237e; }

.form-panel { background:#fff; border-radius:8px; padding:25px; box-shadow:0 2px 8px rgba(0,0,0,.1); margin-bottom:20px; }
.form-panel h3 { color:#1a237e; margin-bottom:15px; font-size:16px; }

.form-row { display:flex; flex-wrap:wrap; gap:15px; margin-bottom:12px; }
.form-group { flex:1; min-width:180px; }
.form-group label { display:block; font-size:12px; font-weight:600; color:#555; margin-bottom:4px; text-transform:uppercase; }
.form-group input, .form-group select, .form-group textarea { width:100%; padding:8px 12px;
    border:1px solid #ddd; border-radius:4px; font-size:14px; font-family:inherit; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus { border-color:#1565c0; outline:none; }

.btn { padding:10px 24px; border:none; border-radius:4px; font-size:13px; font-weight:600; cursor:pointer;
    text-transform:uppercase; text-decoration:none; display:inline-block; }
.btn-primary { background:#1565c0; color:#fff; }
.btn-primary:hover { background:#0d47a1; }
.btn-info { background:#00838f; color:#fff; }
.btn-info:hover { background:#006064; }

.grid { width:100%; border-collapse:collapse; margin-top:15px; background:#fff; border-radius:8px; overflow:hidden; }
.grid th { background:#1a237e; color:#fff; padding:12px 15px; font-size:12px; text-transform:uppercase; text-align:left; }
.grid td { padding:10px 15px; border-bottom:1px solid #eee; font-size:13px; }
.grid tr:hover td { background:#e3f2fd; }
.grid tr:nth-child(even) td { background:#fafafa; }
.grid a { color:#1565c0; font-weight:600; text-decoration:none; }
.grid a:hover { text-decoration:underline; }

.pill { display:inline-block; padding:3px 10px; border-radius:10px; font-size:11px; font-weight:700; color:#fff; }
.pill-red { background:#c62828; }

.summary-cards { display:flex; flex-wrap:wrap; gap:14px; margin-bottom:20px; }
.summary-card { flex:1; min-width:170px; background:#fff; border-left:4px solid #1565c0; padding:14px 18px;
    border-radius:6px; box-shadow:0 1px 3px rgba(0,0,0,.08); }
.summary-card .card-value { font-size:22px; font-weight:700; color:#1a237e; }
.summary-card .card-label { font-size:12px; color:#666; margin-top:4px; }
.summary-card.red { border-left-color:#c62828; }
.summary-card.red .card-value { color:#c62828; }
.summary-card.green { border-left-color:#2e7d32; }
.summary-card.green .card-value { color:#2e7d32; }
.summary-card.purple { border-left-color:#7a4dff; }
.summary-card.purple .card-value { color:#7a4dff; }

.msg-success { background:#e8f5e9; color:#2e7d32; padding:12px 20px; border-left:4px solid #2e7d32; margin-bottom:15px; border-radius:4px; }
.msg-error   { background:#ffebee; color:#c62828; padding:12px 20px; border-left:4px solid #c62828; margin-bottom:15px; border-radius:4px; }
