/* =========================
   GLOBAL THEME VARIABLES
========================= */
:root {
    --primary: #0d6efd;     /* Biru utama */
    --primary-dark: #0b5ed7;
    --secondary: #fd7e14;   /* Oranye aksen */
    --success: #198754;
    --danger: #dc3545;
    --warning: #ffc107;

    --bg: #f4f6f8;
    --card: #ffffff;
    --border: #e0e0e0;
    --text: #333333;
    --muted: #6c757d;
}

/* =========================
   RESET & BASE
========================= */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
}

h1, h2, h3, h4 {
    margin-top: 0;
    color: var(--primary);
}

p {
    margin: 0 0 10px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    opacity: 0.85;
}

/* =========================
   LAYOUT
========================= */
.container {
    max-width: 1100px;
    margin: 30px auto;
    padding: 0 15px;
}

/* =========================
   HEADER
========================= */
.header {
    background: linear-gradient(
        90deg,
        var(--primary),
        var(--primary-dark)
    );
    color: #fff;
    padding: 15px 25px;
    border-bottom: 4px solid var(--secondary);
}

.header h1 {
    color: #fff;
    font-size: 20px;
}

/* =========================
   CARD
========================= */
.card {
    background: var(--card);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    border: 1px solid var(--border);
}

.card h2,
.card h3 {
    margin-bottom: 15px;
}

.card h2, 
.card h3 {
    color: var(--primary);
}

label {
    color: #555;
}



/* =========================
   PROFILE
========================= */
.profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
}

/* =========================
   FORM
========================= */
form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #555;
}

form input,
form select,
form textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 5px;
    border: 1px solid var(--border);
    margin-bottom: 15px;
    font-size: 14px;
}

form input:focus,
form select:focus,
form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(13,110,253,.15);
}

/* =========================
   BUTTON
========================= */
.btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
}

.btn-primary {
    background: var(--blue);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--blue-dark);
}

.btn-warning {
    background: var(--orange);
    color: var(--white);
}

.btn-warning:hover {
    background: var(--orange-dark);
}

.btn-danger {
    color: #ffffff;
    background-color: #dc3545;
}

.btn-warning {
    background-color: #f0ad4e;
}

.btn-secondary {
    background-color: #6c757d;
}

.btn-info {
    background-color: #17a2b8;
}

.btn-success {
    background-color: #28a745;
}
.btn {
    color: #fff;
    text-decoration: none;
}

.btn:hover {
    color: #fff;
}
/* =========================
   TABLE
========================= */
table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}

th, td {
    padding: 12px 10px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}

th {
    background: #f1f3f5;
    font-weight: 700;
}

tr:hover td {
    background: #fafafa;
}

/* =========================
   BADGE / STATUS
========================= */
.badge {
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    color: #fff;
}

.badge.primary { background: var(--primary); }
.badge.secondary { background: var(--secondary); }
.badge.success { background: var(--success); }
.badge.danger { background: var(--danger); }

/* =========================
   ALERT
========================= */
.alert {
    padding: 12px 15px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-size: 14px;
}

.alert.success {
    background: #d1e7dd;
    color: #0f5132;
}

.alert.danger {
    background: #f8d7da;
    color: #842029;
}

/* =========================
   LOGIN PAGE
========================= */
.login-box {
    max-width: 380px;
    margin: 80px auto;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0,0,0,.1);
    border-top: 5px solid var(--secondary);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 20px;
}

/* =========================
   FOOTER
========================= */
.footer {
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    margin-top: 40px;
}



.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

.password-wrapper {
    position: relative;
}

.password-wrapper input {
    padding-right: 40px;
}

.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    user-select: none;
    font-size: 16px;
    color: #666;
}

.toggle-password:hover {
    color: #0d6efd; /* biru tema */
}
.input-icon {
    position: relative;
}

.input-icon input {
    padding-right: 42px; /* ruang untuk icon */
}

.icon-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 16px;
    color: #6c757d;
    user-select: none;
}

.icon-right:hover {
    color: #0d6efd; /* biru theme */
}

.card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.card h3 {
    margin-top: 0;
}

.card a {
    display: inline-block;
    margin-top: 10px;
    color: #2563eb;
    text-decoration: none;
    font-weight: bold;
}
