/* ==============================
   Root Variables
   ============================== */
:root {
    --color-bg: #6d6d6d;
    /* page background */
    --color-white: #ffffff;
    --color-black: #000000;
    --color-primary: #4caf50;
    /* green */
    --color-border: #dedede;
    --font-main: "Tahoma", sans-serif;
    --bg-main: url("../imgs/bg_main.jpg");
}

/* ==============================
   Global Reset
   ============================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--bg-main);
    color: var(--color-black);
}

.mt {
    margin-top: 20px;
}

/* ==============================
   Language Switch (top bar)
   ============================== */
.lang-switch {
    text-align: right;
    max-width: 720px;
    margin: 10px auto;
    font-size: 13px;
}

.lang-switch a {
    text-decoration: none;
    color: var(--color-white);
    margin: 0 5px;
}

.lang-switch a:hover {
    text-decoration: underline;
}

/* ==============================
   Container
   ============================== */
.container {
    max-width: 820px;
    padding: 20px;
    margin: 0 auto 40px;
    background: var(--color-white);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    overflow: hidden;
}

/* ==============================
   Logos
   ============================== */
.logos {
    text-align: center;
    padding: 20px;
}

.logos img {
    max-width: 100%;
    height: auto;
}

/* ==============================
   Breadcrumb
   ============================== */
.nav {
    font-size: 14px;
    padding: 10px 20px;
    color: var(--color-black);
    border: solid 1px var(--color-border);
}

/* ==============================
   Content Columns
   ============================== */
.content-columns {
    display: flex;
    justify-content: space-between;
    padding: 25px;
    gap: 20px;
}

.col {
    flex: 1;
}

.box-title {
    background: var(--color-black);
    color: var(--color-white);
    padding: 12px;
    font-weight: bold;
    border-radius: 6px;
    text-align: center;
}

.text {
    background-color: #519c4a;
    text-align: center;
    border: 3px solid #519c4a;
    color: black !important;
    border-radius: 10px;
    margin: 9px 0 12px;
    text-transform: none;
    font-weight: bold;
    width: 460px;
    text-shadow: #bd8d46 3px 3px 2px;
    display: block;
}

.blk-text {
    display: flex;
    justify-content: space-between;
    /* text left, icon right */
    align-items: center;
    background: #000;
    color: #fff;
    border-radius: 12px;
    width: 250px;
    /* fixed width like image */
    height: 65px;
    /* fixed height */
    padding: 10px 18px;
    /* inner spacing */
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

.blk-text span {
    display: block;
    font-weight: bold;
    font-size: 18px;
    line-height: 1.2;
}

.blk-text small {
    display: block;
    font-size: 13px;
    font-weight: normal;
    opacity: 0.9;
}

.blk-text img {
    width: 48px;
    height: auto;
    margin-left: 10px;
    filter: brightness(0) invert(1);
    /* turn black icon → white */
}


.box-title.green {
    background: var(--color-primary);
}

.serial-box {
    border: 2px solid #000;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
}

.serial-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 15px;
}

.serial-header img.arrow {
    width: 20px;
    height: auto;
}

.serial-inputs {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.group {
    display: flex;
    flex-direction: column;
    position: relative;
}

.group label {
    font-size: 13px;
    font-weight: bold;
    margin-bottom: 3px;
}

.group input {
    padding: 6px 6px 6px 24px;
    /* leave space for icon */
    border: 1px solid #ccc;
    font-size: 14px;
    background: #eee;
}

.group input:disabled {
    width: 45px;
    text-align: center;
}

.req-icon {
    position: absolute;
    left: 6px;
    bottom: 9px;
    width: 12px;
    height: 12px;
}

.error {
    display: none;
    color: red;
    font-size: 12px;
    margin-top: 3px;
}

.btn-wrap {
    text-align: right;
}

.serial-box button {
    background: #eaeaea;
    border: 1px solid #000;
    padding: 4px 16px;
    cursor: pointer;
    font-size: 14px;
}

.footer {
    position: relative;
    margin: 0px;
    padding: 0px;
}

.footer-bar {
    background: #7a0000;
    color: #fff;
    text-align: center;
    padding: 6px 0;
    font-size: 14px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
}

.version {
    font-size: 12px;
    color: #ddd;
    position: absolute;
    right: 10px;
    bottom: -18px;
    /* يطلع تحت الشريط الأحمر */
}


/* ==============================
   Responsive
   ============================== */
@media (max-width: 768px) {
    .content-columns {
        flex-direction: column;
        align-items: stretch;
    }
}

/* ==============================
   Page Number 2
   ============================== */

/* Title button */
.card-title {
    background: #4CAF50;
    /* green */
    color: #000;
    font-weight: bold;
    text-align: center;
    padding: 10px 0;
    margin: 15px 0;
    border-radius: 8px;
}

/* Card info (3 columns) */
.card-info {
    display: flex;
    justify-content: space-between;
    border: 1px solid #ccc;
    padding: 10px;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Gray boxes */
.box.gray {
    background: #eee;
    border: 1px solid #ccc;
    margin-bottom: 15px;
    padding: 12px;
    border-radius: 4px;
}

.box.gray h4 {
    margin: 0 0 5px 0;
}

/* Card number box (green background) */
.card-box {
    background: url("../imgs/HafilatCard.jpg") no-repeat center/cover;
    border: 1px solid #ccc;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #000;
}

.card-box .serial {
    font-size: 18px;
    font-weight: bold;
}

/* Info box */
.info-box {
    background: #f5f2e8;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 12px;
}

.info-box h4 {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.info-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.info-box ul li {
    margin-bottom: 5px;
}

.info-box ul li a {
    text-decoration: none;
    color: #000;
    font-size: 14px;
}