/* Network Admin Styles for Softworld AI SEO */

.softworld-network-wrap {
    max-width: 1200px;
}

/* Network Cards */
.softworld-network-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.softworld-network-card {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 1px rgba(0, 0, 0, .04);
}

.softworld-network-card h3 {
    margin: 0 0 15px 0;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.softworld-network-card ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.softworld-network-card li {
    padding: 5px 0;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

.softworld-network-card li:last-child {
    border-bottom: none;
}

/* License Status */
.license-status {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

.license-status.valid {
    color: #46b450;
}

.license-status.invalid {
    color: #dc3232;
}

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.license-status.valid .status-indicator {
    background: #46b450;
    box-shadow: 0 0 0 3px rgba(70, 180, 80, 0.2);
}

.license-status.invalid .status-indicator {
    background: #dc3232;
    box-shadow: 0 0 0 3px rgba(220, 50, 50, 0.2);
}

.license-status small {
    display: block;
    font-weight: normal;
    color: #666;
    margin-top: 5px;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.quick-actions .button {
    flex: 1;
    min-width: auto;
    text-align: center;
    justify-content: center;
}

/* Sites Overview */
.softworld-sites-overview {
    margin: 30px 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
}

.softworld-sites-overview h2 {
    margin: 0;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #ccd0d4;
    font-size: 18px;
}

.sites-table-container {
    overflow-x: auto;
}

.sites-table-container table {
    margin: 0;
}

.sites-table-container th,
.sites-table-container td {
    padding: 15px 10px;
    vertical-align: middle;
}

/* Site Status Indicators */
.site-status.active {
    color: #46b450;
    font-weight: 600;
}

.site-status.inactive {
    color: #dc3232;
    font-weight: 600;
}

.settings-override {
    color: #f56e28;
    font-weight: 600;
    position: relative;
}

.settings-inherited {
    color: #46b450;
    font-weight: 600;
}

/* License Form */
.softworld-license-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    margin: 20px 0;
}

.license-status-display {
    background: #f0f6fc;
    border: 1px solid #0073aa;
    border-radius: 4px;
    padding: 15px;
}

.license-valid {
    color: #46b450;
    font-weight: 600;
    font-size: 16px;
}

/* Settings Sections */
.softworld-settings-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.softworld-settings-section h2 {
    margin: 0;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #ccd0d4;
    font-size: 18px;
}

.softworld-settings-section .form-table {
    margin: 0;
}

.softworld-settings-section .form-table th,
.softworld-settings-section .form-table td {
    padding: 20px;
}

.settings-group {
    border-bottom: 1px solid #f1f1f1;
    padding: 20px;
}

.settings-group:last-child {
    border-bottom: none;
}

.settings-group h3 {
    margin: 0 0 15px 0;
    color: #555;
    font-size: 16px;
}

/* Import/Export Styles */
.softworld-import-export-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 20px 0;
}

.softworld-export-section,
.softworld-import-section {
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    padding: 20px;
}

.softworld-export-section h2,
.softworld-import-section h2 {
    margin: 0 0 15px 0;
    color: #23282d;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 10px;
}

.softworld-import-export-log {
    margin: 30px 0;
    background: #fff;
    border: 1px solid #ccd0d4;
    border-radius: 8px;
    overflow: hidden;
}

.softworld-import-export-log h2 {
    margin: 0;
    padding: 20px;
    background: #f9f9f9;
    border-bottom: 1px solid #ccd0d4;
}

/* Loading States */
.softworld-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.softworld-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #0073aa;
    border-top-color: transparent;
    border-radius: 50%;
    animation: softworld-spin 1s linear infinite;
}

@keyframes softworld-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Notifications */
.softworld-notification {
    display: none;
    padding: 10px 15px;
    border-radius: 4px;
    margin: 15px 0;
    border: 1px solid;
}

.softworld-notification.success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.softworld-notification.error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.softworld-notification.info {
    background: #cce7ff;
    border-color: #b8daff;
    color: #004085;
}

/* Responsive Design */
@media (max-width: 782px) {
    .softworld-network-cards {
        grid-template-columns: 1fr;
    }
    
    .softworld-import-export-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .quick-actions {
        flex-direction: column;
    }
    
    .sites-table-container {
        font-size: 14px;
    }
    
    .sites-table-container th,
    .sites-table-container td {
        padding: 10px 8px;
    }
}

/* Form Enhancements */
.softworld-form-row {
    display: flex;
    gap: 20px;
    align-items: center;
    margin: 15px 0;
}

.softworld-form-row label {
    min-width: 150px;
    font-weight: 600;
}

.softworld-form-row input,
.softworld-form-row select,
.softworld-form-row textarea {
    flex: 1;
}

/* Network Status Badges */
.network-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.network-status-badge.active {
    background: #d4edda;
    color: #155724;
}

.network-status-badge.inactive {
    background: #f8d7da;
    color: #721c24;
}

.network-status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

/* License Info Panel */
.license-info-panel {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
}

.license-info-panel h3 {
    color: white;
    margin: 0 0 15px 0;
}

.license-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.license-info-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 6px;
    backdrop-filter: blur(10px);
}

.license-info-item strong {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    opacity: 0.9;
}

.license-info-item span {
    font-size: 18px;
    font-weight: 600;
}

/* Advanced Table Styles */
.softworld-advanced-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.softworld-advanced-table th {
    background: #f8f9fa;
    font-weight: 600;
    text-align: left;
    padding: 15px;
    border-bottom: 2px solid #dee2e6;
}

.softworld-advanced-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
    vertical-align: middle;
}

.softworld-advanced-table tr:hover {
    background: #f8f9fa;
}

.softworld-advanced-table .actions {
    white-space: nowrap;
}

.softworld-advanced-table .actions .button {
    margin-right: 5px;
    padding: 5px 10px;
    font-size: 12px;
}

/* Stats Cards */
.softworld-stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.softworld-stat-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.softworld-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.softworld-stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 10px;
}

.softworld-stat-label {
    color: #666;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

/* Progress Indicators */
.softworld-progress {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.softworld-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #0073aa, #005177);
    transition: width 0.3s ease;
}

/* Toggle Switches */
.softworld-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.softworld-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.softworld-toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.softworld-toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

.softworld-toggle input:checked + .softworld-toggle-slider {
    background-color: #0073aa;
}

.softworld-toggle input:checked + .softworld-toggle-slider:before {
    transform: translateX(26px);
}

/* Action Buttons */
.softworld-action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 20px 0;
}

.softworld-action-buttons .button {
    flex: 1;
    min-width: 120px;
    text-align: center;
    justify-content: center;
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .softworld-network-card,
    .softworld-settings-section,
    .softworld-export-section,
    .softworld-import-section {
        background: #1e1e1e;
        border-color: #444;
        color: #e0e0e0;
    }
    
    .softworld-network-card h3,
    .softworld-settings-section h2 {
        color: #e0e0e0;
    }
    
    .softworld-advanced-table th {
        background: #2a2a2a;
        color: #e0e0e0;
    }
    
    .softworld-advanced-table tr:hover {
        background: #2a2a2a;
    }
}

.softworld-network-wrap {
    max-width: 1400px;
    margin: 0;
}

.softworld-network-wrap h1 {
    color: #23282d;
    margin-bottom: 20px;
    font-weight: 600;
}

/* ==========================================================================
   Network Cards Layout
   ========================================================================== */

.softworld-network-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.softworld-network-card {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.softworld-network-card h3 {
    margin: 0 0 15px 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.softworld-network-card ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.softworld-network-card li {
    padding: 5px 0;
    color: #50575e;
    font-size: 14px;
}

/* License Status */
.license-status {
    display: flex;
    align-items: center;
    font-weight: 500;
}

.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
    position: relative;
}

.license-status.valid {
    color: #00a32a;
}

.license-status.valid .status-indicator {
    background: #00a32a;
    box-shadow: 0 0 0 2px rgba(0,163,42,0.2);
}

.license-status.invalid {
    color: #d63638;
}

.license-status.invalid .status-indicator {
    background: #d63638;
    box-shadow: 0 0 0 2px rgba(214,54,56,0.2);
}

.license-status small {
    display: block;
    font-size: 12px;
    margin-top: 5px;
    opacity: 0.8;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

/* ==========================================================================
   Network Tools Status
   ========================================================================== */

.softworld-network-tools-status {
    margin: 20px 0;
    padding: 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.softworld-network-tools-status h2 {
    margin: 0 0 20px 0;
    color: #1d2327;
    font-size: 18px;
}

.tools-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.tool-status-item {
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
}

.tool-status-item h4 {
    margin: 0 0 10px 0;
    color: #23282d;
    font-size: 14px;
    font-weight: 600;
}

.tool-status-item .status-text {
    margin: 5px 0 15px 0;
    font-size: 13px;
    color: #50575e;
}

/* ==========================================================================
   Sites Overview Table
   ========================================================================== */

.softworld-sites-overview {
    margin: 20px 0;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.softworld-sites-overview h2 {
    margin: 0;
    padding: 20px 20px 0 20px;
    color: #1d2327;
    font-size: 18px;
}

.sites-table-container {
    padding: 20px;
}

/* Site Status Indicators */
.site-status.active {
    color: #00a32a;
    font-weight: 500;
}

.site-status.inactive {
    color: #d63638;
    font-weight: 500;
}

.settings-override {
    color: #dba617;
    font-weight: 600;
}

.settings-inherited {
    color: #2271b1;
}

.sitemap-link {
    color: #00a32a;
    text-decoration: none;
    font-size: 13px;
}

.sitemap-link:hover {
    color: #008a20;
}

.no-sitemap {
    color: #d63638;
    font-size: 13px;
}

.custom-robots {
    color: #dba617;
    font-weight: 500;
    font-size: 13px;
}

.inherited-robots,
.network-robots {
    color: #2271b1;
    font-size: 13px;
}

/* ==========================================================================
   NGINX Rules Styles
   ========================================================================== */

.nginx-rules-container {
    max-width: 1200px;
}

.nginx-info-section,
.nginx-generator-section,
.nginx-rules-display,
.sitemap-urls-section {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.nginx-benefits ul,
.nginx-installation-guide ol {
    padding-left: 20px;
    color: #50575e;
}

.nginx-benefits li,
.nginx-installation-guide li {
    margin: 5px 0;
    line-height: 1.5;
}

/* NGINX Rules Output */
.nginx-rules-output {
    position: relative;
    margin: 15px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

.rules-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f1f3f4;
    border-bottom: 1px solid #ddd;
}

.rules-header span {
    font-weight: 600;
    color: #23282d;
}

.copy-rules-btn,
.copy-url-btn {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 6px 12px;
    cursor: pointer;
    border-radius: 3px;
    font-size: 12px;
    transition: background-color 0.2s;
}

.copy-rules-btn:hover,
.copy-url-btn:hover {
    background: #005a87;
}

#nginx-rules-text {
    margin: 0;
    padding: 20px;
    background: #2d3748;
    color: #e2e8f0;
    overflow-x: auto;
    font-family: 'Courier New', Monaco, 'Lucida Console', monospace;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre;
    border: none;
}

.nginx-installation-guide {
    margin-top: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-left: 4px solid #0073aa;
}

/* Sitemap URLs List */
.sitemap-urls-list {
    margin-top: 15px;
}

.sitemap-url-item {
    padding: 12px;
    margin: 10px 0;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #f9f9f9;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sitemap-url-item strong {
    display: block;
    margin-bottom: 5px;
    color: #23282d;
}

.sitemap-url-item a {
    color: #0073aa;
    text-decoration: none;
    font-family: monospace;
    font-size: 12px;
}

.sitemap-url-item a:hover {
    color: #005a87;
    text-decoration: underline;
}

/* ==========================================================================
   Robots.txt Management Styles
   ========================================================================== */

.robots-txt-container {
    max-width: 1200px;
}

.robots-info-section,
.network-robots-editor,
.robots-templates-section,
.site-robots-status {
    background: #fff;
    padding: 20px;
    margin: 20px 0;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.robots-benefits ul {
    padding-left: 20px;
    color: #50575e;
}

.robots-benefits li {
    margin: 5px 0;
    line-height: 1.5;
}

/* Robots.txt Editor */
#network-robots-content {
    font-family: 'Courier New', Monaco, 'Lucida Console', monospace;
    font-size: 13px;
    line-height: 1.4;
    background: #f9f9f9;
    border: 1px solid #ddd;
    padding: 15px;
    resize: vertical;
    width: 100%;
    box-sizing: border-box;
}

#network-robots-content:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
    outline: none;
}

/* Template Buttons */
.template-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.load-template {
    padding: 10px 16px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    cursor: pointer;
    border-radius: 3px;
    font-size: 13px;
    transition: all 0.2s;
}

.load-template:hover {
    background: #e9e9ea;
    border-color: #8c8f94;
}

.load-template:active {
    background: #d7d7d8;
}

/* Site Robots Status Table */
.site-robots-status .wp-list-table th {
    font-weight: 600;
    color: #23282d;
}

.reset-to-network {
    margin-left: 8px;
    font-size: 12px;
}

/* ==========================================================================
   Modal Styles
   ========================================================================== */

.robots-modal {
    position: fixed;
    z-index: 100000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    display: none;
}

.robots-modal-content {
    background: #fff;
    margin: 3% auto;
    padding: 0;
    width: 90%;
    max-width: 800px;
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    animation: modalSlideIn 0.3s ease-out;
}

@keyframes modalSlideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.robots-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #ddd;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.robots-modal-header h3 {
    margin: 0;
    color: #23282d;
    font-size: 18px;
}

.robots-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;
    border-radius: 3px;
    transition: all 0.2s;
}

.robots-modal-close:hover {
    background: #e9e9ea;
    color: #23282d;
}

.robots-modal-body {
    padding: 25px;
}

.robots-modal-footer {
    padding: 15px 25px;
    border-top: 1px solid #ddd;
    text-align: right;
    background: #f8f9fa;
}

/* Preview Tabs */
.preview-tabs {
    display: flex;
    gap: 2px;
    margin-bottom: 15px;
    border-bottom: 1px solid #ddd;
}

.preview-tab {
    padding: 10px 16px;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    border-bottom: none;
    cursor: pointer;
    font-size: 13px;
    border-radius: 4px 4px 0 0;
    transition: all 0.2s;
}

.preview-tab:hover {
    background: #e9e9ea;
}

.preview-tab.active {
    background: #fff;
    border-color: #c3c4c7 #c3c4c7 #fff #c3c4c7;
    position: relative;
    z-index: 1;
}

.preview-content {
    min-height: 300px;
}

#robots-preview-text {
    background: #f9f9f9;
    padding: 20px;
    border: 1px solid #ddd;
    font-family: 'Courier New', Monaco, 'Lucida Console', monospace;
    font-size: 13px;
    line-height: 1.4;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-height: 400px;
    overflow-y: auto;
}

/* ==========================================================================
   Form Elements
   ========================================================================== */

.form-table th {
    font-weight: 600;
    color: #23282d;
}

.form-table input[type="checkbox"] {
    margin-right: 6px;
}

.form-table fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

.form-table fieldset label {
    display: block;
    margin: 8px 0;
    font-size: 14px;
    color: #50575e;
}

.form-table .description {
    color: #646970;
    font-size: 13px;
    font-style: italic;
    margin-top: 5px;
}

/* ==========================================================================
   License Management
   ========================================================================== */

.softworld-license-form {
    background: #fff;
    padding: 20px;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.license-status-display {
    padding: 15px;
    background: #f0f6fc;
    border: 1px solid #c7d2fe;
    border-radius: 4px;
    margin-top: 10px;
}

.license-valid {
    color: #00a32a;
    font-weight: 600;
}

.license-status-display p {
    margin: 8px 0;
    color: #50575e;
}

/* ==========================================================================
   Responsive Design
   ========================================================================== */

@media screen and (max-width: 1200px) {
    .softworld-network-cards {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    
    .tools-status-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .softworld-network-wrap {
        margin: 0 10px;
    }
    
    .softworld-network-cards {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nginx-rules-container,
    .robots-txt-container {
        padding: 0 10px;
    }
    
    .robots-modal-content {
        width: 95%;
        margin: 5% auto;
    }
    
    .robots-modal-header,
    .robots-modal-body,
    .robots-modal-footer {
        padding: 15px;
    }
    
    .preview-tabs {
        flex-wrap: wrap;
    }
    
    .preview-tab {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .sitemap-url-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sitemap-url-item .copy-url-btn {
        margin-top: 8px;
        align-self: flex-end;
    }
    
    .template-buttons {
        justify-content: center;
    }
    
    .load-template {
        flex: 1;
        min-width: 120px;
    }
}

@media screen and (max-width: 480px) {
    .rules-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .quick-actions {
        justify-content: center;
    }
    
    .quick-actions .button {
        flex: 1;
        text-align: center;
    }
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.mb-0 {
    margin-bottom: 0;
}

.mt-15 {
    margin-top: 15px;
}

.hidden {
    display: none;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Animation Classes
   ========================================================================== */

.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-down {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        transform: translateY(-10px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ==========================================================================
   Loading States
   ========================================================================== */

.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}