/* Saint Lucia IFC Styles
 * Extracted from https://next-www.saintluciaifc.com/
 * This stylesheet contains the core styles for the Saint Lucia IFC website
 */

@font-face {
    font-family: "Roboto";
    src: url("/registry/assets/fonts/Roboto-VariableFont_wdth,wght.woff2") format("woff2");
    font-display: swap;
}

@font-face {
    font-family: "Oswald";
    src: url("/registry/assets/fonts/Oswald-VariableFont_wght.woff2") format("woff2");
    font-display: swap;
}

/* Reset and base styles */
:root {
    --primary-color: #101C3C;
    --secondary-color: #3f508c;
    --tertiary-color: #49B6C9;
    --text-color: #333333;
    --light-bg: #f5f5f5;
    --alt-bg: #eeeeee;
    --med-bg: #cccccc;
    --dark-bg: #333333;
    --white: #ffffff;
    --border-color: #dddddd;
    --success-color: #28a745;
    --error-color: #dc3545;
    --warning-color: #ffc107;
    --body-font-family: 'Roboto', Arial, sans-serif;
    --heading-font-family:  'Roboto', Arial, sans-serif;
    --nav-font-family: 'Oswald', 'Open Sans', 'Arial Narrow', Arial, sans-serif;
}

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

body {
    font-family: var(--body-font-family);
    color: var(--text-color);
    line-height: 1.4;
    background-color: var(--white);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--heading-font-family);
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 2rem;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.1rem;
}

h6 {
    font-size: 1rem;
}

h2.section, h3.section {
    background: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
    line-height: 1;
}

p {
    margin-bottom: 1rem;
}

p.note {
    font-size: 0.75rem;
}

ul, ol {
    padding: 0 0 0 0.5rem;
}

a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.1s ease;
}

a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* Layout */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.col {
    flex: 1;
    padding: 0 15px;
}

/* Header */
#site-header {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem 0 0.5rem;
    position: relative;

    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

#site-header .header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#site-header .logo {
    height: 30px;
    width: auto;
    object-fit: contain;
}

#site-header .header__nav {
    flex-direction: column;
    align-items: flex-end;
}

#site-header .header__nav .username {
    color: var(--tertiary-color);
    margin-bottom: 0.5rem;
}

#site-header .header__nav-list {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
    margin-right: -1rem;
}

#site-header .header__nav-list .nav-item {
    padding: 0 1rem;
    margin: 0;
    font-family: var(--nav-font-family);
    text-transform: uppercase;
}

#site-header .header__nav-list .nav-item:not(:last-child) {
    border-right: 1px solid var(--white);
}

#site-header .header__inner a {
    padding: 0;
    margin: 0;
    color: var(--white);
    text-decoration: none;
}

#site-header .header__inner a:hover,
#site-header .header__inner a:focus,
#site-header .header__inner a:active {
    color: var(--tertiary-color);
}

/*#site-header .header__inner h2 {*/
/*    font-size: 1.4rem;*/
/*    color: var(--white);*/
/*    margin: 0.75rem 0 0.25rem;*/
/*}*/

@media screen and (min-width: 768px) {

    #site-header {
        padding: 2rem 0 1.5rem;
    }

    #site-header .logo {
        height: 50px;
        margin-right: 25px;
    }

    /*#site-header .header__inner h2 {*/
    /*    font-size: 1.8rem;*/
    /*    margin: 1.5rem 0 0.5rem;*/
    /*}*/
}

/* Navigation */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 1.5rem;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
}

/*nav ul li a:hover {*/
/*    color: var(--primary-color);*/
/*}*/

/*nav ul li a::after {*/
/*    content: '';*/
/*    position: absolute;*/
/*    bottom: 0;*/
/*    left: 0;*/
/*    width: 0;*/
/*    height: 2px;*/
/*    background-color: var(--primary-color);*/
/*    transition: width 0.3s ease;*/
/*}*/

/*nav ul li a:hover::after {*/
/*    width: 100%;*/
/*}*/

/* Mobile menu */
.menu-toggle {
    display: none;
    cursor: pointer;
}

/* Content area */
#content {
    padding: 2rem 0;
}

/* Forms */
form {
    margin-bottom: 2rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.form-group .one-line {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

td.one-line label,
.form-group .one-line label {
    display: inline-block;
    margin-right: 1rem;
}

td.one-line label input,
.form-group .one-line label input {
    margin-right: 0.25rem;
}

.form-group .one-line.centered {
    align-items: center
}

.form-group .form-element--decision {
    align-items: center;
}

.form-group .form-element--decision span {
    white-space: nowrap;
    margin-left: 0.5rem;
}

.form-group.inline-form-fields input,
.form-group.inline-form-fields select {
    width: auto;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="date"],
select,
textarea {
    background: var(--white);
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-family: var(--body-font-family);
    font-size: 1rem;
    transition: border-color 0.1s ease;
}

input:focus,
select:focus,
textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Buttons */
.btn, input[type="submit"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--primary-color);
    color: var(--white);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.1s ease;
}

input[type="submit"] {
    margin-right: 0.5rem;
}

.btn:hover, .btn:active, .btn:focus,
input[type="submit"]:hover, input[type="submit"]:active, input[type="submit"]:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    text-decoration: none;
    color: var(--white);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #e5a012;
    color: var(--dark-bg);
}

input[type="reset"] {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background-color: var(--white);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    text-align: center;
    transition: background-color 0.1s ease;
}

input[type="reset"]:hover, input[type="reset"]:active, input[type="reset"]:focus {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: var(--white);
    text-decoration: none;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

table.offset {
    width: calc(100% + 1rem);
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

table th,
table td {
    padding: 0.5rem;
    text-align: left;
    /*border-bottom: 1px solid var(--border-color);*/
}

table th.text-center,
table td.text-center {
    text-align: center;
}

table th {
    /*background-color: var(--light-bg);*/
    font-weight: 600;
    white-space: nowrap;
}

table td a {
    color: var(--primary-color);
}

table.unbordered th,
table.unbordered td {
    border: 0;
}

table td.nowrap {
    white-space: nowrap;
}

table.table--striped {
    border: 1px solid var(--border-color);
}

table.table--striped thead tr {
    background-color: var(--primary-color);
    color: var(--white);
}

table.table--striped tbody tr:nth-child(even) {
    background-color: var(--border-color);
}

table th {
    border: 1px solid var(--border-color);
    font-weight: bold;
    text-decoration: none;
    font-size: 0.9rem;
}

table td {
    font-size: 0.9rem;
    text-decoration: none;
    border: 1px solid var(--border-color);
}

table.two-col-layout,
table.leftRightForm {
    width: calc(100% + 1rem);
    border: 0;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

table.leftRightForm th,
table.leftRightForm td {
    border: 0;
    font-size: 1rem;
}

table thead th,
table tbody tr.header td,
th.sortable, th.sortable a {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
}

table thead tr.pre-header th,
table tbody tr.pre-header td {
    background: var(--alt-bg);
    color: #000;
}

th.sortable a {
    display: block;
    width: 100%;
    height: 100%;
    vertical-align: bottom;
}

th.sorted, th.sorted a {

}

th.order1 a {
    background: #333333 url(/assets/sort_up.gif) no-repeat;
}

th.order2 a {
    background: #333333 url(/assets/sort_down.gif) no-repeat;
}

tr.odd {
    background: transparent;
}

tr.even {
    background: #eeeeee;
}

/*table tr:hover {*/
/*    background-color: rgba(0, 0, 0, 0.02);*/
/*}*/

/* Alerts and messages */
.alert {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.alert-success {
    background-color: rgba(40, 167, 69, 0.1);
    border: 1px solid var(--success-color);
    color: var(--success-color);
}

.alert-error {
    background-color: rgba(220, 53, 69, 0.1);
    border: 1px solid var(--error-color);
    color: var(--error-color);
}

.alert-warning {
    background-color: rgba(255, 193, 7, 0.1);
    border: 1px solid var(--warning-color);
    color: #856404;
}

/* Footer */
footer {
    text-align: center;
    padding: 3rem 0;
    font-size: 0.8rem;
}

footer a {

}

footer a:hover {
    color: var(--secondary-color);
}

/* Responsive styles */
@media (max-width: 768px) {
    /*nav ul {*/
    /*    display: none;*/
    /*    flex-direction: column;*/
    /*    position: absolute;*/
    /*    top: 100%;*/
    /*    left: 0;*/
    /*    width: 100%;*/
    /*    background-color: var(--white);*/
    /*    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);*/
    /*    z-index: 10;*/
    /*}*/
    /*nav ul.active {*/
    /*    display: flex;*/
    /*}*/
    /*nav ul li {*/
    /*    margin: 0;*/
    /*}*/
    /*nav ul li a {*/
    /*    display: block;*/
    /*    padding: 1rem;*/
    /*    border-bottom: 1px solid var(--border-color);*/
    /*}*/
    .menu-toggle {
        display: block;
    }
}

.home ul {
    list-style: none;
    padding: 0;
    margin-bottom: 1rem;
}

/* New CSS rules for modernization */

/* Form Layout */
.form-row {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
    margin-left: -0.5rem;
    margin-right: -0.5rem;
}

.form-col {
    flex: 1;
    padding: 0 0.5rem;
}

.form-col-100 {
    width: 100%;
    padding: 0 0.5rem;
}

.form-col-75 {
    width: 75%;
    padding: 0 0.5rem;
}

.form-col-65 {
    width: 65%;
    padding: 0 0.5rem;
}

.form-col-60 {
    width: 60%;
    padding: 0 0.5rem;
}

.form-col-50 {
    width: 50%;
    padding: 0 0.5rem;
}

.form-col-45 {
    width: 45%;
    padding: 0 0.5rem;
}

.form-col-40 {
    width: 40%;
    padding: 0 0.5rem;
}

.form-col-35 {
    width: 35%;
    padding: 0 0.5rem;
}

.form-col-30 {
    width: 30%;
    padding: 0 0.5rem;
}

.form-col-25 {
    width: 25%;
    padding: 0 0.5rem;
}

.form-col-20 {
    width: 20%;
    padding: 0 0.5rem;
}

.form-col-15 {
    width: 15%;
    padding: 0 0.5rem;
}

.form-col-10 {
    width: 10%;
    padding: 0 0.5rem;
}

.form-col-5 {
    width: 5%;
    padding: 0 0.5rem;
}

.form-col-auto {
    flex: 1;
}

/* Text Alignment */
.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.text-center {
    text-align: center;
}

.text-justify {
    text-align: justify;
}

/* Vertical Alignment */
.vertical-align-top {
    vertical-align: top;
}

/* Table Header Background */
.table-header-bg {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.5rem;
}

.table-header-bg a {
    color: var(--white);
}

.table-header-bg2 {
    background-color: var(--border-color);
    color: var(--primary-color);
    padding: 0.5rem;
}


/* Text Colors */
.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--error-color);
}

.text-info {
    color: var(--secondary-color);
}

/* Using secondary-color for info as per previous usage */

/* Font Sizes */
.text-sm {
    font-size: 0.875em;
}

/* Roughly equivalent to font size -1 */

/* Widths (for table cells, etc.) */
.w-10 {
    width: 10%;
}

.w-15 {
    width: 15%;
}

.w-20 {
    width: 20%;
}

.w-25 {
    width: 25%;
}

.w-30 {
    width: 30%;
}

.w-35 {
    width: 35%;
}

.w-40 {
    width: 40%;
}

.w-45 {
    width: 45%;
}

.w-50 {
    width: 50%;
}

.w-60 {
    width: 60%;
}

.w-65 {
    width: 65%;
}

.w-70 {
    width: 70%;
}

.w-75 {
    width: 75%;
}

.w-85 {
    width: 85%;
}

.w-90 {
    width: 90%;
}

.w-100 {
    width: 100%;
}

.w-250 {
    width: 250px;
}

/* Specific pixel width for some table cells */
.w-300 {
    width: 300px;
}

/* Specific pixel width for some table cells */
.w-500 {
    width: 500px;
}

/* Specific pixel width for some table cells */
.w-600 {
    width: 600px;
}

/* Specific pixel width for some table cells */

/* Margins */
.my-1 {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.my-2 {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.my-3 {
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Two-column layout */
.two-col-layout {
    display: flex;
}

.col-left {
    flex: 1;
    padding-right: 15px; /* Adjust as needed */
}

.col-right {
    flex: 1;
    padding-left: 15px; /* Adjust as needed */
}

/* List styles */
.list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.list-item {
    margin-bottom: 0.5rem;
}

/* Blink warning */
.blink-warning {
    animation: blink-animation 1s steps(5, start) infinite;
    color: var(--error-color);
    font-weight: bold;
}

@keyframes blink-animation {
    to {
        visibility: hidden;
    }
}

/* Code block */
.code-block {
    background-color: var(--light-bg);
    border: 1px solid var(--border-color);
    padding: 1rem;
    font-family: monospace;
    white-space: pre-wrap; /* Ensures long lines wrap */
    word-break: break-all; /* Breaks words if necessary */
}

.back-to-top {
    margin: 1rem 0;
}

.back-to-top a {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-size: 12px;
}

.back-to-top a span {
    margin-left: 0.5rem;
}