/* Ozerland MIS Styles */

:root {
    --primary-blue: #1d70b8;
    --dark-blue: #003078;
    --light-grey: #f3f2f1;
    --mid-grey: #b1b4b6;
    --dark-grey: #505a5f;
    --success-green: #00703c;
    --error-red: #d4351c;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "HelveticaNeue", "Helvetica Neue", "Arial", "Helvetica", sans-serif;
    font-size: 19px;
    line-height: 1.5;
    color: #0b0c0c;
    background-color: #fff;
}

/* Header */
.header {
    background-color: var(--dark-blue);
    color: white;
    padding: 10px 0;
    border-bottom: 10px solid var(--primary-blue);
}

.header__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.header__title {
    font-size: 28px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

/* Navigation */
.nav {
    background-color: var(--light-grey);
    border-bottom: 1px solid var(--mid-grey);
}

.nav__list {
    list-style: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    gap: 20px;
}

.nav__item a {
    display: block;
    padding: 15px 0;
    color: var(--dark-blue);
    text-decoration: none;
    font-weight: 600;
}

.nav__item a:hover {
    text-decoration: underline;
}

/* Main container */
.width-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 15px;
}

/* Typography */
.heading-xl {
    font-size: 48px;
    line-height: 1.1;
    font-weight: bold;
    margin-bottom: 30px;
}

.heading-l {
    font-size: 36px;
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 20px;
}

.heading-m {
    font-size: 24px;
    line-height: 1.3;
    font-weight: bold;
    margin-bottom: 15px;
}

.heading-s {
    font-size: 19px;
    line-height: 1.3;
    font-weight: bold;
    margin-bottom: 10px;
}

.body-text {
    font-size: 19px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Tables */
.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.table__header {
    font-weight: bold;
    text-align: left;
    padding: 10px 20px 10px 0;
    border-bottom: 1px solid var(--dark-grey);
}

.table__cell {
    padding: 10px 20px 10px 0;
    border-bottom: 1px solid var(--mid-grey);
}

.table__row:hover {
    background-color: var(--light-grey);
}

/* Summary list (for company details) */
.summary-list {
    margin-bottom: 30px;
}

.summary-list__row {
    border-bottom: 1px solid var(--mid-grey);
    display: flex;
    padding: 10px 0;
}

.summary-list__key {
    font-weight: bold;
    width: 30%;
    padding-right: 20px;
}

.summary-list__value {
    width: 70%;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

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

.form-input,
.form-select {
    font-size: 19px;
    padding: 8px;
    border: 2px solid var(--dark-grey);
    width: 100%;
    max-width: 400px;
}

.form-input:focus,
.form-select:focus {
    outline: 3px solid var(--primary-blue);
    border-color: var(--dark-grey);
}

.form-error {
    color: var(--error-red);
    font-size: 16px;
    margin-top: 5px;
}

/* Buttons */
.button {
    font-size: 19px;
    font-weight: 400;
    padding: 12px 20px;
    background-color: var(--success-green);
    color: white;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    margin-bottom: 20px;
}

.button:hover {
    background-color: #005a30;
}

.button--secondary {
    background-color: var(--mid-grey);
}

.button--secondary:hover {
    background-color: var(--dark-grey);
}

/* Cards (for dashboard) */
.card {
    background-color: var(--light-grey);
    padding: 20px;
    margin-bottom: 20px;
    border-left: 5px solid var(--primary-blue);
}

.card__title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.card__number {
    font-size: 48px;
    font-weight: bold;
    color: var(--primary-blue);
}

/* Flash messages */
.notification {
    padding: 15px;
    margin-bottom: 20px;
    border-left: 5px solid;
}

.notification--success {
    background-color: #d5e8d4;
    border-color: var(--success-green);
}

.notification--error {
    background-color: #f8d7da;
    border-color: var(--error-red);
}

/* Links */
a {
    color: var(--primary-blue);
    text-decoration: underline;
}

a:hover {
    color: var(--dark-blue);
}

/* Badge for company type */
.tag {
    display: inline-block;
    padding: 5px 10px;
    font-size: 14px;
    font-weight: bold;
    background-color: var(--primary-blue);
    color: white;
    text-transform: uppercase;
}

.tag--government {
    background-color: var(--dark-blue);
}

.tag--ltd {
    background-color: var(--success-green);
}

.tag--llp {
    background-color: #f47738;
}

/* Grid system */
.grid-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.grid-column-full {
    width: 100%;
    padding: 0 15px;
}

.grid-column-two-thirds {
    width: 66.66%;
    padding: 0 15px;
}

.grid-column-one-third {
    width: 33.33%;
    padding: 0 15px;
}

.grid-column-one-half {
    width: 50%;
    padding: 0 15px;
}

/* Login page specific */
.login-container {
    max-width: 400px;
    margin: 50px auto;
    padding: 30px;
    background-color: var(--light-grey);
    border-radius: 5px;
}

@media (max-width: 768px) {
    .grid-column-two-thirds,
    .grid-column-one-third,
    .grid-column-one-half {
        width: 100%;
    }
}
