* {
    font-family: "Arvo", serif;
}

.btn-red-lighten {
    background-color: rgb(246, 96, 85) !important;
    color: white !important;
    transition: background-color 0.3s ease;
}

.btn-red-lighten:hover {
    background-color: rgb(230, 80, 70) !important;
    /* Slightly darker red */
}

.btn-blue-darken {
    background-color: #073364 !important;
    color: white !important;
    transition: background-color 0.3s ease;
}

.btn-blue-darken:hover {
    background-color: #0a3e85 !important;
    /* Slightly darker blue */
}

.app-logo {
    width: 330px;
    height: auto;
}

.layout-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 85vh;
}

.hc-layout-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 110vh;
}

/* === ID CLASSES === */
.id-card-image {
    width: 100%;
    height: auto;
    display: block;
}

.id-deped,
.id-division,
.id-sds,
.id-emergency {
    font-weight: 700;
}

.id-designation {
    position: absolute;
    top: -10%;
    left: 95%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 28px;
    color: white;
    padding: 0.5rem;
    line-height: 1.2;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    white-space: pre-line;
    width: 75px;
    height: 370px;
}

.id-fname {
    font-size: 20px;
    margin-top: -10px !important;
}

.id-idno {
    font-size: 16px;
    margin-top: 40px;
}

.id-image {
    width: 158px;
    max-height: 175px;
}

.id-info {
    color: white;
    position: absolute;
    top: 36%;
    left: 5%;
    width: 290px;
}

.id-lname {
    font-size: 26px;
    font-weight: bold;
}

.id-school {
    font-size: 15px;
    color: black;
    margin-top: 14px;
}

.other-school {
    width: 240px;
    font-size: 15px;
    margin-top: 14px;
    position: absolute;
    top: 26%;
}

.id-unit {
    top: 55%;
    left: 39%;
    font-size: 18px;
    line-height: 1;
    margin: 0;
    padding: 0;
    letter-spacing: 0;
    max-width: 270px;
    height: 54px;
}

/* === HEALTH CARD (HC) CLASSES === */
.health-card-back-image {
    width: 500px;
    height: auto;
    position: absolute;
    left: 0%;
    top: 0%;
}

.health-card-image {
    width: 500px;
    height: auto;
}

.health-id-fname {
    font-size: 20px;
    color: white;
    font-weight: bold;
    margin-top: -5px !important;
}

.health-id-image {
    width: 140px;
    max-height: 145px;
    border: 1px solid gray;
}

.health-id-info {
    color: black;
    position: absolute;
    top: 36%;
    left: 6%;
    width: 290px;
}

.health-id-lname {
    font-size: 22px;
    font-weight: bold;
}

.health-image-container {
    position: absolute;
    left: 59%;
    top: 33%;
}

.health-info-table {
    width: 55%;
    border-collapse: collapse;
    position: absolute;
    top: 57%;
    left: 3%;
}

.health-table-data {
    font-weight: 700;
    word-wrap: break-word;
    white-space: normal;
    max-width: 400px;
}

.health-table-title {
    white-space: nowrap;
    text-align: right !important;
}

.health-table-title,
.health-table-data {
    font-size: 10.5px !important;
    vertical-align: top;
    padding: 0px 8px;
}

/* === GENERAL CLASSES === */
.body-header-paper {
    background-color: #073364 !important;
    padding: 10px;
}

.emergency-contact {
    position: absolute;
    width: 55%;
    left: 4.5%;
    font-size: 10px;
    top: 86.5%;
}

.emergency-container,
.qrcode-container {
    margin-top: 5px;
    padding: 5px;
    border: 1px solid black;
}

.emergency-data {
    font-weight: 700;
}

.flip-card {
    width: 400px;
    height: 580px;
    perspective: 1000px;
}

.flip-card-hc {
    width: 400px;
    height: 580px;
    perspective: 1000px;
}

.flip-card-back {
    padding: 20px;
    color: black;
    text-align: center;
    transform: rotateY(180deg);
}

.flip-card-hc {
    width: 500px;
    height: 580px;
    perspective: 1000px;
}

.flip-card-back-hc {
    padding: 20px;
    color: black;
    text-align: center;
    transform: rotateY(180deg);
}

.flip-card-front {
    background-color: transparent !important;
    color: black;
}

.flip-card-front-hc {
    background-color: transparent !important;
    color: black;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border: 1px solid gray;
}

.flip-card-inner-hc {
    position: relative;
    width: 100%;
    height: 52.5%;
    transition: transform 0.6s;
    transform-style: preserve-3d;
    border: 1px solid gray;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-hc:hover .flip-card-inner-hc {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.flip-card-front-hc,
.flip-card-back-hc {
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}

.more-info-hc {
    position: absolute;
    text-align: justify;
    top: 14%;
    left: 5%;
}

.more-info-title {
    margin-top: 4px;
}

.more-info-title,
.more-info-data {
    font-size: 11px;
}

.more-info-data {
    font-weight: 700;
    margin-left: 34px;
}

.guid-school {
    position: absolute;
    width: 30%;
    font-size: 9px;
    font-weight: 700;
    text-align: center;
    top: 82%;
    left: 58.5%;
}

.header-text {
    margin-top: 14px;
}

.image-container {
    position: absolute;
    left: 55%;
    top: 71%;
}

.info-body-header-paper {
    background-color: #f5f5f5 !important;
    padding: 10px;
    justify-content: center;
    align-items: center;
    display: flex;
    flex-direction: column;
}

.info-body-header-paper .mud-typography {
    color: #1f1f1f !important;
    font-weight: 700;
}

.mud-popover .mud-list-item,
.mud-popover .mud-list-item-text,
.mud-popover .mud-typography,
.user-dropdown-menu .mud-typography {
    color: #333333 !important;
}

.info-table {
    width: 100%;
    border-collapse: collapse;
}

.info-table td {
    text-align: justify !important;
    vertical-align: top;
}

.logo {
    width: 90px;
    height: auto;
}

.mud-typography {
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    color: white;
}

.officer-in-charge {
    margin-top: 30px !important;
}

.qrcode {
    width: 180px;
    height: auto;
}

.signed-container {
    position: absolute;
    left: 46%;
    top: 20%;
}

.signed-container .signed {
    width: 34px !important;
    height: auto !important;
}

.signatory-container {
    margin-top: 30px;
}

.signatory-name {
    font-weight: 700;
    text-decoration: underline;
}

.table-data {
    font-weight: 700;
    word-wrap: break-word;
    white-space: normal;
    max-width: 400px;
}

.table-title {
    white-space: nowrap;
    text-align: right !important;
}

.table-title,
.table-data {
    font-size: 11px !important;
    vertical-align: top;
    padding: 2px 8px;
}

.mud-popover .mud-list-item,
.mud-popover .mud-list-item * {
    color: rgba(66, 66, 66, 1) !important;
}

/* LOGIN CSS */
.login-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem;
}

.login-title {
    text-align: center;
}

.form-group {
    margin-bottom: 1rem;
}

.form-control {
    margin-bottom: 10px !important;
}

.btn-primary {
    width: 100%;
    padding: 0.5rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-primary:hover:not(:disabled) {
    background-color: #0056b3;
}

.btn-primary:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
}

.alert-danger {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.validation-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: -0.5rem;
    margin-bottom: 0.5rem;
}

.spinner-border {
    width: 1rem;
    height: 1rem;
    border-width: 0.2em;
}

.alert-info {
    color: #0c5460;
    background-color: #d1ecf1;
    border: 1px solid #bee5eb;
    padding: 0.75rem;
    margin-bottom: 1rem;
    border-radius: 4px;
}

.debug-message {
    max-height: 200px;
    overflow-y: auto;
    font-family: monospace;
    white-space: pre-wrap;
    word-break: break-all;
}

.debug-message pre {
    margin: 0;
    padding: 0;
}

.custom-user-table {
    width: 100%;
    border-collapse: collapse;
}

.custom-user-table th {
    border-bottom: 2px solid #e0e0e0;
    padding: 12px 16px;
    font-weight: 600;
    color: #424242;
    font-size: 0.95rem;
}

.custom-user-table td {
    border-bottom: 1px solid #eeeeee;
    padding: 8px 16px;
    vertical-align: middle;
    font-size: 0.9rem;
}

.custom-user-table tr:hover {
    background-color: #f9fafb;
}

.user-input-cell .mud-input-slot {
    font-size: 0.9rem !important;
    padding: 4px 0 !important;
}

.user-role-select .mud-input-slot {
    font-size: 0.9rem !important;
    color: #424242 !important;
}

.user-guid-text {
    font-family: monospace;
    font-size: 0.85rem;
    color: #333333;
    letter-spacing: 0.5px;
}