/* =====================================
   General
===================================== */

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f5f7;
    color: #222;
}

/* =====================================
   Header
===================================== */

.top-header {
    background: white;
    border-bottom: 1px solid #ddd;
    padding: 15px 30px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 20px;
}

.brand-logo img {
    height: 70px;
    width: auto;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #000;
}

.tagline {
    color: #666;
    font-size: 14px;
    margin-top: 5px;
}

.user-bar {
    margin-top: 10px;
    font-size: 14px;
    color: #555;
}

.user-bar a {
    color: #7413dc;
    text-decoration: none;
    font-weight: bold;
}

/* =====================================
   Navigation
===================================== */

nav {
    background: #7413dc;
}

nav ul {
    margin: 0;
    padding: 0 30px;
    list-style: none;
    display: flex;
}

nav li {
    margin: 0;
}

nav a {
    display: block;
    color: white;
    text-decoration: none;
    padding: 16px 20px;
    font-weight: bold;
}

nav a:hover {
    background: #5b0fb0;
}

/* =====================================
   Main Layout
===================================== */

.container {
    max-width: 1400px;
    margin: auto;
    padding: 25px;
}

/* =====================================
   Cards
===================================== */

.card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h1,
.card h2,
.card h3 {
    margin-top: 0;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

/* =====================================
   Dashboard Statistics
===================================== */

.stat-card {
    background: white;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.stat-card h3 {
    margin-top: 0;
    color: #7413dc;
}

.stat-card .number {
    font-size: 36px;
    font-weight: bold;
    margin-top: 10px;
}

/* =====================================
   Tables
===================================== */

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: #7413dc;
    color: white;
    text-align: left;
}

th,
td {
    padding: 12px;
    border-bottom: 1px solid #ddd;
}

tr:hover {
    background: #f8f8f8;
}

/* =====================================
   Forms
===================================== */

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type=text],
input[type=password],
input[type=date],
input[type=number],
select,
textarea {
    width: 100%;
    max-width: 500px;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

textarea {
    min-height: 100px;
}

/* =====================================
   Currency Fields
===================================== */

.money-input {
    display: flex;
    align-items: stretch;
    max-width: 500px;
}

.money-input span {
    padding: 10px 12px;
    background: #eee;
    border: 1px solid #ccc;
    border-right: none;
    border-radius: 6px 0 0 6px;
    font-weight: bold;
}

.money-input input {
    border-radius: 0 6px 6px 0;
}

/* =====================================
   Buttons
===================================== */

.button,
.quick-button {
    background: #7413dc;
    color: white;
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 6px;
    display: inline-block;
    font-weight: bold;
    border: none;
    cursor: pointer;
    margin-right: 5px;
    font-size: 14px;
}

.button:hover,
.quick-button:hover {
    background: #5b0fb0;
}

.archive-button {
    background: #c62828;
}

.archive-button:hover {
    background: #a61f1f;
}

/* =====================================
   Footer
===================================== */

.footer {
    text-align: center;
    padding: 30px;
    color: #777;
}