/* Certificate Generator WordPress Plugin Styles */
/* Adapted from public.css with WordPress-specific overrides */

/* Scope all styles to prevent theme conflicts */
.cert-gen-form-container {
    width: 100%;
    max-width: 600px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.cert-gen-form-wrapper {
    background: white;
    padding: 3rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.cert-gen-title {
    color: #c00 !important;
    margin-bottom: 0.5rem;
    text-align: center;
    font-size: 2rem;
    font-weight: bold;
}

.cert-gen-description {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.cert-gen-custom-title {
    color: #c00 !important;
    margin-bottom: 0.5rem;
    font-size: 1.75rem;
    font-weight: bold;
}

.cert-gen-custom-description {
    color: #666;
    margin-bottom: 1.5rem;
}

.cert-gen-form-group {
    margin-bottom: 1.5rem;
}

.cert-gen-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #555;
}

.cert-gen-input,
.cert-gen-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    transition: all 0.3s;
    font-family: inherit;
}

.cert-gen-input:focus,
.cert-gen-select:focus {
    outline: none;
    border-color: #c00;
    box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.1);
}

.cert-gen-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-weight: 500;
    font-family: inherit;
}

.cert-gen-btn-primary {
    background-color: #c00;
    color: white;
}

.cert-gen-btn-primary:hover {
    background-color: #a00;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(204, 0, 0, 0.4);
}

.cert-gen-btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
}

.cert-gen-error-message {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.cert-gen-error {
    padding: 1rem;
    border-radius: 6px;
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    margin: 1rem 0;
}

.cert-gen-record-count {
    background: #e8f4f8;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 4px solid #0066cc;
}

/* Error Modal */
.cert-gen-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
    display: none;
}

.cert-gen-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.cert-gen-modal-content {
    position: relative;
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    margin: 10% auto;
    z-index: 1000000;
    animation: certGenModalSlideIn 0.3s ease-out;
}

@keyframes certGenModalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.cert-gen-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.cert-gen-modal-header h2 {
    margin: 0;
    color: #c00;
    font-size: 1.5rem;
}

.cert-gen-modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.cert-gen-modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.cert-gen-modal-body {
    padding: 1.5rem;
}

.cert-gen-modal-body p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 1rem;
}

.cert-gen-modal-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

.cert-gen-modal-footer .cert-gen-btn {
    min-width: 100px;
}

/* Responsive */
@media (max-width: 768px) {
    .cert-gen-form-wrapper {
        padding: 2rem 1.5rem;
    }
    
    .cert-gen-title {
        font-size: 1.5rem;
    }
    
    .cert-gen-modal-content {
        margin: 20% auto;
        width: 95%;
    }
    
    .cert-gen-modal-header h2 {
        font-size: 1.25rem;
    }
}

