/* assets/css/style.css */

/* --- General & Theme --- */
body {
    background-color: #F5F5DC; /* A nice parchment color */
    color: #4A2C2A; /* Dark brown, like dried ink */
    font-family: 'Georgia', serif;
    margin: 0;
    line-height: 1.6;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

a {
    color: #0047AB; /* A deep lapis-like blue */
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* --- Header & Footer --- */
header {
    background-color: #003366; /* A darker Lapis Lazuli */
    color: #F5F5DC; /* Parchment text on the blue header */
    padding: 1rem 0;
    border-bottom: 5px solid #DAA520; /* Gold accent */
}

header h1 {
    margin: 0;
    font-family: 'Trajan Pro', 'Georgia', serif; /* A more epic font if available */
}

header h1 a {
    color: #F5F5DC;
    text-decoration: none;
}

footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    font-size: 0.9em;
    color: #6c584c;
}

/* --- Forms & Buttons --- */
input[type="text"], input[type="number"], input[type="file"], select, textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #c9bcae;
    background-color: #fffef7;
    box-sizing: border-box;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #0047AB;
    color: #FFFFFF;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
}

.btn:hover {
    background-color: #003366;
}

.btn-delete {
    background-color: #990000;
}
.btn-delete:hover {
    background-color: #660000;
}
.btn-secondary {
    background-color: #6c757d;
}
.btn-secondary:hover {
    background-color: #5a6268;
}

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

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

th {
    background-color: #e3d9c6; /* A slightly darker parchment for headers */
}

tbody tr:nth-child(even) {
    background-color: #faf5eb;
}

/* --- Dashboard Module Cards --- */
.module-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.module-card {
    background-color: #fffef7;
    border: 1px solid #dcd1bb;
    border-radius: 5px;
    padding: 20px;
    flex: 1 1 300px; /* Flexbox magic for responsive columns */
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.module-card h3 {
    margin-top: 0;
    color: #003366;
    border-bottom: 2px solid #DAA520;
    padding-bottom: 10px;
}

.module-card .record-count {
    font-size: 0.9em;
    color: #6c584c;
    margin-bottom: 15px;
}

/* --- Print Styles --- */
@media print {
    body {
        background-color: #FFFFFF;
        color: #000000;
        font-size: 12pt;
    }
    header, footer, .btn, .no-print, nav {
        display: none !important;
    }
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }
    .printable-section {
        page-break-after: always;
    }
	.print-item {
        margin-bottom: 2rem; /* Add some space between spells */
    }
    h1, h2, h3 {
        color: #000;
    }
}