/* Modal Styles */
.post-pdf-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    backdrop-filter: blur(5px);
}

.post-pdf-modal .modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    padding: 50px 30px 30px 30px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    position: relative;
    font-family: inherit;
}

.post-pdf-modal .close {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.post-pdf-modal .close:hover,
.post-pdf-modal .close:focus {
    color: #333;
    text-decoration: none;
    cursor: pointer;
}

/* Form Styles */
.post-pdf-email-form .form-group {
    margin-bottom: 20px;
}

.post-pdf-email-form input[type="text"],
.post-pdf-email-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin: 5px 0 0 0;
    display: block;
    border: 1px solid #ccc !important; 
    border-radius: 0;
    box-sizing: border-box;
    background-color: #fff;
    font-size: 16px;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.post-pdf-email-form input[type="text"]:focus,
.post-pdf-email-form input[type="email"]:focus {
    border-color: #4CAF50 !important;
    outline: none;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.post-pdf-email-form button {
    width: 100%;
    background-color: #4CAF50;
    color: white;
    padding: 14px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.3s, transform 0.1s;
}

.post-pdf-email-form button:hover {
    background-color: #45a049;
}

.post-pdf-email-form button:active {
    transform: translateY(1px);
}

.post-pdf-email-form button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.post-pdf-message {
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0;
    font-size: 15px;
    display: none;
    text-align: center;
    line-height: 1.4;
}

.post-pdf-message.error {
    background-color: #fce8e6;
    color: #c53030;
    border: 1px solid #feb2b2;
}

.post-pdf-message.success {
    background-color: #c6f6d5;
    color: #276749;
    border: 1px solid #9ae6b4;
}

/* Shortcode Button Styles */
.post-pdf-shortcode-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 0;
    cursor: pointer;
    text-decoration: none;
    font-size: 1em;
    transition: background-color 0.3s ease;
    text-align: center;
}

.post-pdf-shortcode-btn:hover {
    background-color: #0056b3;
}

.post-pdf-shortcode-btn.post-pdf-btn-xs {
    padding: 5px 10px;
    font-size: 0.8em;
}

.post-pdf-shortcode-btn.post-pdf-btn-sm {
    padding: 8px 16px;
    font-size: 0.9em;
}

.post-pdf-shortcode-btn.post-pdf-btn-md {
    padding: 12px 24px;
    font-size: 1em;
}

.post-pdf-shortcode-btn.post-pdf-btn-lg {
    padding: 15px 30px;
    font-size: 1.2em;
}

.post-pdf-shortcode-btn.post-pdf-btn-xl {
    padding: 20px 40px;
    font-size: 1.5em;
}
