/* Frontend PDF List Styles */
.pdm-frontend-container {
    padding: 20px 0;
}

.pdm-pdf-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin: 0;
}

.pdm-pdf-item {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.pdm-pdf-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    border-color: #2271b1;
}

.pdm-pdf-icon {
    margin-bottom: 15px;
    color: #d32f2f;
}

.pdm-pdf-icon svg {
    width: 64px;
    height: 64px;
}

.pdm-pdf-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 20px 0;
    color: #333;
    line-height: 1.4;
    min-height: 50px;
}

.pdm-download-btn {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-weight: 600;
}

.pdm-download-btn:hover {
    background: #135e96;
}

.pdm-no-pdfs {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 18px;
}

/* Modal Styles */
.pdm-modal {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.6);
}

.pdm-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 40px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: pdmSlideDown 0.3s ease;
}

@keyframes pdmSlideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pdm-modal-close {
    position: absolute;
    right: 15px;
    top: 15px;
    font-size: 32px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s;
}

.pdm-modal-close:hover {
    color: #000;
}

.pdm-modal-content h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    color: #333;
}

.pdm-modal-content p {
    margin: 0 0 25px 0;
    color: #666;
}

.pdm-form-group {
    margin-bottom: 25px;
}

.pdm-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.pdm-form-group input[type="email"] {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.pdm-form-group input[type="email"]:focus {
    outline: none;
    border-color: #2271b1;
}

.pdm-form-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.pdm-submit-btn {
    flex: 1;
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
    font-weight: 600;
}

.pdm-submit-btn:hover {
    background: #135e96;
}

.pdm-submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.pdm-cancel-btn {
    background: #fff;
    color: #666;
    border: 1px solid #ddd;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.pdm-cancel-btn:hover {
    background: #f5f5f5;
    border-color: #999;
}

.pdm-message {
    margin-top: 15px;
}

.pdm-message p {
    padding: 12px;
    border-radius: 4px;
    margin: 0;
}

.pdm-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.pdm-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.pdm-loading {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pdm-pdf-grid {
        grid-template-columns: 1fr;
    }
    
    .pdm-modal-content {
        margin: 20% auto;
        padding: 30px 20px;
        width: 95%;
    }
    
    .pdm-form-actions {
        flex-direction: column;
    }
}