/* FormShield Admin Styles */

/* Statistics Modal Styles */
.formshield-modal {
    display: none;
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.formshield-modal-content {
    background-color: #fff;
    margin: 5% auto;
    padding: 0;
    border: 1px solid #ddd;
    border-radius: 8px;
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.formshield-modal-header {
    background: #f8f9fa;
    padding: 20px;
    border-bottom: 1px solid #ddd;
    border-radius: 8px 8px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.formshield-modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.formshield-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.formshield-modal-close:hover {
    color: #000;
    background-color: #f0f0f0;
}

/* Specific styles for Close button in footer */
.formshield-modal-footer .formshield-modal-close {
    background: #fff;
    border: 1px solid #007cba;
    color: #007cba;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    width: auto;
    height: auto;
    display: inline-block;
}

.formshield-modal-footer .formshield-modal-close:hover {
    background: #007cba;
    color: #fff;
}

.formshield-modal-body {
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.stat-card {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 15px;
    text-align: center;
}

.stat-card h3 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin-bottom: 5px;
}

.stat-label {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stats-details {
    border-top: 1px solid #e9ecef;
    padding-top: 20px;
}

.stats-details h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
}

.timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 4px;
    border-left: 3px solid #007cba;
}

.timeline-item .time {
    font-weight: 500;
    color: #666;
    font-size: 12px;
    min-width: 120px;
}

.timeline-item .activity {
    color: #333;
    font-size: 14px;
}

.formshield-modal-footer {
    background: #f8f9fa;
    padding: 15px 20px;
    border-top: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    text-align: right;
}

/* Statistics Button Styles */
.formshield-stats-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 4px 8px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 8px;
    display: inline-block;
    vertical-align: middle;
}

.formshield-stats-btn:hover {
    background: #f0f0f0;
    border-color: #007cba;
}

.formshield-stats-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive Design */
@media (max-width: 768px) {
    .formshield-modal-content {
        width: 95%;
        margin: 10% auto;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .timeline-item .time {
        min-width: auto;
    }
}

/* Toggle Switch Styles - Critical for UI functionality */
.switch {
    position: relative !important;
    display: inline-block !important;
    width: 50px !important;
    height: 24px !important;
}

.switch input {
    opacity: 0 !important;
    width: 0 !important;
    height: 0 !important;
}

.slider {
    position: absolute !important;
    cursor: pointer !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-color: #ccc !important;
    transition: .4s !important;
    border-radius: 24px !important;
}

.slider:before {
    position: absolute !important;
    content: "" !important;
    height: 18px !important;
    width: 18px !important;
    left: 3px !important;
    bottom: 3px !important;
    background-color: white !important;
    transition: .4s !important;
    border-radius: 50% !important;
}

input:checked + .slider {
    background-color: #2563EB !important;
}

input:checked + .slider:before {
    transform: translateX(26px) !important;
}

/* Form toggle wrapper */
.formshield-toggle-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toggle-status {
    font-size: 12px;
    font-weight: 500;
}

.toggle-status.enabled {
    color: #2563EB;
}

.toggle-status.disabled {
    color: #6B7280;
}

/* Button Styles */
.btn {
    display: inline-block;
    padding: 8px 16px;
    background-color: #2563EB;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    background-color: #1D4ED8;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-primary {
    background-color: #2563EB;
    color: white;
}

.btn-primary:hover {
    background-color: #1D4ED8;
}

/* Table Styles */
.formshield-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.formshield-table th,
.formshield-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #E5E7EB;
}

.formshield-table th {
    background-color: #F9FAFB;
    font-weight: 600;
    color: #374151;
}

.formshield-table tr:hover {
    background-color: #F9FAFB;
}

/* Status Badge Styles */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.always-protected {
    background-color: #DCFCE7;
    color: #166534;
}

.status-badge.enabled {
    background-color: #DCFCE7;
    color: #166534;
}

.status-badge.disabled {
    background-color: #FEF2F2;
    color: #DC2626;
}

/* Progress Bar Styles */
.progress-bar {
    width: 100%;
    height: 8px;
    background-color: #E5E7EB;
    border-radius: 4px;
    overflow: hidden;
    margin: 8px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10B981 0%, #059669 100%);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Dashboard Card Styles */
.dashboard-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.dashboard-card h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #111827;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    border: 1px solid #E5E7EB;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 14px;
    color: #6B7280;
    font-weight: 500;
}

/* Report frequency group disabled state */
#report_frequency_group {
    transition: opacity 0.3s ease;
}

#report_frequency_group.disabled {
    opacity: 0.5;
}

#report_frequency_group.disabled select {
    background: #f3f4f6;
    color: #9ca3af;
    cursor: not-allowed;
}

/* Advanced logging styles */
.stat-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.stat-row:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: #374151;
}

.stat-value {
    font-weight: 600;
    color: #1f2937;
}

/* Divi badge styles */
.formshield-divi-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-block;
    max-width: 100%;
    word-wrap: break-word;
}

/* Protected forms table overrides */
.plugin-dashboard {
    background: #F8FAFC !important;
    min-height: 100vh !important;
}

.dashboard-header {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E5E7EB !important;
    padding: 24px !important;
    margin-bottom: 0 !important;
}

.forms-table {
    background: #FFFFFF !important;
    border: 1px solid #E5E7EB !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.forms-table th {
    background: #F9FAFB !important;
    color: #374151 !important;
    font-weight: 600 !important;
    padding: 12px 16px !important;
    text-align: left !important;
    border-bottom: 1px solid #E5E7EB !important;
}

.forms-table td {
    padding: 12px 16px !important;
    border-bottom: 1px solid #F3F4F6 !important;
    vertical-align: middle !important;
}

.forms-table tr:last-child td {
    border-bottom: none !important;
}

.forms-table tr:hover {
    background: #F9FAFB !important;
}

/* FormShield Divi Badge Styles */
.formshield-divi-badge {
    animation: formshieldFadeIn 0.5s ease-in-out;
    transition: all 0.3s ease;
}

.formshield-divi-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

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

/* Responsive design for Divi badge */
@media (max-width: 768px) {
    .formshield-divi-badge {
        font-size: 13px !important;
        padding: 10px 12px !important;
    }
}

/* Advanced Logging Styles */
.stat-row {
    display: flex;
    justify-content: space-between;
    margin: 10px 0;
}

.suspicious-badge {
    color: #dc3545;
    font-weight: bold;
}

.normal-badge {
    color: #28a745;
    font-weight: bold;
}

#formshield-log-details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    z-index: 9999;
    max-width: 80%;
    max-height: 80vh;
    overflow-y: auto;
}
/* Protected Forms Table Styles */
/* CRITICAL: Override main CSS file with highest priority */
.plugin-dashboard {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    background: var(--bg) !important;
    min-height: 100vh !important;
}

.dashboard-header {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 24px !important;
    background: var(--surface) !important;
    border-bottom: 1px solid var(--div) !important;
    margin-bottom: 0 !important;
    box-sizing: border-box !important;
}

/* Analytics Overview */
.analytics {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 0;
}

.analytics > div {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    text-align: center;
}

.analytics label {
    display: block;
    font-size: 11px;
    color: #6c757d;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.analytics strong {
    display: block;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

/* Reset WordPress admin layout constraints */
body.wp-admin {
    --wp-admin--admin-bar--height: 32px;
}

#wpcontent {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

#wpbody {
    padding: 0 !important;
}

#wpbody-content {
    padding: 0 !important;
    margin: 0 !important;
}

.wrap {
    margin: 0 !important;
    padding: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

/* Force full width on all admin containers but respect menu */
#wpcontent {
    padding-left: 160px !important; /* WordPress admin menu width */
    padding-right: 0 !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

#wpbody,
#wpbody-content,
.wrap,
.plugin-dashboard {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--div);
    border-radius: 10px;
    margin: 24px 0 !important;
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding: 24px;
}

/* Full span for Protected Forms section */
.dashboard-grid .full-span {
    grid-column: 1 / -1;
}



/* Last Scan Info */
.last-scan-info {
    margin-top: 16px;
    padding: 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    text-align: center;
}

.last-scan-info label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.last-scan-time {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #495057;
}

.dashboard-section {
    padding: 0;
    min-height: 200px;
}

.dashboard-section:not(.full-span) {
    background: #f8f9fa;
    border: 1px solid var(--div);
    border-radius: 8px;
    padding: 24px;
}

.dashboard-section.full-span {
    background: transparent;
    border: none;
    padding: 0;
    margin-top: 20px;
}

.dashboard-section h2 {
    margin: 0 0 24px;
    font-size: 18px;
    font-weight: 600;
    color: #212529;
    line-height: 1.2;
}

/* Protection Summary - Clean Layout */

/* Progress Container */
.progress-container {
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-bar span {
    display: block;
    height: 100%;
    background: #2563EB;
    transition: width 0.3s ease;
}

.progress-value {
    font-size: 18px;
    font-weight: 600;
    color: #212529;
}

.progress-value .small {
    font-size: 14px;
    font-weight: 400;
    color: #6c757d;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
}

.stat-item {
    text-align: center;
}

.stat-item label {
    display: block;
    font-size: 12px;
    color: #6c757d;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.stat-item strong {
    display: block;
    font-size: 20px;
    font-weight: 600;
    color: #212529;
}

/* Stats Meta */
.stats-meta {
    display: flex;
    gap: 12px;
    font-size: 14px;
    color: #6c757d;
}

/* Button Stack */
.button-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.btn-primary, .btn-secondary {
    padding: 10px 20px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
    width: 100%;
    margin-bottom: 8px;
}

.btn-primary {
    background: #2563eb;
    color: white;
    border-color: #1d4ed8;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: white;
    color: #374151;
}

.btn-secondary:hover {
    background: #f9fafb;
}

.note {
    font-size: 12px;
    color: #6c757d;
    text-align: center;
    margin: 0;
}

/* Forms Table */
.forms-table {
    width: 100% !important;
    border-collapse: collapse;
    margin-top: 16px;
    max-width: none !important;
    table-layout: auto !important;
    min-width: 100% !important;
}

/* Table Footer */
.table-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 0 0;
    margin-top: 16px;
}

.auto-save-info {
    color: #2563EB;
    font-size: 14px;
    font-weight: 500;
    border-top: 1px solid var(--div);
    width: 100% !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.forms-table th,
.forms-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
}

.forms-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.forms-table td {
    font-size: 14px;
    color: #212529;
}

.tag {
    display: inline-block;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
}

/* Switch Toggle */
.switch {
    position: relative;
    display: inline-block;
    width: 36px;
    height: 20px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

/* Toggle стиловете се зареждат от css/formshield.css */

.scanner-status {
    color: #2563EB;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    padding: 4px 8px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.comments-status {
    color: #059669;
    font-weight: 600;
    font-size: 12px;
    display: inline-block;
    padding: 4px 8px;
    background: rgba(5, 150, 105, 0.1);
    border-radius: 4px;
    border: 1px solid rgba(5, 150, 105, 0.2);
}

.forms-section {
    margin-bottom: 30px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

.section-title {
    background: #f9fafb;
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e5e7eb;
}

.scanner-info {
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(37, 99, 235, 0.1) 100%);
    border-radius: 8px;
    margin: 16px;
}

.scanner-status-large {
    font-size: 18px;
    font-weight: 700;
    color: #2563EB;
    margin-bottom: 12px;
    padding: 8px 16px;
    background: rgba(37, 99, 235, 0.1);
    border-radius: 20px;
    display: inline-block;
}

.scanner-description {
    color: #6b7280;
    line-height: 1.6;
}

.scanner-description p {
    margin: 8px 0;
}

.scanner-description strong {
    color: #374151;
}

.toggle-status {
    margin-left: 8px;
    font-size: 12px;
    font-weight: 500;
}

.toggle-status.enabled {
    color: #2563EB;
}

.toggle-status.disabled {
    color: #6c757d;
}

.toggle-status.saving {
    color: #ffc107;
    font-style: italic;
}

/* Activity */
.activity-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Removed activity-popup-btn styles - no longer used */

.activity-icon {
    font-size: 14px;
    color: #6c757d;
}

/* Popup */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.form-details-grid {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.detail-item label {
    font-weight: 600;
    color: #495057;
    margin: 0;
}

.detail-item span {
    color: #6c757d;
    font-weight: 500;
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    transform: translateX(400px);
    transition: transform 0.3s ease;
    max-width: 400px;
}

.notification.show {
    transform: translateX(0);
}

.notification-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.notification-icon {
    font-size: 20px;
    flex-shrink: 0;
}

.notification-message {
    flex: 1;
    color: #495057;
    font-weight: 500;
}

.notification-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s;
}

.notification-close:hover {
    background-color: #f8f9fa;
    color: #495057;
}

.notification-success {
    border-left: 4px solid #2563EB;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-info {
    border-left: 4px solid #007bff;
}

/* Logs Popup */
.logs-popup {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border-radius: 8px;
    min-width: 600px;
    max-width: 800px;
    max-height: 80vh;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.logs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.logs-header h3 {
    margin: 0;
    color: #495057;
}

.logs-body {
    padding: 20px;
}

.logs-filters {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
}

.logs-filters select,
.logs-filters input {
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.logs-table {
    overflow-x: auto;
}

.logs-table table {
    width: 100%;
    border-collapse: collapse;
}

.logs-table th,
.logs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.logs-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #495057;
}

.logs-table td {
    color: #6c757d;
}

.log-type {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
}

.log-type.spam {
    background: #fff3cd;
    color: #856404;
}

.log-type.bot {
    background: #d1ecf1;
    color: #0c5460;
}

.log-type.injection {
    background: #f8d7da;
    color: #721c24;
}

.log-type.other {
    background: #e2e3e5;
    color: #383d41;
}

.no-logs {
    text-align: center;
    color: #6c757d;
    font-style: italic;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 24px;
    border-radius: 8px;
    min-width: 400px;
    max-width: 600px;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6c757d;
}

.popup-close:hover {
    color: #212529;
}

.popup-field {
    margin-bottom: 16px;
}

.popup-field label {
    display: block;
    font-weight: 600;
    margin-bottom: 4px;
    color: #374151;
}

.popup-field .value {
    color: #6c757d;
    font-size: 14px;
}

.popup-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Responsive */
/* Responsive Layout */
@media (max-width: 900px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        padding: 16px;
    }
    
    .dashboard-section {
        min-height: auto;
    }
    
    .dashboard-section:not(.full-span) {
    background: #f8f9fa;
        border: 1px solid var(--div);
        border-radius: 8px;
        padding: 16px;
    }
    
    .dashboard-section.full-span {
        grid-column: auto;
        margin-top: 16px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stats-meta {
        flex-direction: column;
    align-items: center;
        text-align: center;
    }
    
    .button-stack {
        gap: 8px;
    }
}

/* Notification styles */
.formshield-notification {
    position: fixed;
    top: 32px;
    right: 20px;
    padding: 12px 20px;
    border-radius: 4px;
    color: white;
    font-weight: 500;
    z-index: 999999;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.formshield-notification.show {
    opacity: 1;
    transform: translateX(0);
}

.formshield-notification-success {
    background-color: #2563EB;
}

.formshield-notification-error {
    background-color: #dc3545;
}

.formshield-notification-warning {
    background-color: #ffc107;
    color: #212529;
}

/* New form indicator styles */
.new-form-indicator {
    color: #2563EB;
    font-weight: bold;
    margin-right: 4px;
}

.scan-detailed-results {
    margin-top: 12px;
}

.scan-form-result {
    padding: 8px 12px;
    margin: 4px 0;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.scan-form-result .form-name {
    font-weight: 600;
    color: #212529;
}

.scan-form-result .form-type {
    color: #6c757d;
    font-size: 12px;
}

.scan-form-result .form-status {
    margin-left: auto;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 3px;
}

.scan-form-result .form-status.used {
    background: #d4edda;
    color: #155724;
}

.scan-form-result .form-status.unused {
    background: #fff3cd;
    color: #856404;
}

/* Deleted forms styles */
.deleted-form-indicator {
    color: #dc3545;
    font-weight: bold;
    margin-right: 4px;
}

.scan-deleted-results {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e9ecef;
}

.scan-deleted-results h4 {
    color: #dc3545;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.scan-detailed-results h4 {
    color: #2563EB;
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
}

.deleted-form {
    background: #f8d7da !important;
    border-color: #f5c6cb !important;
}

.deleted-form .form-name {
    color: #721c24 !important;
    text-decoration: line-through;
}

.deleted-form .form-type {
    color: #721c24 !important;
}

.deleted-form .form-status.deleted {
    background: #dc3545 !important;
    color: white !important;
}

/* No forms message styles */
.no-forms-message {
    text-align: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    margin: 20px 0;
}

.no-forms-icon {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.7;
}

.no-forms-message h4 {
    color: #495057;
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 12px 0;
}

.no-forms-message p {
    color: #6c757d;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.no-forms-actions {
    margin-top: 20px;
}

.no-forms-actions .btn {
    padding: 12px 24px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Section header with save button */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ecef;
}

.save-changes-btn {
    background: #28a745;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.save-changes-btn:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}

.save-changes-btn:not(:disabled):hover {
    background: #218838;
    transform: translateY(-1px);
}

/* Auto-save indicator */
.auto-save-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #28a745;
    font-size: 14px;
    font-weight: 500;
}

.auto-save-text {
    color: #28a745;
}

.auto-save-icon {
    font-size: 16px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.no-forms-actions .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
