
/* Frontend styles for Unicenter Regulations Plugin */

.unicenter-regulations-page {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Header Section */
.unicenter-header {
    text-align: center;
    margin-bottom: 50px;
    padding: 60px 20px;
    background: #f8f9fa;
    border-radius: 12px;
}

.unicenter-header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    color: #1a202c;
    margin-bottom: 20px;
    line-height: 1.2;
}

.unicenter-header p {
    font-size: 1.125rem;
    color: #4a5568;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Regulations Grid */
.unicenter-regulations-grid {
    display: grid;
    gap: 30px;
    margin-bottom: 50px;
}

.unicenter-regulation-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.unicenter-regulation-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #3b82f6;
}

.card-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

.card-icon {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.card-icon span {
    font-size: 28px;
}

.unicenter-regulation-card:hover .card-icon {
    background: #dbeafe;
    transform: scale(1.1);
}

.card-text {
    flex: 1;
}

.card-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.unicenter-regulation-card:hover .card-text h3 {
    color: #3b82f6;
}

.card-text p {
    color: #4a5568;
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.view-link {
    display: flex;
    align-items: center;
    color: #3b82f6;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.view-link span:first-child {
    margin-right: 8px;
    transition: transform 0.3s ease;
}

.unicenter-regulation-card:hover .view-link {
    color: #1d4ed8;
}

.unicenter-regulation-card:hover .view-link span:first-child {
    transform: translateX(4px);
}

/* Footer Section */
.unicenter-footer {
    margin-top: 60px;
}

.important-note {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 30px;
    margin-bottom: 30px;
}

.important-note h3 {
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
}

.important-note p {
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.contact-info {
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

.contact-info a {
    color: #3b82f6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Modal Styles */
.unicenter-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-out;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
}

.modal-header h2 {
    margin: 0;
    color: #1a202c;
    font-size: 1.25rem;
    font-weight: 600;
}

.close-btn {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.close-btn:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader {
    text-align: center;
    color: #6b7280;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f4f6;
    border-top: 3px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

#unicenterDocumentFrame {
    width: 100%;
    height: 100%;
    border: none;
}

.error-message {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 40px;
}

.error-content h3 {
    color: #1a202c;
    margin: 20px 0 10px;
    font-size: 1.25rem;
}

.error-content p {
    color: #6b7280;
    margin: 0;
    max-width: 400px;
}

.modal-footer {
    padding: 16px 30px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
    text-align: center;
}

.modal-footer p {
    margin: 0;
    font-size: 0.75rem;
    color: #6b7280;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .unicenter-regulations-page {
        padding: 15px;
    }
    
    .unicenter-header {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
    
    .unicenter-header h1 {
        font-size: 2rem;
    }
    
    .unicenter-header p {
        font-size: 1rem;
    }
    
    .unicenter-regulation-card {
        padding: 20px;
    }
    
    .card-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .card-icon {
        align-self: center;
    }
    
    .modal-content {
        width: 95%;
        height: 95%;
    }
    
    .modal-header {
        padding: 15px 20px;
    }
    
    .modal-header h2 {
        font-size: 1.1rem;
    }
    
    .important-note {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .unicenter-header h1 {
        font-size: 1.75rem;
    }
    
    .card-text h3 {
        font-size: 1.25rem;
    }
}
