/* General Body and Container Styles */
body { 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; 
    background-color: #f4f7f6; 
    color: #333; 
    margin: 0;
}

/* This container is for the main warranty pages */
.container { 
    background-color: #fff; 
    padding: 25px; 
    border-radius: 8px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
    margin: 20px;
}

h1, h2 { 
    color: #2c3e50; 
}

hr { 
    border: 0; 
    height: 1px; 
    background-color: #ccc; 
    margin: 30px 0; 
}

/* Header Styles (for main app) */
.site-header {
    background-color: #fff;
    padding: 10px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px solid #e9ecef;
}

.logo {
    height: 50px;
    width: auto;
    display: block;
}

.main-nav ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 20px;
}

.main-nav a {
    text-decoration: none;
    color: #34495e;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.main-nav a:hover {
    background-color: #e9ecef;
    color: #2c3e50;
}


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

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

th { 
    background-color: #34495e; 
    color: #fff; 
    text-transform: uppercase; 
    font-size: 12px; 
}

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

tr:hover { 
    background-color: #e9ecef; 
}

.check-mark { 
    color: #2ecc71; 
    font-size: 1.2em; 
    text-align: center; 
}

.no-wrap { 
    white-space: nowrap; 
}

/* Form & Button Styles */
.btn { 
    padding: 10px 15px; 
    border: none; 
    border-radius: 4px; 
    color: white; 
    cursor: pointer; 
    text-decoration: none; 
    display: inline-block; 
    font-size: 14px; 
    white-space: nowrap; 
}

.btn-edit, .btn-new { 
    background-color: #3498db; 
}

.btn-save { 
    background-color: #2ecc71; 
    font-size: 16px; 
}

.btn-view { 
    background-color: #95a5a6; 
    margin-right: 10px; 
}

.btn-clear { 
    background-color: #e74c3c; 
}

.form-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); 
    gap: 20px; 
}

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

.form-group-full { 
    grid-column: 1 / -1; 
}

label { 
    margin-bottom: 5px; 
    font-weight: bold; 
    font-size: 14px; 
    color: #555; 
}

input[type="text"], 
input[type="date"], 
input[type="email"], 
input[type="number"], 
select, 
textarea {
    padding: 10px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    font-size: 14px;
}

input[type="file"] { 
    padding: 5px; 
}

textarea { 
    resize: vertical; 
    min-height: 100px; 
}

.radio-group label { 
    margin-right: 15px; 
    font-weight: normal; 
}

.file-list { 
    list-style-type: none; 
    padding-left: 0; 
}

.file-list li { 
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
}

/* Header Toolbar (for main app) */
.toolbar { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    margin-bottom: 20px; 
}

.search-box { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

/* Login/Register Page Styles */
.split-container {
    display: flex;
    height: 100vh;
}

.split-left {
    flex: 0 0 50%; /* Changed: Logo column takes up 30% of the width */
    background-color: #f0f4f8;
    display: flex;
    justify-content: flex-end; /* Changed */
    align-items: center;
}

.split-left .logo {
    max-width: 50%;
    height: auto;
    margin-right: 40px; /* Added margin for spacing */
}

.split-right {
    flex: 1; /* Changed: Form column takes up the remaining space */
    display: flex;
    justify-content: flex-start; /* Changed */
    align-items: center;
}

.form-container { 
    width: 350px;
    padding: 2rem;
    margin-left: 40px; /* Added margin for spacing */
}

.form-container h2 { 
    text-align: center; 
    margin-top: 0;
}

.form-container .form-group { 
    margin-bottom: 1rem; 
}

.form-container input { 
    width: 100%; 
    padding: 8px; 
    box-sizing: border-box; 
}

.form-container button { 
    width: 100%; 
    padding: 10px; 
    color: white; 
    border: none; 
    border-radius: 4px; 
    cursor: pointer; 
}

.form-container .message, 
.form-container .error, 
.form-container .register-link {
    text-align: center; 
    margin-top: 1rem;
}

.form-container .error {
    color: #e74c3c;
}

.form-container .register-link {
    font-size: 0.9em;
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px; /* Add some space between nav and user actions */
}
.main-nav {
    flex-grow: 1; /* Allow the nav to take up available space */
}
.user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap; /* Prevent wrapping */
}
.welcome-message {
    font-weight: bold;
    color: #555;
}