/* ============================================
   IntegrityScan - Feature Pages Standard Styles
   Professional, consistent design across all features
   ============================================ */

/* Page Header */
.feature-header {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 2rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2);
}

.feature-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-header p {
    font-size: 0.95rem;
    opacity: 0.95;
    margin: 0;
}

/* Card Panels */
.feature-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.feature-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.feature-card-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #111827;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-card-meta {
    font-size: 0.85rem;
    color: #6b7280;
}

.feature-card-body {
    flex: 1;
    padding: 1.25rem;
    overflow-y: auto;
}

/* Text Areas */
.feature-textarea {
    width: 100%;
    min-height: 400px;
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.7;
    resize: vertical;
    transition: border-color 0.2s;
}

.feature-textarea:focus {
    outline: none;
    border-color: #10b981;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

/* Buttons */
.btn-feature-primary {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.btn-feature-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.btn-feature-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-feature-secondary {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.btn-feature-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
}

/* Controls Bar */
.feature-controls {
    background: white;
    border-radius: 12px;
    padding: 1.25rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Stats Badge */
.stats-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #6b7280;
}

.stats-badge.warning {
    background: #fef3c7;
    color: #d97706;
}

.stats-badge.danger {
    background: #fee2e2;
    color: #dc2626;
}

.stats-badge.success {
    background: #d1fae5;
    color: #059669;
}

/* Loading Overlay */
.feature-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    z-index: 10;
    border-radius: 12px;
}

.feature-loading.show {
    display: flex;
}

.feature-loading .spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #e5e7eb;
    border-top-color: #10b981;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Results Display */
.feature-result {
    padding: 1.5rem;
    background: #f9fafb;
    border-radius: 8px;
    border-left: 4px solid #10b981;
}

.feature-result.warning {
    background: #fffbeb;
    border-left-color: #f59e0b;
}

.feature-result.danger {
    background: #fef2f2;
    border-left-color: #ef4444;
}

/* Score Display */
.score-display {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    text-align: center;
    margin-bottom: 1.5rem;
}

.score-number {
    font-size: 3rem;
    font-weight: 700;
    margin: 0;
}

.score-label {
    font-size: 0.95rem;
    color: #6b7280;
    margin-top: 0.5rem;
}

/* Auth Modal */
.auth-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.auth-modal-overlay.show {
    display: flex;
}

.auth-modal {
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 440px;
    width: 90%;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

.auth-modal-header {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 2rem;
    text-align: center;
}

.auth-modal-header i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.95;
}

.auth-modal-header h3 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.auth-modal-header p {
    margin: 0;
    font-size: 0.95rem;
    opacity: 0.9;
}

.auth-modal-body {
    padding: 2rem;
    text-align: center;
}

.auth-modal-body p {
    color: #6b7280;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 1.5rem;
}

.auth-modal-buttons {
    display: flex;
    gap: 0.75rem;
}

.auth-modal-btn {
    flex: 1;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.auth-modal-btn-primary {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.auth-modal-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.auth-modal-btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.auth-modal-btn-secondary:hover {
    background: #e5e7eb;
}

.auth-modal-divider {
    display: flex;
    align-items: center;
    margin: 1.25rem 0;
    color: #9ca3af;
    font-size: 0.85rem;
}

.auth-modal-divider::before,
.auth-modal-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.auth-modal-divider span {
    padding: 0 0.75rem;
}

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

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .feature-header {
        padding: 1.5rem;
    }
    
    .feature-header h1 {
        font-size: 1.5rem;
    }
    
    .feature-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .auth-modal {
        width: 95%;
        margin: 1rem;
    }
}
