* {
    box-sizing: border-box;
}

html {
    font-size: 14px;
    min-height: 100%;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}



/* Custom CSS for layout */


.app-navbar {
    min-height: 64px;
    box-shadow: 0 0.125rem 0.5rem rgba(0, 0, 0, 0.04);
}

.app-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 600;
    color: #005aa3;
}

    .app-brand:hover {
        color: #004b88;
    }

.app-brand-logo {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.app-brand-text {
    font-size: 1.05rem;
}

.app-navbar .nav-link {
    color: #333;
}

    .app-navbar .nav-link:hover {
        color: #005aa3;
    }

.app-user-name {
    color: #666;
    font-size: 0.95rem;
}

.app-logout-button {
    padding-left: var(--bs-nav-link-padding-x);
    padding-right: var(--bs-nav-link-padding-x);
    color: #333;
    text-decoration: none;
}

    .app-logout-button:hover {
        color: #005aa3;
        text-decoration: none;
    }

.app-main {
    flex: 1;
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

.app-footer {
    padding: 0.75rem 0;
    font-size: 0.85rem;
    background: #fff;
}

.app-footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.app-footer-link {
    color: #005aa3;
    text-decoration: none;
}

    .app-footer-link:hover {
        color: #004b88;
        text-decoration: underline;
    }

@media (max-width: 576px) {
    .app-footer-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }
}

.dropdown-menu {
    font-size: 0.95rem;
}

.dropdown-item:active {
    background-color: #005aa3;
}

.app-main-container {
    max-width: 1500px;
}


/* Custom CSS for landing page */


.home-hero {
    padding: 4rem 1.5rem;
    margin-top: 2rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #eef4fb 100%);
    border: 1px solid #e5e8ec;
    text-align: center;
}

.home-hero-content {
    max-width: 760px;
    margin: 0 auto;
}

.home-logo {
    /*width: 120px;*/
    height: auto;
    margin-bottom: 1.5rem;
}

.home-hero h1 {
    font-size: 2.25rem;
    font-weight: 600;
    color: #005aa3;
    margin-bottom: 1rem;
}

.home-hero .lead {
    color: #555;
    font-size: 1.2rem;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.home-actions {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

.home-card {
    display: block;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid #e5e8ec;
    border-radius: 0.75rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

    .home-card:hover {
        color: inherit;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.08);
    }

    .home-card h2 {
        font-size: 1.25rem;
        color: #005aa3;
        margin-bottom: 0.75rem;
    }

    .home-card p {
        margin-bottom: 0;
        color: #555;
    }

.home-info-box {
    padding: 1.5rem;
    border: 1px solid #e5e8ec;
    border-radius: 0.75rem;
    background: #fff;
}

    .home-info-box h2 {
        font-size: 1.35rem;
        color: #005aa3;
        margin-bottom: 0.75rem;
    }

    .home-info-box p {
        margin-bottom: 0;
        color: #555;
        line-height: 1.7;
    }


/* Custom CSS for login page */


.login-page {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.login-card {
    width: 100%;
    max-width: 440px;
    padding: 2.5rem;
    border: 1px solid #e5e8ec;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.04);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    width: 90px;
    height: auto;
    margin-bottom: 1.25rem;
}

.login-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #005aa3;
    margin-bottom: 0.5rem;
}

.login-header p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.login-card .form-control {
    border-color: #dfe3e8;
}

    .login-card .form-control:focus {
        border-color: #86b7fe;
    }

.login-card .btn-primary {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}


/* Custom CSS for account pages */

.account-page {
    display: flex;
    justify-content: center;
    padding-top: 2rem;
}

.account-card {
    width: 100%;
    max-width: 460px;
    padding: 2.5rem;
    border: 1px solid #e5e8ec;
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.04);
}

.account-header {
    text-align: center;
    margin-bottom: 2rem;
}

.account-logo {
    width: 90px;
    height: auto;
    margin-bottom: 1.25rem;
}

.account-header h1 {
    font-size: 1.8rem;
    font-weight: 600;
    color: #005aa3;
    margin-bottom: 0.5rem;
}

.account-header p {
    color: #666;
    margin-bottom: 0;
    line-height: 1.6;
}

.account-card .form-control {
    border-color: #dfe3e8;
}

    .account-card .form-control:focus {
        border-color: #86b7fe;
    }

.account-card .btn-primary {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}


/* Custom CSS for internal pages */

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

    .page-header h1 {
        font-size: 2rem;
        font-weight: 600;
        color: #005aa3;
        margin-bottom: 0.25rem;
    }

    .page-header p {
        color: #666;
        margin-bottom: 0;
    }

.app-card {
    border-color: #e5e8ec;
    border-radius: 0.75rem;
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.03);
    overflow: hidden;
}

    .app-card > .table-responsive {
        border-radius: inherit;
    }

@media (max-width: 576px) {
    .page-header {
        flex-direction: column;
    }
}


/* Member list */

/* Member list */

.member-table {
    font-size: 0.875rem;
}

    .member-table > :not(caption) > * > * {
        padding: 0.27rem 0.5rem;
    }

    .member-table thead th {
        padding-top: 0.4rem;
        padding-bottom: 0.4rem;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .member-table tbody td {
        line-height: 1.2;
    }

    .member-table tbody tr:hover {
        background-color: #f8fbfe;
    }

    .member-table .btn-sm {
        padding: 0.15rem 0.4rem;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    /* Nafn */
    .member-table th:nth-child(1),
    .member-table td:nth-child(1) {
        min-width: 175px;
    }

    /* Kennitala */
    .member-table th:nth-child(2),
    .member-table td:nth-child(2) {
        min-width: 100px;
    }

    /* Heimili */
    .member-table th:nth-child(3),
    .member-table td:nth-child(3) {
        min-width: 125px;
    }

    /* Póstnúmer */
    .member-table th:nth-child(4),
    .member-table td:nth-child(4) {
        min-width: 115px;
    }

    /* Sími */
    .member-table th:nth-child(5),
    .member-table td:nth-child(5) {
        min-width: 135px;
    }

    /* Netfang */
    .member-table th:nth-child(6),
    .member-table td:nth-child(6) {
        min-width: 155px;
    }

    /* Klúbbur */
    .member-table th:nth-child(7),
    .member-table td:nth-child(7) {
        min-width: 190px;
    }

    /* Embætti */
    .member-table th:nth-child(8),
    .member-table td:nth-child(8) {
        min-width: 100px;
    }

    /* Aðgerðir */
    .member-table th:nth-child(9),
    .member-table td:nth-child(9) {
        width: 1%;
    }


.member-toolbar {
    padding: 0.65rem;
}

.member-filters .form-control,
.member-filters .form-select,
.member-filters .btn {
    min-height: 34px;
    font-size: 0.875rem;
}

.member-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin: 0;
}

.member-paging {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 0.75rem;
    border-top: 1px solid #e5e8ec;
}

.member-paging-info {
    font-size: 0.8rem;
    color: #666;
}

.member-pagination {
    display: flex;
    justify-content: flex-end;
}

.member-search {
    max-width: 520px;
    flex: 1;
}

.member-filters .form-select {
    width: auto;
    min-width: 220px;
}

@media (max-width: 768px) {
    .member-filters {
        flex-direction: column;
        align-items: stretch;
    }

        .member-search,
        .member-filters .form-select {
            width: 100%;
            max-width: none;
        }
}


/* Details page */

.member-details-heading {
    font-size: 1.15rem;
    font-weight: 600;
    color: #005aa3;
    margin-bottom: 1rem;
}

.member-details-subheading {
    font-size: 0.95rem;
    font-weight: 600;
    color: #444;
    margin-bottom: 0.5rem;
}

.member-details-list dt {
    color: #666;
    font-weight: 500;
}

.member-details-list dd {
    margin-bottom: 0.75rem;
}

.member-history-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
}

    .member-history-table thead th {
        padding: 0.45rem 0.55rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #333;
        background-color: #f8f9fa;
        border-bottom: 1px solid #dfe3e8;
        white-space: nowrap;
    }

    .member-history-table tbody td {
        padding: 0.4rem 0.55rem;
        vertical-align: middle;
        border-color: #edf0f2;
    }

    .member-history-table tbody tr:hover {
        background-color: #f8fbfe;
    }


/* Club list */

.club-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
}

    .club-table thead th {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #333;
        background-color: #f8f9fa;
        border-bottom: 1px solid #dfe3e8;
        white-space: nowrap;
    }

    .club-table tbody td {
        padding: 0.45rem 0.6rem;
        vertical-align: middle;
        border-color: #edf0f2;
        white-space: nowrap;
    }

    .club-table tbody tr:hover {
        background-color: #f8fbfe;
    }

    .club-table th:nth-child(1),
    .club-table td:nth-child(1) {
        min-width: 240px;
    }

    .club-table th:nth-child(2),
    .club-table td:nth-child(2) {
        min-width: 110px;
    }

    .club-table th:nth-child(3),
    .club-table td:nth-child(3) {
        min-width: 220px;
    }

    .club-table th:nth-child(4),
    .club-table td:nth-child(4) {
        min-width: 200px;
    }

    .club-table th:nth-child(5),
    .club-table td:nth-child(5) {
        min-width: 110px;
    }

    .club-table th:nth-child(6),
    .club-table td:nth-child(6) {
        width: 1%;
    }

    .club-table .btn-sm {
        padding: 0.2rem 0.45rem;
        font-size: 0.78rem;
    }

.club-members-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
}

    .club-members-table thead th {
        padding: 0.4rem 0.55rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #333;
        background-color: #f8f9fa;
        border-bottom: 1px solid #dfe3e8;
        white-space: nowrap;
    }

    .club-members-table tbody td {
        padding: 0.35rem 0.55rem;
        vertical-align: middle;
        border-color: #edf0f2;
    }

    .club-members-table tbody tr:hover {
        background-color: #f8fbfe;
    }

.club-office-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
}

    .club-office-table thead th {
        padding: 0.4rem 0.55rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #333;
        background-color: #f8f9fa;
        border-bottom: 1px solid #dfe3e8;
        white-space: nowrap;
    }

    .club-office-table tbody td {
        padding: 0.35rem 0.55rem;
        vertical-align: middle;
        border-color: #edf0f2;
    }

    .club-office-table tbody tr:hover {
        background-color: #f8fbfe;
    }


/* Office overview */

.office-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
}

    .office-table thead th {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #333;
        background-color: #f8f9fa;
        border-bottom: 1px solid #dfe3e8;
        white-space: nowrap;
    }

    .office-table tbody td {
        padding: 0.45rem 0.6rem;
        vertical-align: middle;
        border-color: #edf0f2;
        white-space: nowrap;
    }

    .office-table tbody tr:hover {
        background-color: #f8fbfe;
    }

    .office-table .btn-sm {
        padding: 0.2rem 0.45rem;
        font-size: 0.78rem;
    }

.office-club-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

@media (max-width: 576px) {
    .office-club-header {
        align-items: flex-start;
        flex-direction: column;
    }
}


/* Reference data */

.reference-card {
    display: block;
    height: 100%;
    padding: 1.5rem;
    border: 1px solid #e5e8ec;
    border-radius: 0.75rem;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.15s ease, transform 0.15s ease;
}

    .reference-card:hover {
        color: inherit;
        text-decoration: none;
        transform: translateY(-2px);
        box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.06);
    }

    .reference-card h2 {
        font-size: 1.15rem;
        font-weight: 600;
        color: #005aa3;
        margin-bottom: 0.75rem;
    }

    .reference-card p {
        color: #666;
        margin-bottom: 1rem;
        line-height: 1.6;
    }

.reference-card-link {
    color: #005aa3;
    font-weight: 500;
}


/* Reference data tables */

.reference-table {
    width: 100%;
    margin-bottom: 0;
    font-size: 0.85rem;
}

    .reference-table thead th {
        padding: 0.5rem 0.6rem;
        font-size: 0.8rem;
        font-weight: 600;
        color: #333;
        background-color: #f8f9fa;
        border-bottom: 1px solid #dfe3e8;
        white-space: nowrap;
    }

    .reference-table tbody td {
        padding: 0.45rem 0.6rem;
        vertical-align: middle;
        border-color: #edf0f2;
    }

    .reference-table tbody tr:hover {
        background-color: #f8fbfe;
    }

    .reference-table .btn-sm {
        padding: 0.2rem 0.45rem;
        font-size: 0.78rem;
    }