:root {
    --evm-border: #333;
    --evm-led-off: #400;
    --evm-led-on: #ff0000;
    --evm-btn-blue: #0072ff;
    --evm-btn-shadow: #0072ff;
}

/* ADMIN PANEL STYLING */
.evm-pro-admin .evm-admin-flex { display: flex; gap: 30px; margin-top: 20px; }
.evm-card-form { flex: 1; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.evm-card-list { flex: 1.5; background: #fff; padding: 25px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.f-row { margin-bottom: 15px; display: flex; gap: 10px; }
.f-row input { flex: 1; padding: 8px; border: 1px solid #ddd; border-radius: 4px; }
.media-row input { flex: 2; }

/* FRONTEND LINEAR UI - WHITE BG */
.evm-ultimate-wrapper.linear-ui {
    max-width: 1000px;
    margin: 20px auto;
    background: #ffffff;
    border: 3px solid #000;
    border-radius: 4px;
    padding: 15px;
    font-family: 'Inter', sans-serif;
    box-sizing: border-box;
    overflow: hidden; /* Prevent scrolling as requested */
}

.evm-linear-row {
    display: flex;
    flex-direction: row; 
    flex-wrap: nowrap;   
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
}

/* Column 1: Names - Multiple lines enabled */
.col-name {
    flex: 2.5;
    padding-right: 15px;
    border-right: 2px solid #eee;
    word-wrap: break-word;
    overflow-wrap: break-word;
    min-width: 0; 
}
.col-name .en { 
    display: block;
    font-weight: 900; 
    font-size: 1.8rem;
    color: #000; 
    line-height: 1.1; 
    text-transform: uppercase;
    margin-bottom: 5px;
    white-space: normal;
}
.col-name .local { 
    display: block;
    font-size: 1.3rem;
    font-weight: 700; 
    color: #333; 
    white-space: normal;
}

/* Column 2: Photo */
.col-photo {
    flex: 0 0 90px;
    display: flex;
    justify-content: center;
}
.col-photo img {
    width: 80px;
    height: 100px;
    object-fit: cover;
    border: 2px solid #000;
}

/* Column 3: Symbol - Name BELOW Symbol, smaller font */
.col-symbol {
    flex: 1.5;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    border-left: 2px solid #eee;
    border-right: 2px solid #eee;
    padding: 0 10px;
}
.sym-box img { 
    width: 85px;
    height: 85px;
    object-fit: contain; 
}
.sym-name { 
    font-size: 0.9rem; 
    font-weight: 800; 
    color: #000; 
    text-transform: uppercase;
    text-align: center;
}

/* Column 4: Indicator */
.col-indicator {
    flex: 0 0 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.arrow-icon { font-size: 2.5rem; color: #000; font-weight: bold; line-height: 1; }
.led-light { background: #000; padding: 5px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.led { width: 18px; height: 18px; background: var(--evm-led-off); border-radius: 50%; }
.led.blinking {
    background: var(--evm-led-on);
    box-shadow: 0 0 15px var(--evm-led-on);
    animation: led-glow 0.3s infinite alternate;
}

@keyframes led-glow { from { opacity: 0.4; } to { opacity: 1; } }

/* Column 5: Button - Center text */
.col-button {
    flex: 1.5;
    display: flex;
    justify-content: center;
    align-items: center;
}

.evm-vote-btn {
    position: relative;
    display: inline-block;
    padding: 15px 20px;
    margin: 5px;
    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    color: #fff;
    background-image: linear-gradient(to bottom right, #00c6ff, #0072ff);
    border: none;
    border-radius: 40px;
    box-shadow: 0px 4px 0px var(--evm-btn-shadow);
    transition: all 0.2s ease-in-out;
    cursor: pointer;
    outline: none;
    white-space: nowrap;
    text-align: center;
}

.evm-vote-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0px 6px 0px var(--evm-btn-shadow);
}

.evm-vote-btn:active {
    transform: translateY(0px);
    box-shadow: none;
    background-image: linear-gradient(to bottom right, #0072ff, #00c6ff);
}

.evm-vote-btn:before,
.evm-vote-btn:after {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
}

.evm-vote-btn:before {
    top: -3px;
    left: -3px;
    border-radius: 40px;
    border-top: 3px solid #fff;
    border-left: 3px solid #fff;
}

.evm-vote-btn:after {
    bottom: -3px;
    right: -3px;
    border-radius: 40px;
    border-bottom: 3px solid #fff;
    border-right: 3px solid #fff;
}

/* Hide the dot/icon span per request */
.btn-top { display: none; }
.btn-btm { font-size: 1.2rem; letter-spacing: 1px; font-weight: 900; }

.evm-voted-msg { color: #2ecc71; font-weight: bold; font-size: 1rem; margin-top: 5px; text-align: center; width: 100%; }

/* Modal */
.evm-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); z-index: 999999; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.popup-img { max-width: 90vw; max-height: 80vh; border: 8px solid #fff; border-radius: 12px; }

/* MOBILE FRIENDLY - ENSURING FULL CONTENT IN SAME PAGE WITHOUT SCROLL */
@media (max-width: 768px) {
    .evm-ultimate-wrapper.linear-ui {
        padding: 8px 6px;
    }
    .evm-linear-row {
        gap: 6px;
    }
    
    .col-name { 
        padding-right: 6px; 
    }
    .col-name .en { font-size: 1.05rem; } /* Increased from 0.9rem */
    .col-name .local { font-size: 0.85rem; } /* Increased from 0.75rem */
    
    .col-photo { flex: 0 0 55px; }
    .col-photo img { width: 50px; height: 65px; }
    
    .col-symbol { 
        flex: 1.2; 
        padding: 0 4px;
    }
    .sym-box img { width: 55px; height: 55px; } /* Increased from 45px */
    .sym-name { font-size: 0.65rem; } /* Increased from 0.55rem */
    
    .col-indicator { flex: 0 0 50px; gap: 4px; }
    .arrow-icon { font-size: 1.4rem; }
    .led-light { padding: 3px; }
    .led { width: 13px; height: 13px; }
    
    .col-button { flex: 1.4; }
    .evm-vote-btn { 
        padding: 10px 10px; 
        font-size: 12px; 
        min-width: 0;
        width: 100%;
        border-radius: 30px;
    }
    .btn-btm { font-size: 0.8rem; letter-spacing: 0; }
    
    .evm-vote-btn:before, .evm-vote-btn:after { display: none; } 
}