/* Reset and Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f5f5f5;
    color: #444;
    font-size: 14px;
    line-height: 1.5;
}

/* Main Container */
.site-wrapper {
    max-width: 1400px;
    width: 95%;
    margin: 20px auto;
    background-color: #fff;
    min-height: 800px;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Header */
.site-header {
    display: flex;
    align-items: center;
    padding: 40px 20px 20px 20px;
}

.header-line {
    flex-grow: 1;
    height: 1px;
    background-color: #999;
    margin-right: 20px;
}

.header-logo {
    font-size: 48px;
    font-weight: bold;
    color: #666;
    letter-spacing: 2px;
}

/* 3-Column Layout */
.site-content {
    display: flex;
    flex-grow: 1;
    min-height: 600px;
}

/* Sidebars */
.sidebar-left,
.sidebar-right {
    flex: 0 0 250px;
    background-color: #777; /* Dark Grey */
}

/* Navigation Menu */
.main-nav {
    margin-top: 40px;
    margin-left: 20px;
    margin-right: 20px;
}

.main-nav a {
    display: block;
    color: #fff;
    text-decoration: none;
    padding: 8px 12px;
    border-bottom: 1px solid #fff;
    font-size: 14px;
}

.main-nav a:first-child {
    border-top: 1px solid #fff;
}

.main-nav a.active {
    background-color: #555; /* Slightly darker to indicate active state */
}

.main-nav a:hover {
    background-color: #888;
}

/* Center Content Area */
.center-column {
    flex: 1;
    padding: 40px;
    background-color: #fff;
    position: relative; /* For corner crop marks */
}

/* Corner Crop Marks (like in the wireframe) */
.center-column::before {
    content: "";
    position: absolute;
    bottom: 40px;
    left: 40px;
    width: 20px;
    height: 20px;
    border-left: 1px solid #666;
    border-bottom: 1px solid #666;
}
.center-column::after {
    content: "";
    position: absolute;
    bottom: 40px;
    right: 40px;
    width: 20px;
    height: 20px;
    border-right: 1px solid #666;
    border-bottom: 1px solid #666;
}

/* Typography in Center Column */
.center-column h1 {
    font-size: 28px;
    font-weight: bold;
    color: #666;
    margin-bottom: 20px;
}

.center-column p {
    margin-bottom: 15px;
    color: #666;
    text-align: justify;
}

/* Image Wrap */
.content-image-right {
    float: right;
    margin-left: 20px;
    margin-bottom: 10px;
    max-width: 250px;
    border: 1px solid #ccc;
}

/* Forms (Screen 1 style) */
.wireframe-form {
    border: 1px solid #ccc;
    padding: 15px;
    margin-bottom: 30px;
    position: relative;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 12px;
    font-weight: bold;
    color: #666;
    margin-bottom: 5px;
}

.form-group input,
.form-group select {
    border: 1px solid #999;
    padding: 4px 8px;
    font-size: 12px;
    color: #333;
}

.form-group.date-group {
    /* Container for TT/MM */
}

.form-group.date-group input {
    width: 40px; /* Short inputs for DD and MM */
}

.form-group.title-group input {
    width: 200px;
}

.form-actions {
    text-align: right;
    margin-top: 10px;
}

.btn-text {
    background: none;
    border: none;
    color: #666;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
    text-transform: uppercase;
}

.btn-text:hover {
    text-decoration: underline;
}

/* Tables (Screen 1 style) */
.wireframe-table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #ccc;
}

.wireframe-table th,
.wireframe-table td {
    padding: 10px;
    text-align: left;
    font-size: 12px;
    color: #666;
}

.wireframe-table th {
    font-weight: bold;
}

.wireframe-table tr {
    border-bottom: 1px solid #eee;
}

.wireframe-table tr:last-child {
    border-bottom: none;
}

.action-links a {
    color: #666;
    text-decoration: none;
    font-size: 12px;
}

.action-links a:hover {
    text-decoration: underline;
}

/* Utilities */
.hidden { display: none !important; }
.text-center { text-align: center; }

/* System Toasts */
#toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}
.toast {
    background: #333;
    color: #fff;
    padding: 10px 20px;
    margin-top: 10px;
    border: 1px solid #000;
    font-size: 12px;
    display: none;
}
.toast.show {
    display: block;
}
