/* ===================================================== */
/* FIRST IN SAFETY - BUSINESS PORTAL STYLESHEET          */
/* portal.css                                            */
/* ===================================================== */


/* ===================================================== */
/* GLOBAL STYLES                                         */
/* ===================================================== */

body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #f3f6fa;
    color: #061b33;
}


/* ===================================================== */
/* LOGIN PAGE                                            */
/* ===================================================== */


/* Login Layout */

.portal-login-wrap {
    width: 100%;
    max-width: 430px;
    padding: 24px;
}


/* Login Card */

.portal-login-card {
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 18px;
    padding: 32px;
    box-shadow: 0 18px 40px rgba(6, 27, 51, 0.12);
}


/* Login Branding */

.portal-brand {
    text-align: center;
    margin-bottom: 28px;
}


/* Login Logo */

.login-logo {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo-img {
    width: 100px;
    height: 100px;
    object-fit: contain;
}


/* Login Heading */

.portal-brand h1 {
    margin: 0;
    font-size: 26px;
}


/* Login Subtitle */

.portal-brand p {
    margin: 6px 0 0;
    color: #566173;
    font-size: 14px;
}


/* Login Form */

.portal-form-group {
    margin-bottom: 18px;
}

.portal-label {
    display: block;
    font-weight: 700;
    margin-bottom: 7px;
    font-size: 14px;
}

.portal-input {
    width: 100%;
    padding: 13px 14px;
    border: 1px solid #cfd8e6;
    border-radius: 10px;
    font-size: 15px;
    box-sizing: border-box;
}


/* Login Button */

.portal-btn-login {
    width: 100%;
    border: none;
    background: #061b33;
    color: #fff;
    font-weight: 800;
    padding: 14px 18px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
}


/* Login Messages */

.portal-message {
    margin-bottom: 16px;
    display: none;
    padding: 12px;
    border-radius: 10px;
    background: #fff5f5;
    color: #9f1239;
    border: 1px solid #fecdd3;
    font-weight: 700;
    font-size: 14px;
}


/* Login Footer */

.portal-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: #566173;
}


/* ===================================================== */
/* PORTAL HEADER                                         */
/* ===================================================== */


/* Top Navigation Bar */

.portal-topbar {
    background: #061b33;
    color: #fff;
    padding: 18px 28px;
    border-bottom: 4px solid #d9aa3f;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


/* Brand Link */

.portal-brand-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}


/* Header Logo */

.portal-header-logo {
    width: 48px;
    height: 48px;
    object-fit: contain;
    border-radius: 999px;
    background: #fff;
}


/* Navigation Menu */

.portal-nav {
    display: flex;
    gap: 18px;
    align-items: center;
}

.portal-nav a {
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
}

.portal-nav a:hover {
    color: #d9aa3f;
}


/* ===================================================== */
/* USER PROFILE DISPLAY                                  */
/* ===================================================== */


/* User Link */

.portal-user-link {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    text-decoration: none;
}


/* Avatar */

.portal-avatar {
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #d9aa3f;
    color: #061b33;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 18px;
}


/* User Info */

.portal-user {
    text-align: right;
}

.portal-user span {
    font-size: 13px;
}

.portal-user-link:hover .portal-user strong,
.portal-user-link:hover .portal-user span {
    color: #d9aa3f;
}


/* ===================================================== */
/* PORTAL LAYOUT                                         */
/* ===================================================== */

.portal-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}


/* ===================================================== */
/* CARDS                                                 */
/* ===================================================== */

.portal-card {
    background: #fff;
    border: 1px solid #d6dde8;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 22px;
    box-shadow: 0 10px 25px rgba(6, 27, 51, 0.08);
}


/* ===================================================== */
/* DASHBOARD STATISTICS                                  */
/* ===================================================== */

.portal-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 22px;
}

.portal-stat {
    font-size: 30px;
    font-weight: 900;
    margin-top: 14px;
}


/* ===================================================== */
/* TABLES                                                */
/* ===================================================== */

.portal-table {
    width: 100%;
    border-collapse: collapse;
}

.portal-table th,
.portal-table td {
    padding: 12px;
    border-bottom: 1px solid #d8dee9;
    text-align: left;
}

.portal-table th {
    background: #f3f5f7;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: .05em;
}


/* ===================================================== */
/* BUTTONS                                               */
/* ===================================================== */

.portal-btn {
    display: inline-block;
    background: #061b33;
    color: #fff;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 8px;
    font-weight: 800;
}

.portal-btn-gold {
    background: #d9aa3f;
    color: #061b33;
}


/* ===================================================== */
/* RESPONSIVE DESIGN                                     */
/* ===================================================== */

@media (max-width: 900px) {

    .portal-topbar {
        flex-direction: column;
        gap: 14px;
        align-items: flex-start;
    }

    .portal-nav {
        flex-wrap: wrap;
        gap: 12px;
    }

    .portal-user {
        text-align: left;
    }
}

@media (max-width: 800px) {

    .portal-grid {
        grid-template-columns: 1fr;
    }
}