﻿body {
    font-family: "Segoe UI", Arial, sans-serif;
    background-color: #f4f6f9;
    margin: 0;
    padding: 0;
}

/* HEADER */
.convene-header {
    background-color: #0b2e4a;
    color: #ffffff;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
}

.convene-logo {
    height: 45px;
    margin-right: 15px;
}

.convene-title {
    font-size: 20px;
    font-weight: 600;
}

/* MAIN CONTAINER */
.convene-container {
    width: 80%;
    margin: 20px auto;
    background: #ffffff;
    padding: 25px;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

/* FORM ELEMENTS */
label {
    font-weight: 600;
    color: #333;
}

.form-control {
    width: 100%;
    padding: 10px;
    border: 1px solid #cfd6dd;
    border-radius: 4px;
    margin-top: 5px;
    box-sizing: border-box;
}

/* BUTTONS */
.btn-primary {
    background-color: #1f5f99;
    border: none;
    color: white;
    padding: 10px 18px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: auto;
    display: inline-block;
}

    .btn-primary:hover {
        background-color: #164a78;
    }

/* MUTED TEXT */
.text-muted {
    color: #6c757d;
}

/* FOOTER */
.convene-footer {
    text-align: center;
    padding: 15px;
    font-size: 12px;
    color: #777;
    margin-top: 40px;
}

/* =========================
   RESPONSIVE DESIGN
   ========================= */

/* Tablets */
@media (max-width: 992px) {
    .convene-container {
        width: 85%;
        margin: 25px auto;
    }
}

/* Mobile phones */
@media (max-width: 576px) {

    .convene-container {
        width: 95%;
        margin: 15px auto;
        padding: 15px;
        border-radius: 4px;
    }

    .convene-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .convene-title {
        font-size: 18px;
        margin-top: 8px;
    }

    .btn-primary {
        width: 100%;
        text-align: center;
    }

    .form-control {
        font-size: 16px; /* prevents iOS zoom issue */
    }
}


/* TABLE DEFAULT */
.convene-table {
    width: 100%;
    border-collapse: collapse;
}

/* CARD DESIGN (MOBILE) */
.shareholder-card {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 12px;
    margin-bottom: 10px;
}

    .shareholder-card .card-header {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .shareholder-card .card-body div {
        padding: 2px 0;
        font-size: 14px;
    }

    .shareholder-card .card-footer {
        margin-top: 10px;
    }

/* DEFAULT: hide mobile cards on desktop */
.mobile-row {
    display: none;
}

/* =========================
   MOBILE VIEW
   ========================= */
@media (max-width: 768px) {

    /* Hide table headers and desktop rows */
    thead {
        display: none;
    }

    .desktop-row {
        display: none;
    }

    /* Show mobile card rows */
    .mobile-row {
        display: table-row;
    }

    table, tbody, tr, td {
        display: block;
        width: 100%;
    }

    td {
        border: none !important;
        padding: 0;
    }

    .btn-block {
        width: 100%;
    }
}

.pagination-container {
    margin-top: 15px;
    text-align: center;
}

.pagination-btn {
    display: inline-block;
    margin: 2px;
    padding: 8px 12px;
    border: 1px solid #1f5f99;
    background: #fff;
    color: #1f5f99;
    cursor: pointer;
    border-radius: 4px;
}

    .pagination-btn:hover {
        background: #1f5f99;
        color: #fff;
    }

    .pagination-btn.active {
        background: #1f5f99;
        color: #fff;
    }

    .pagination-btn.disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }


/* HEADER */

.convene-header {
    background-color: #0b2e4a;
    color: #ffffff;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header-left {
    display: flex;
    align-items: center;
}

.convene-logo {
    margin-right: 15px;
}

.convene-title {
    font-size: 22px;
    font-weight: 600;
}

/* HOME BUTTON */

.header-home-btn {
    display: inline-block;
    background-color: #f5a623; /* First Registrars gold accent */
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
}

    .header-home-btn:hover {
        background-color: #e69500;
        color: #ffffff;
        text-decoration: none;
    }

    .header-home-btn .glyphicon {
        margin-right: 5px;
    }

/* MOBILE */

@media (max-width: 768px) {

    .convene-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .header-left {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
    }

    .header-right {
        text-align: center;
    }

    .header-home-btn {
        width: 100%;
        display: block;
    }

    .convene-title {
        font-size: 18px;
    }
}


.page-navigation {
    margin-bottom: 15px;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    color: #0b2e4a;
    font-weight: 600;
    font-size: 14px;
    padding: 8px 12px;
    border: 1px solid #d6dce3;
    border-radius: 4px;
    background-color: #fff;
    transition: all 0.2s ease;
}

    .btn-back:hover {
        background-color: #f4f6f9;
        color: #1f5f99;
        text-decoration: none;
    }

@media (max-width: 576px) {
    .btn-back {
        width: 100%;
        justify-content: center;
    }
}


.search-panel {
    background: #fff;
    border: 1px solid #d9e2ec;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 8px rgba(0,0,0,.05);
}

.search-header {
    font-size: 20px;
    font-weight: 600;
    color: #1f5f99;
    margin-bottom: 18px;
}

.search-row {
    display: flex;
    gap: 15px;
    align-items: flex-end;
}

.search-field {
    flex: 1;
}

.search-field-large {
    flex: 2;
}

.search-label {
    display: block;
    margin-bottom: 8px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.search-control {
    height: 48px;
    font-size: 15px;
    border-radius: 6px;
}

.btn-search {
    height: 48px;
    min-width: 140px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
}

.search-button {
    min-width: 150px;
}

@@media (max-width: 768px) {

    .search-row {
        flex-direction: column;
        align-items: stretch;
    }

    .search-field,
    .search-field-large,
    .search-button {
        width: 100%;
    }

    .btn-search {
        width: 100%;
    }
}


/* Full screen vertical centering */
#otpModal .modal-dialog {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 500px;
    max-width: 95%;
    transform: translate(-50%, -50%);
    margin: 0;
}

.otp-modal-content {
    border-radius: 12px;
    padding: 10px;
    box-shadow: 0 10px 35px rgba(0,0,0,.25);
}

.modal-title {
    text-align: center;
    font-size: 24px;
    font-weight: 600;
    color: #1f5f99;
}

.otp-message {
    text-align: center;
    font-size: 15px;
    margin-bottom: 20px;
}

.otp-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
}

.otp-input {
    width: 55px;
    height: 60px;
    text-align: center;
    font-size: 28px;
    font-weight: bold;
    border: 2px solid #d9d9d9;
    border-radius: 8px;
}

    .otp-input:focus {
        border-color: #1f5f99;
        outline: none;
    }

.otp-timer {
    text-align: center;
    font-size: 18px;
    font-weight: 600;
    color: #d9534f;
    margin-bottom: 10px;
}

.modal-footer {
    text-align: center;
    border-top: none;
}

.btn-lg {
    min-width: 140px;
}