/*
Plugin: Press ID Card Generator
File: style.css
Description: Contains all custom styling for the ID Card, Team List, and Appointment Letter.
*/

/* =======================================
// 1. ID Card General Styles ([press_id])
// ======================================= */

.idcard-wrapper {
    /* Fixed ID card size for a standard look, adjusts with max-width */
    max-width: 400px;
    margin: 10px auto;
    border: 2px solid #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    color: #000;
    overflow: hidden;
}

.idcard-front {
    /* Separator if needed, but the wrapper border handles it */
}

.idcard-header {
    background-color: #b30000;
    color: #fff;
    text-align: center;
    padding: 10px 10px !important;
}

.idcard-press-title {
    font-size: 48px !important;
    margin-bottom: 0;
    line-height: 48px;
    font-weight: 900;
}

.idcard-header p {
    font-size: 20px;
    margin-bottom: 0px;
	font-weight: 600;
}

.idcard-license {
    font-size: 12px !important;
    line-height: 14px !important;
}

.idcard-channel {
    display: flex;
    align-items: center;
    padding: 5px 10px;
    border-bottom: 1px solid #ccc;
    background-color: #fff;
}

.idcard-logo-img {
    width: 160px;
    height: 70px;
    margin-right: 10px;
    flex-shrink: 0;
}

.idcard-channel-infotext {
    flex-grow: 1;
    font-size: 10px;
    line-height: 1.2;
	text-align: center;
}

.channel-name {
    display: block;
    font-size: 12px;
    color: #b30000;
	text-align: center;
    font-weight: bold;
}

.channel-address-mobile {
    margin: 2px 0;
    font-size: 9px;
	padding: 0px 5px 0px 0px;
	text-align:center;
}

.channel-web-link {
    color: #b30000;
    font-weight: bold;
    text-decoration: none;
	  padding:0px 5px 0px 0px;
	text-align: center;
}

.idcard-type {
    text-align: center;
    font-size: 16px;
    font-weight: bold;
    background-color: #B92C23;
    padding: 1px 0;
	color:#fff;
}

.idcard-content-area {
    padding: 5px 10px;
    background-color: #fff;
}

/* ID Card Body (Photo/QR Section) */
.idcard-photo-box {
    width: 150px;
    height: 125px;
    overflow: hidden;
    flex-shrink: 0;
    border: 1px solid #ccc;
}

.idcard-photo-box .id-photo {
    width: 100%;
    height: 100%;

    display: block;
}

.idcard-stamp-img {
    position: absolute;
    top: 70px !important;
    left: 120px !important;
    width: 85px !important;
    height: 60px !important;
    opacity: 0.8;
    pointer-events: none;
    max-width: none;
	z-index:999!important;
}

.idcard-qr-section {
    flex-grow: 1;
    margin-top: 5px;
}

.idcard-number {
    font-size: 12px;
    display: block;
    margin-bottom: 5px;
}

.idcard-qr-code {
    border: 1px solid #000;
}

.idcard-member-data {
    margin-top: 0px; 
padding: 0px 10px 2px 10px;
}

.idcard-table tr td {
    padding: 1px 0;
    font-size: 12px;
    line-height: 1.3;
}

.idcard-table tr td:first-child {
    font-weight: bold;
    width: 35%;
}

/* ID Card Back (Footer) */
.idcard-back {
    /* Full back design can go here if provided */
}

.idcard-back-footer {
    background-color: #b30000;
    color: #fff;
      border-radius: 30px 30px 0px 0px;
    padding:10px 10px 10px 10px;
}

.idcard-cancellation-notice {
    text-align: center;
    font-size: 8px;
    font-weight: bold;
    color: #fff;
}

.idcard-instructions {
    font-size: 10px;
}

.instructions-title {
    display: block;
    margin-bottom: 0px;
    font-size: 10px;
    font-weight: bold;
    text-decoration: underline;
}

.instructions-list {
    padding-left: 0px;
    margin-bottom: 0;
    list-style-type: decimal;
}

.instructions-list li {
    margin-bottom: 2px;
    line-height: 12px!important;
	font-size:8px;
}

/* =======================================
// 2. Button Styles (Shared)
// ======================================= */

.button-group {
 
    justify-content: center;
    gap: 0px;
    flex-wrap: wrap; /* Allows wrapping on smaller screens */
}

.viewidcard, .appoinment_letter {
    text-decoration: none;
    padding: 10px 16px;
    border-radius: 5px;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, box-shadow 0.2s ease;
    display: inline-block;
}

.viewidcard {
    background-color: #b30000 !important;
    color: #ffffff !important;
}

.viewidcard:hover {
    background-color: #d90000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    text-decoration: none;
    cursor: pointer;
}

.appoinment_letter {
    background-color: #000 !important;
    color: #ffffff !important;
}

.appoinment_letter:hover {
    background-color: #444;
    box-shadow: 0 2px 10px rgba(0,0,0,0.4);
    text-decoration: none;
    cursor: pointer;
}

/* =======================================
// 3. Team List Styles ([press_team_list])
// ======================================= */

.press-filter-form {
    padding: 10px 0;
    background-color: #f8f8f8;
    border: 1px solid #eee;
    padding: 15px;
    border-radius: 5px;
}

.filter-label {
    font-size: 16px;
    font-weight: normal;
    margin-right: 15px !important;
}

.filter-select {
    max-width: 250px;
    /* Uses Bootstrap classes for width/styling */
}

.press-team-list {
    margin-top: 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.press-member-item {
    padding: 15px;
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: center;
	    width: 370px;
}

.no-members-found {
    font-size: 18px;
    color: #b30000;
    margin-top: 30px;
}

/* =======================================
// 4. Appointment Letter Styles ([press_appointment_letter])
// ======================================= */

.error-message {
    color: red;
    text-align: center;
    font-size: 18px;
    padding: 20px;
}

.appointment-letter-pad {
    font-family: serif;
    width: 853px;
    margin: auto;
	overflow: scroll;
    padding: 225px 55px 20px 55px;
    position: relative;
    /* Desktop Letterhead Background Image (A4 Landscape aspect) */
    background-image: url('https://gujaratdarshansamachar.com/wp-content/uploads/2025/09/WhatsApp-Image-2025-09-29-at-15.04.18_dc62b615.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    width: 853px;
    height: 1280px; /* Fixed height for A4 simulation */
    color: #000;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    line-height: 1.5;
}

.letter-header-meta {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    margin-bottom: 20px;
    font-size: 16px;
}

.letter-title {
    text-align: center;
    text-decoration: underline;
    margin-bottom: 20px;
    font-size: 24px;
}

.letter-main-content {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    font-size: 16px;
}

.letter-photo-section {
    flex: 0 0 160px;
    text-align: center;
    position: relative;
}

.letter-photo, .no-photo {
    width: 120px;
    height: 120px;
/*     object-fit: cover; */
    border: 1px solid #000;
    margin: 0 auto;
    display: block;
}

.top-left-stamp-img {
    position: absolute;
    top: 62px;
    left: 108px;
    width: 93px;
    height: 65px;
    opacity: .9;
    pointer-events: none;
    max-width: none;
}

.letter-signature-text {
    margin-top: 30px;
    font-size: 14px;
}

.letter-member-details-body {
    flex: 1;
    min-width: 300px;
}

.member-details-list {
    margin-bottom: 20px;
}

.letter-appointment-text p {
    margin-bottom: 15px;
    text-align: justify;
}

.letter-footer-notes {
    margin-top: 30px;
    font-size: 15px;
}

.justice-center {
    font-style: italic;
    margin-top: 10px;
}

.letter-authority-signature {
    text-align: right;
    margin-top: 40px;
    font-weight: bold;
    font-size: 16px;
    position: relative;
    line-height: 1.4;
    padding-right: 20px; /* Space for the stamp */
}

/* Stamp position relative to the signature block */
.signature-stamp-img {
    position: absolute;
    bottom: 20px; /* Adjusting for the fixed A4 height */
    right: 35px;
      width: 114px;
    height: 72px;
    opacity: 0.7;
    pointer-events: none;
    max-width: none;
}

.letter-copy-sent {
    margin-top: 30px;
    font-size: 14px;
}

/* =======================================
// 5. Mobile Responsiveness (Media Queries)
// ======================================= */

/* --- Tablet / Small Laptop / Letterhead Scaling --- */


/* Press ID Card Table Borders */
.idcard-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.idcard-table td {
    border: 0px solid #000; /* solid black border */
    padding: 4px 8px;
}
