/* RoSPA Inspections - Custom Styling */

/* Fonts */
@font-face {
    font-family: "FSLolaWeb";
    src: url("fonts/FSLolaWeb-Regular.eot");
    src: url("fonts/FSLolaWeb-Regular.eot?#iefix") format("embedded-opentype"),
        url("fonts/FSLolaWeb-Regular.woff") format("woff");
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "CalibriWeb";
    src: url("fonts/CalibriWeb-Regular.eot");
    src: url("fonts/CalibriWeb-Regular.eot?#iefix") format("embedded-opentype"),
        url("fonts/CalibriWeb-Regular.woff") format("woff");
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "FSLolaWeb";
    src: url("fonts/FSLolaWeb-Italic.eot");
    src: url("fonts/FSLolaWeb-Italic.eot?#iefix") format("embedded-opentype"),
        url("fonts/FSLolaWeb-Italic.woff") format("woff");
    font-style: italic;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "CalibriWeb";
    src: url("fonts/CalibriWeb-Italic.eot");
    src: url("fonts/CalibriWeb-Italic.eot?#iefix") format("embedded-opentype"),
        url("fonts/CalibriWeb-Italic.woff") format("woff");
    font-style: italic;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "FSLolaWeb";
    src: url("fonts/FSLolaWeb-Bold.eot");
    src: url("fonts/FSLolaWeb-Bold.eot?#iefix") format("embedded-opentype"),
        url("fonts/FSLolaWeb-Bold.woff") format("woff");
    font-style: normal;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "CalibriWeb";
    src: url("fonts/CalibriWeb-Bold.eot");
    src: url("fonts/CalibriWeb-Bold.eot?#iefix") format("embedded-opentype"),
        url("fonts/CalibriWeb-Bold.woff") format("woff");
    font-style: normal;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "FSLolaWeb";
    src: url("fonts/FSLolaWeb-BoldItalic.eot");
    src: url("fonts/FSLolaWeb-BoldItalic.eot?#iefix") format("embedded-opentype"),
        url("fonts/FSLolaWeb-BoldItalic.woff") format("woff");
    font-style: italic;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "CalibriWeb";
    src: url("fonts/CalibriWeb-BoldItalic.eot");
    src: url("fonts/CalibriWeb-BoldItalic.eot?#iefix") format("embedded-opentype"),
        url("fonts/CalibriWeb-BoldItalic.woff") format("woff");
    font-style: italic;
    font-weight: bold;
    text-rendering: optimizeLegibility;
}

@font-face {
    font-family: "rospa-font";
    src: url("fonts/rospa-font.eot");
    src: url("fonts/rospa-font.eot?#iefix") format("embedded-opentype"),
        url("fonts/rospa-font.woff") format("woff");
    font-style: normal;
    font-weight: normal;
    text-rendering: optimizeLegibility;
}

html {
    min-height: 100%;
    position: relative;
}

body {
    font-family: CalibriWeb, Calibri, Arial, Tahoma, Helvetica, sans-serif;
    font-size: 16px;
    background-color: #ffffff;
    margin: 0;
    padding-bottom: 300px; /* Height of footer */
}

h1, h2, h3, h4, h5 {
    color: #001e62;
    font-family: FSLolaWeb, "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Tahoma, sans-serif;
    font-weight: bold;
}

/* Header Styles */
.full-container {
    background-color: rgb(0, 30, 98);
    margin-top: 0px;
    padding: 0;
}

.header-text {
    font-family: FSLolaWeb, "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Tahoma, sans-serif;
    font-size: 16px;
    text-align: center;
    color: white;
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0px;
}

.logo {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 200px;
}

.saferplay-logo {
    margin-top: 20px;
    margin-bottom: 20px;
    text-align: center;
    max-width: 200px;
    max-height: 86px;
    height: auto;
}

.header-container {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.portal-header-text {
    color: rgb(0, 30, 98);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 600;
    border: none;
    margin: 20px 10px;
    text-align: center;
    flex-grow: 1;
}

/* Footer Styles */
.footer-container {
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footer-text {
    font-family: FSLolaWeb, "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Tahoma, sans-serif;
    font-size: 16px;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 20px;
    color: white;
    padding: 20px;
}

.coloured-link {
    color: #5bc0de;
}

.coloured-link:hover {
    color: #46b8da;
    text-decoration: none;
}

/* Table Styles */
.table {
    background-color: white;
    font-family: CalibriWeb, Calibri, Arial, sans-serif;
}

.table thead th {
    background-color: #f8f8f8;
    border-bottom: 2px solid #ddd;
    font-weight: bold;
    color: #333;
    font-family: FSLolaWeb, "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Tahoma, sans-serif;
    vertical-align: middle !important;
    padding: 15px 8px !important;
}

.table tbody td {
    vertical-align: middle !important;
    padding: 15px 8px !important;
    line-height: 1.5;
}

.table > tbody > tr > td {
    vertical-align: middle !important;
}

.table tbody tr:nth-child(even) {
    background-color: #f8f8f8;
}

.table tbody tr:nth-child(odd) {
    background-color: #fff;
}

.table tbody tr:hover {
    background-color: #e8f4f8;
}

/* Ensure ZIP icons display properly */
.table tbody td img {
    display: block;
    margin: 0 auto;
}

/* Button Styles */
.btn-rospa,
.btn-rospa:visited,
.btn-rospa:active {
    color: white;
    border-color: rgb(0, 30, 98);
    font-size: 14px;
    font-weight: 400;
    background-color: rgb(0, 30, 98);
    min-width: 100px;
    font-family: FSLolaWeb, "Franklin Gothic Medium", "Franklin Gothic", "ITC Franklin Gothic", Tahoma, sans-serif;
    margin-right: 10px;
    margin-left: 10px;
    border-radius: 4px;
    padding: 6px 12px;
}

.btn-rospa:hover {
    background-color: rgb(58, 145, 173);
    border-color: rgb(0, 30, 98);
    color: white;
}

.btn-primary {
    color: #fff;
    background-color: #008eaa;
    border-color: #007991;
}

.btn-primary:hover,
.btn-primary:focus {
    color: #fff;
    background-color: #007991;
    border-color: #006377;
}

.btn-default {
    color: #fff;
    background-color: #001e62;
    border-color: #001649;
}

.btn-default:hover,
.btn-default:focus {
    color: #fff;
    background-color: #001649;
    border-color: #000e2f;
}

/* Content Container */
.content-container {
    background-color: white;
    padding: 30px;
    margin-top: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

/* Page Header */
.page-header-text {
    color: rgb(22, 59, 68);
    text-transform: uppercase;
    font-size: 34px;
    font-weight: 300;
    border: none;
    margin-top: 10px;
    margin-bottom: 20px;
    text-align: center;
}

/* Modal Styles */
.modal-header {
    background-color: #f8f8f8;
    border-bottom: 1px solid #ddd;
}

.modal-title {
    color: #001e62;
    font-weight: bold;
}

.modal-footer .btn-danger {
    background-color: #d9534f;
    border-color: #d43f3a;
}

.modal-footer .btn-danger:hover {
    background-color: #c9302c;
    border-color: #ac2925;
}

/* Links */
a {
    color: #008eaa;
    text-decoration: none;
    font-family: CalibriWeb, Calibri, Arial, sans-serif;
}

a:hover {
    color: #007991;
    text-decoration: underline;
}

/* Paragraphs */
p {
    font-family: CalibriWeb, Calibri, Arial, sans-serif;
}

/* Container adjustments */
.container {
    background-color: white;
}

/* Spacing */
.section-seperator {
    margin-top: 20px;
    margin-bottom: 20px;
}

/* Form Controls */
label {
    font-family: CalibriWeb, Calibri, Arial, sans-serif;
    font-weight: 600;
    margin-bottom: 5px;
}

.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 16px;
    font-family: CalibriWeb, Calibri, Arial, sans-serif;
}

.form-control:focus {
    border-color: #008eaa;
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 142, 170, 0.25);
}

/* Alert Styles */
.alert {
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid transparent;
    border-radius: 4px;
}

.alert-danger {
    color: #a94442;
    background-color: #f2dede;
    border-color: #ebccd1;
}

/* Improved Table Hover */
.table-hover tbody tr:hover td {
    background-color: #e8f4f8 !important;
}

/* ZIP Icon Styling */
.table img {
    transition: transform 0.2s;
}

.table img:hover {
    transform: scale(1.1);
}
