
@import url('https://fonts.googleapis.com/css2?family=Libre+Baskerville:wght@400;700&family=Roboto:wght@400;500&display=swap');

.tpd-container {
    max-width: 700px;
    margin: 30px auto;
    font-family: 'Roboto', sans-serif;
    background: transparent;
    color: #fff;
}

/* Tabs */
.tpd-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255,255,255,0.3);
    margin-bottom: 20px;
}
.tpd-tab {
    flex: 1;
    padding: 12px;
    text-align: center;
    cursor: pointer;
    font-weight: bold;
    color: rgba(255,255,255,0.7);
    border: 1px solid transparent;
    transition: 0.3s;
}
.tpd-tab:hover { color: #fff; }
.tpd-tab.active {
    color: #fff;
    border: 1px solid rgba(255,255,255,0.3);
    border-bottom: 1px solid transparent;
    background: rgba(255,255,255,0.1);
    border-radius: 5px 5px 0 0;
}

/* Form */
.tpd-content { margin-bottom: 30px; }
.tpd-form { display: none; }
.tpd-form.active { display: block; }

.tpd-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.tpd-col input {
    padding: 12px;
    border: none;
    border-radius: 4px;
    text-align: center;
    font-size: 16px;
    background: #fff;
    color: #333;
}
.tpd-col.small input { width: 70px; }
.tpd-col.large { flex: 1; min-width: 180px; }

/* Select */
.tpd-select { position: relative; }
.sel-head {
    padding: 12px;
    background: #fff;
    color: #333;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
}
.sel-body {
    position: absolute;
    top: 105%; left: 0; right: 0;
    background: #fff;
    color: #333;
    max-height: 300px;
    overflow-y: auto;
    z-index: 999;
    display: none;
    border-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}
.sel-opt {
    padding: 10px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.sel-opt:hover { background: #f5f5f5; }
.sel-opt img { height: 30px; }

/* Button (RED COLOR) */
button[type="submit"] {
    background-color: #9d2c1e; /* اللون الأحمر المطلوب */
    color: #ffffff;
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    transition: 0.2s;
}
button[type="submit"]:hover { 
    background-color: #7a2217; /* درجة أغمق عند التحويم */
    transform: translateY(-1px);
}

/* Result Table */
#tpd-result-area { display: block; } /* يظهر دائماً */

.tpd-table {
    width: 100%;
    border-collapse: collapse;
    background: rgba(0,0,0,0.4); /* خلفية داكنة للجدول لتباين أفضل */
    border: 1px solid rgba(255,255,255,0.2);
    color: #fff;
}
.tpd-table th, .tpd-table td {
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.2);
}
.tpd-table thead th {
    background: rgba(255,255,255,0.1);
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Libre Baskerville', serif;
}
.tpd-table .row-head {
    font-weight: bold;
    background: rgba(255,255,255,0.05);
    width: 15%;
    font-family: 'Libre Baskerville', serif;
}
.tpd-table td { font-size: 18px; vertical-align: middle; }

/* Images inside table */
.doc-img {
    display: block;
    margin: 8px auto 0 auto;
    height: 40px;
    background: rgba(255,255,255,0.9);
    padding: 3px;
    border-radius: 4px;
}

/* جعل الصور داخل الجدول بيضاء باستخدام الفلتر */
.tpd-table .doc-img {
    filter: invert(100%) brightness(200%); 
    /* invert: يقلب الأسود أبيض */
    /* brightness: يزيد السطوع للتأكد */
}


