/* ===========================================
   PDF to Excel - Layout & Form Elements (Part 3)
   =========================================== */

/* ===== Buttons ===== */
.p2e-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 30px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-family: inherit;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.3px;
}

.p2e-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.6s ease;
}

.p2e-btn:hover::before {
    left: 100%;
}

/* ----- Primary (Red Gradient) ----- */
.p2e-btn-primary {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #a93226 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.35);
}

.p2e-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(231, 76, 60, 0.5);
}

.p2e-btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(231, 76, 60, 0.3);
}

.p2e-btn-primary:disabled {
    background: linear-gradient(135deg, #e0a0a8 0%, #d09098 100%);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* ----- Secondary (Gray Gradient) ----- */
.p2e-btn-secondary {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    color: #495057;
    border: 1px solid #ced4da;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.p2e-btn-secondary:hover {
    background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 50%, #ced4da 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* ----- Excel Download (Green→Teal Gradient) ----- */
.p2e-btn-excel {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: #fff;
    box-shadow: 0 4px 15px rgba(17, 153, 142, 0.4);
}

.p2e-btn-excel:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(17, 153, 142, 0.55);
}

.p2e-btn-excel:active {
    transform: translateY(0);
}

/* ----- Text Link Button ----- */
.p2e-btn-text {
    background: none;
    color: var(--p2e-red);
    padding: 8px 12px;
    font-size: 13px;
    box-shadow: none;
}

/* Inside gradient buttons, the text must be white (not red) */
.p2e-btn-primary .p2e-btn-text,
.p2e-btn-excel .p2e-btn-text {
    color: #fff;
}

.p2e-btn-text:hover {
    text-decoration: underline;
    transform: none;
    box-shadow: none;
}

/* ----- Large (Full Width) ----- */
.p2e-btn-large {
    width: 100%;
    justify-content: center;
    padding: 15px 30px;
    font-size: 16px;
}

/* ----- Browse Button ----- */
.p2e-browse-btn {
    margin-top: 5px;
}

/* ===== Options ===== */
.p2e-options {
    margin-top: 25px;
}

.p2e-form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.p2e-form-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--p2e-text);
}

.p2e-select {
    padding: 10px 14px;
    border: 1px solid var(--p2e-border);
    border-radius: var(--p2e-radius-sm);
    font-size: 14px;
    background: #fff;
    color: var(--p2e-text);
    font-family: inherit;
    cursor: pointer;
    transition: border-color 0.3s;
}

.p2e-select:focus {
    outline: none;
    border-color: var(--p2e-red);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.15);
}

/* ===== Free Info Box ===== */
.p2e-free-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    padding: 14px 18px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--p2e-radius-sm);
}

.p2e-free-icon {
    font-size: 28px;
    flex-shrink: 0;
}

.p2e-free-text {
    font-size: 14px;
    color: #856404;
}

.p2e-free-text strong {
    color: #dc3545;
}

/* ===== Price Box ===== */
.p2e-price-box {
    margin-top: 20px;
    padding: 20px;
    background: var(--p2e-red-bg);
    border: 1px solid var(--p2e-red-light);
    border-radius: var(--p2e-radius-sm);
}

.p2e-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 14px;
    min-width: 0;
    gap: 8px;
}

#p2e-display-filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    max-width: 70%;
}

.p2e-price-amount {
    font-weight: 700;
    font-size: 18px;
    color: var(--p2e-red);
}

.p2e-price-row + .p2e-btn {
    margin-top: 16px;
}
