/* ------------------------------
   GLOBAL STYLES
------------------------------ */
body {
    background: #0d1117;
    color: #e6edf3;
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

input, button {
    padding: 10px;
    margin: 8px 0;
    border-radius: 6px;
    border: none;
    font-size: 16px;
}

input {
    width: 100%;
    background: #ffffff;
    color: #000;
}

button {
    background: #238636;
    color: white;
    cursor: pointer;
    transition: 0.2s;
}

button:hover {
    background: #2ea043;
}

/* ------------------------------
   LOGIN SCREEN
------------------------------ */
.centered {
    width: 350px;
    margin: 120px auto;
    text-align: center;
    padding: 25px;
    background: #161b22;
    border-radius: 10px;
    box-shadow: 0 0 12px #000;
}

#login-error {
    color: #ff6b6b;
    font-size: 14px;
}

/* ------------------------------
   HEADER BAR
------------------------------ */
header {
    background: #161b22;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

header h1 {
    margin: 0;
    font-size: 26px;
}

/* Logout button (fixed) */
.logout-btn {
    background: #da3633;
    padding: 8px 18px;
    border-radius: 6px;
    width: auto;
    font-size: 15px;
}

.logout-btn:hover {
    background: #f85149;
}

/* ------------------------------
   SECTIONS / CARDS
------------------------------ */
section {
    margin: 20px;
    background: #161b22;
    padding: 20px;
    border-radius: 10px;
}

h2, h3 {
    margin-top: 0;
}

/* ------------------------------
   PROFILED LOAN BOXES
------------------------------ */
.loan-item {
    background: #21262d;
    padding: 15px;
    margin: 12px 0;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.loan-item:hover {
    background: #30363d;
}

/* ------------------------------
   TABLE
------------------------------ */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th, td {
    border-bottom: 1px solid #30363d;
    padding: 10px;
    text-align: left;
    font-size: 16px;
}

th {
    background: #21262d;
}

/* ------------------------------
   BACK BUTTON
------------------------------ */
.back-btn {
    margin-top: 20px;
    background: #444c56;
}

.back-btn:hover {
    background: #586069;
}
