/**
 * Android Automation Logs Plugin Styles
 * Version: 1.2.0
 */

/* ===== ADMIN STYLES ===== */
.automation-logs-admin {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", sans-serif;
    line-height: 1.6;
    color: #1d2327;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    min-height: 100vh;
    padding: 40px;
}

.automation-logs-admin * {
    box-sizing: border-box;
}

/* Header */
.admin-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.admin-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="white" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="white" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>');
    pointer-events: none;
}

.admin-header h1 {
    margin: 0 0 12px 0;
    font-size: 28px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.admin-header p {
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16px;
    position: relative;
    z-index: 1;
}

/* Content Layout */
.admin-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

@media (max-width: 768px) {
    .admin-content {
        grid-template-columns: 1fr;
    }
}

/* Sections */
.settings-section,
.info-section,
.stats-section,
.logs-section,
.logs-management-section {
    background: #fff;
    border: none;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.settings-section:hover,
.info-section:hover,
.stats-section:hover,
.logs-section:hover,
.logs-management-section:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.settings-section h2,
.info-section h3,
.stats-section h3,
.logs-section h3,
.logs-management-section h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
    border-bottom: 1px solid #c3c4c7;
    padding-bottom: 8px;
}

/* Form Styles */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 4px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
    line-height: 1.4;
    background: #fff;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 1px #2271b1;
    outline: none;
}

.form-group .description {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #646970;
    font-style: italic;
}

/* Buttons */
.submit-button,
.test-button,
.filter-button,
.refresh-button,
.page-btn {
    background: #2271b1;
    color: #fff;
    border: 1px solid #2271b1;
    border-radius: 4px;
    padding: 8px 16px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.15s ease-in-out;
}

.submit-button:hover,
.test-button:hover,
.filter-button:hover,
.refresh-button:hover,
.page-btn:hover {
    background: #135e96;
    border-color: #135e96;
    color: #fff;
}

.submit-button:disabled,
.test-button:disabled {
    background: #c3c4c7;
    border-color: #c3c4c7;
    cursor: not-allowed;
}

/* Info Cards */
.info-card {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px;
    margin-bottom: 16px;
}

.info-card h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1d2327;
}

.info-card p {
    margin: 0 0 8px 0;
    font-size: 14px;
    color: #646970;
}

.api-endpoint {
    background: #1d2327;
    color: #fff;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    margin: 8px 0;
    word-break: break-all;
}

.shortcode-example {
	width: 60vw;
    max-width: 100vw;
    background: #f0f0f1;
    border: 1px solid #c3c4c7;
    padding: 8px 12px;
    border-radius: 4px;
    font-family: Consolas, Monaco, monospace;
    font-size: 13px;
    margin: 8px 0;
}

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

.stat-card {
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    padding: 16px;
    text-align: center;
}

.stat-card h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    color: #646970;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    color: #2271b1;
    margin: 0;
}

/* Logs Section */
.logs-section {
    grid-column: 1 / -1;
}

.logs-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding: 16px;
    background: #f6f7f7;
    border: 1px solid #c3c4c7;
    border-radius: 4px;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 4px;
    font-weight: 600;
    color: #1d2327;
    font-size: 14px;
}

.filter-group input,
.filter-group select {
    padding: 6px 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.logs-container {
    border: 1px solid #c3c4c7;
    border-radius: 4px;
    overflow: hidden;
}

.logs-header {
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logs-pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-btn {
    padding: 4px 8px;
    font-size: 12px;
    min-width: 32px;
}

/* Tables */
.admin-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.admin-logs-table th {
    background: #f6f7f7;
    border-bottom: 1px solid #c3c4c7;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
}

.admin-logs-table td {
    border-bottom: 1px solid #c3c4c7;
    padding: 12px 16px;
    vertical-align: top;
}

.admin-logs-table tbody tr:hover {
    background: #f6f7f7;
}

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

.log-status.success {
    background: #d1e7dd;
    color: #0f5132;
}

.log-status.failed {
    background: #f8d7da;
    color: #842029;
}

/* Status Messages */
#connection-status,
#cleanup-status {
    margin-top: 8px;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
}

#connection-status p,
#cleanup-status p {
    margin: 0;
}

/* ===== PUBLIC STYLES ===== */
.automation-logs-public {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1d2327;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
}

.automation-logs-public * {
    box-sizing: border-box;
}

/* Login Required */
.automation-logs-login-required {
    text-align: center;
    padding: 40px 20px;
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.login-message h3 {
    margin: 0 0 16px 0;
    color: #1d2327;
    font-size: 24px;
}

.login-message p {
    margin: 0 0 24px 0;
    color: #646970;
    font-size: 16px;
}

.login-button {
    background: #2271b1;
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    display: inline-block;
    transition: background 0.15s ease-in-out;
}

.login-button:hover {
    background: #135e96;
    color: #fff;
}

/* Search Form */
.search-form {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.search-form h3 {
    margin: 0 0 16px 0;
    color: #1d2327;
    font-size: 20px;
}

.search-form .form-group {
    margin-bottom: 20px;
}

.search-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #1d2327;
}

.search-form input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #8c8f94;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.search-form input:focus {
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.2);
    outline: none;
}

.search-form .form-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-button {
    background: #2271b1;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.search-button:hover {
    background: #135e96;
}

.clear-button {
    background: #c3c4c7;
    color: #1d2327;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s ease-in-out;
}

.clear-button:hover {
    background: #a7aaad;
}

/* Results Section */
.results-section {
    background: #fff;
    border: 1px solid #c3c4c7;
    border-radius: 8px;
    padding: 40px;
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #c3c4c7;
}

.results-count {
    font-size: 18px;
    font-weight: 600;
    color: #1d2327;
}

/* Logs Table */
.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    margin-top: 16px;
}

.logs-table th {
    background: #f6f7f7;
    border-bottom: 2px solid #c3c4c7;
    padding: 12px 16px;
    text-align: left;
    font-weight: 600;
    color: #1d2327;
}

.logs-table td {
    border-bottom: 1px solid #c3c4c7;
    padding: 12px 16px;
    vertical-align: top;
}

.logs-table tbody tr:hover {
    background: #f6f7f7;
}

.logs-table tbody tr.highlighted {
    background: #e7f3ff;
}

/* Package Info */
.package-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.package-name {
    font-weight: 600;
    color: #1d2327;
}

.package-id {
    font-size: 12px;
    color: #646970;
    font-family: Consolas, Monaco, monospace;
}

/* Detail Tags */
.detail-tag {
    display: inline-block;
    background: #e7f3ff;
    color: #2271b1;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 11px;
    margin: 1px;
    font-family: Consolas, Monaco, monospace;
}

/* Loading and Error States */
.loading-logs,
.no-logs,
.error-logs {
    text-align: center;
    padding: 40px 20px;
    color: #646970;
}

.loading-logs {
    color: #2271b1;
}

.error-logs {
    color: #d63638;
}

.no-logs h3,
.error-logs h3 {
    margin: 0 0 8px 0;
    color: inherit;
}

.no-logs p,
.error-logs p {
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .automation-logs-admin,
    .automation-logs-public {
        padding: 10px;
    }
    
    .admin-content {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .logs-filters {
        grid-template-columns: 1fr;
    }
    
    .search-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-button,
    .clear-button {
        width: 100%;
    }
    
    .logs-table {
        font-size: 12px;
    }
    
    .logs-table th,
    .logs-table td {
        padding: 8px 12px;
    }
}

/* Print Styles */
@media print {
    .automation-logs-admin,
    .automation-logs-public {
        box-shadow: none;
        border: none;
    }
    
    .search-form,
    .logs-filters,
    .form-actions {
        display: none;
    }
    
    .logs-table {
        border: 1px solid #000;
    }
    
    .logs-table th,
    .logs-table td {
        border: 1px solid #000;
    }
}

/* =========================
   SHORTCODE STYLES 2025
   ========================= */

.automation-logs-shortcode-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 80px 80px 60px;
    text-align: center;
    color: white;
    overflow: hidden;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin: 0 0 20px;
    background: linear-gradient(45deg, #ffffff, #e8f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    letter-spacing: -0.02em;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin: 0 0 40px;
    opacity: 0.9;
    font-weight: 400;
    line-height: 1.6;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 40px;
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 24px 32px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #ffffff, #e8f5ff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Floating Decorations */
.hero-decoration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    z-index: 1;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.floating-element:nth-child(1) {
    width: 80px;
    height: 80px;
    top: 20%;
    left: 15%;
    animation-delay: -1s;
}

.floating-element:nth-child(2) {
    width: 120px;
    height: 120px;
    top: 60%;
    right: 20%;
    animation-delay: -3s;
}

.floating-element:nth-child(3) {
    width: 60px;
    height: 60px;
    bottom: 30%;
    left: 70%;
    animation-delay: -5s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Search Section */
.search-section {
    padding: 0 80px 40px;
    margin-top: -30px;
    position: relative;
    z-index: 3;
}

.search-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

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

.search-title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Search Tabs */
.search-tabs {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.tab-btn {
    padding: 12px 24px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    color: #64748b;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tab-btn:hover:not(.active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
}

/* Tab Content */
.tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.tab-content.active {
    display: block;
}

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

/* Filters Grid */
.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.filter-select:hover {
    border-color: #d1d5db;
}

/* Filter Actions */
.filter-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 24px;
}

.btn-apply-filters, .btn-reset-filters {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

.btn-reset-filters {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-reset-filters:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.analytics-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.analytics-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.analytics-content {
    flex: 1;
}

.analytics-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.analytics-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

.search-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.stats-badge {
    background: #f7fafc;
    color: #4a5568;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid #e2e8f0;
}

.stats-badge.success {
    background: linear-gradient(135deg, #48bb78, #38a169);
    color: white;
    border: none;
}

/* Search Form */
.search-input-group {
    display: flex;
    gap: 20px;
    align-items: flex-end;
    flex-wrap: wrap;
}

.input-wrapper {
    flex: 1;
    min-width: 300px;
    position: relative;
}

.input-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #4a5568;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-input {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    font-size: 1.125rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    color: #2d3748;
    position: relative;
    z-index: 2;
}

.search-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 
        0 0 0 3px rgba(102, 126, 234, 0.1),
        0 10px 30px rgba(102, 126, 234, 0.2);
    transform: translateY(-2px);
}

.search-input::placeholder {
    color: #a0aec0;
    transition: opacity 0.3s ease;
}

.input-wrapper.focused .search-input::placeholder {
    opacity: 0;
}

.input-border {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateX(-50%);
}

.input-wrapper.focused .input-border,
.input-wrapper.has-value .input-border {
    width: 100%;
}

.search-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Buttons */
.btn-search, .btn-clear, .btn-export, .btn-refresh {
    position: relative;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
}

.btn-search {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    min-width: 140px;
    justify-content: center;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

.btn-clear {
    background: #f7fafc;
    color: #4a5568;
    border: 1px solid #e2e8f0;
}

.btn-clear:hover {
    background: #edf2f7;
    transform: translateY(-1px);
}

.btn-export, .btn-refresh {
    background: white;
    color: #4a5568;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.btn-export:hover, .btn-refresh:hover {
    background: #f7fafc;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-icon {
    font-size: 1.125rem;
}

.btn-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    transform: scale(0);
    animation: ripple 0.6s linear;
    pointer-events: none;
}

@keyframes ripple {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* Results Section */
.results-section {
    margin: 40px 40px 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px 40px 20px;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
    gap: 20px;
}

.results-title-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.results-count {
    font-size: 0.875rem;
    color: #6b7280;
    font-weight: 500;
}

.results-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

/* View Toggle */
.view-toggle {
    display: flex;
    background: #f8fafc;
    border-radius: 12px;
    padding: 4px;
    border: 1px solid #e2e8f0;
}

.view-btn {
    padding: 8px 12px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #64748b;
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-btn.active {
    background: white;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.view-btn:hover:not(.active) {
    color: #475569;
    background: rgba(255, 255, 255, 0.5);
}

.action-buttons {
    display: flex;
    gap: 12px;
}

.results-content {
    padding: 40px;
}

/* Pagination */
.pagination-container {
    padding: 20px 40px;
    border-top: 1px solid #e2e8f0;
    background: #f8fafc;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.page-btn {
    padding: 8px 16px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.page-btn:hover:not(:disabled) {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-btn.prev, .page-btn.next {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.page-btn.prev:hover:not(:disabled), .page-btn.next:hover:not(:disabled) {
    background: #5a67d8;
    border-color: #5a67d8;
}

.page-numbers {
    display: flex;
    gap: 4px;
}

.page-number {
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    background: white;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 40px;
    text-align: center;
}

.page-number:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.page-number.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

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

/* Loading Animation */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 40px;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.loading-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}

.spinner-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s linear infinite;
}

.spinner-ring:nth-child(1) {
    border-top-color: #667eea;
    animation-delay: 0s;
}

.spinner-ring:nth-child(2) {
    border-right-color: #764ba2;
    animation-delay: -0.5s;
}

.spinner-ring:nth-child(3) {
    border-bottom-color: #667eea;
    animation-delay: -1s;
}

.loading-text {
    margin-top: 24px;
    font-size: 1.125rem;
    font-weight: 600;
    color: #4a5568;
    text-align: center;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 80px 40px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    margin: 40px;
    border-radius: 24px;
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 24px;
    opacity: 0.7;
}

.empty-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 12px;
    color: #1a202c;
}

.empty-description {
    font-size: 1.125rem;
    color: #4a5568;
    margin: 0 0 24px;
    max-width: 100%;
    width: 100%;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.btn-explore {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-explore:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

/* Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border-radius: 16px;
    padding: 16px 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-left: 4px solid #667eea;
    z-index: 10000;
    min-width: 300px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    animation: slideIn 0.3s ease-out;
}

.notification.notification-warning {
    border-left-color: #f59e0b;
}

.notification.notification-error {
    border-left-color: #ef4444;
}

.notification.notification-success {
    border-left-color: #10b981;
}

.notification-message {
    font-weight: 600;
    color: #1a202c;
}

.notification-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    line-height: 1;
}

.notification-close:hover {
    color: #374151;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .automation-logs-shortcode-container {
        min-height: auto;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .stat-item {
        padding: 16px 20px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .search-section {
        padding: 0 40px 20px;
        margin-top: -20px;
    }
    
    .search-card {
        padding: 24px;
    }
    
    .search-header {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .search-tabs {
        justify-content: center;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .search-input-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .input-wrapper {
        min-width: auto;
    }
    
    .search-actions {
        justify-content: center;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .analytics-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .analytics-card {
        padding: 16px;
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .analytics-icon {
        font-size: 2rem;
    }
    
    .results-section,
    .loading-container,
    .empty-state {
        margin: 40px;
    }
    
    .results-header {
        padding: 20px 24px 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }
    
    .results-actions {
        justify-content: space-between;
    }
    
    .view-toggle {
        order: 2;
    }
    
    .action-buttons {
        order: 1;
    }
    
    .results-content {
        padding: 24px;
    }
    
    .pagination-container {
        padding: 16px 24px;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 4px;
    }
    
    .page-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
    
    .page-number {
        padding: 6px 10px;
        font-size: 0.8rem;
        min-width: 32px;
    }
    
    .notification {
        left: 20px;
        right: 20px;
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-item {
        padding: 12px 16px;
    }
    
    .stat-number {
        font-size: 1.8rem;
    }
    
    .search-card {
        padding: 16px;
    }
    
    .analytics-grid {
        grid-template-columns: 1fr;
    }
    
    .results-content {
        padding: 16px;
    }
    
    .pagination-container {
        padding: 12px 16px;
    }
    
    .page-numbers {
        display: none;
    }
    
    /* Admin Logs Mobile */
    .search-row {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .search-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .table-header {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .table-wrapper {
        max-height: 400px;
    }
    
    .admin-logs-table {
        font-size: 0.8rem;
    }
    
    .admin-logs-table th,
    .admin-logs-table td {
        padding: 8px 6px;
    }
}

/* Results Summary */
.results-summary {
    margin-bottom: 32px;
}

/* Admin Logs Management Styles */
.logs-management-section {
    margin-top: 32px;
}

.section-header {
    margin-bottom: 24px;
    text-align: center;
}

.section-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 8px;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-header p {
    margin: 0;
    color: #6b7280;
    font-size: 1rem;
}

/* Search & Filters Card */
.search-filters-card {
    background: #f8fafc;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    border: 1px solid #e2e8f0;
}

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

.search-group, .filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.search-group label, .filter-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #374151;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-input, .filter-select {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 0.875rem;
    background: white;
    color: #374151;
    transition: all 0.3s ease;
}

.search-input:focus, .filter-select:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.search-input:hover, .filter-select:hover {
    border-color: #d1d5db;
}

.search-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-search, .btn-clear, .btn-refresh {
    padding: 12px 24px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-search {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.btn-clear {
    background: #f3f4f6;
    color: #6b7280;
    border: 1px solid #d1d5db;
}

.btn-clear:hover {
    background: #e5e7eb;
    transform: translateY(-1px);
}

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

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

/* Admin Stats Cards */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.stats-cards .stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stats-cards .stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stats-cards .stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stats-cards .stat-content {
    flex: 1;
}

.stats-cards .stat-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
}

.stats-cards .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1f2937;
}

/* Logs Table Container */
.logs-table-container {
    background: white;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.table-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.table-actions {
    display: flex;
    gap: 12px;
}

.btn-export {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-export:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Table Wrapper with Scroll */
.table-wrapper {
    max-height: 600px;
    overflow-y: auto;
    border-radius: 0;
}

.admin-logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.admin-logs-table th {
    background: #f8fafc;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.admin-logs-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.admin-logs-table tbody tr:hover {
    background: #f8fafc;
}

.loading-message {
    text-align: center;
    padding: 40px;
    color: #6b7280;
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #e5e7eb;
    border-radius: 50%;
    border-top-color: #667eea;
    animation: spin 1s ease-in-out infinite;
    margin-right: 12px;
}

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

/* Admin Pagination */
.logs-table-container .pagination-container {
    padding: 20px 24px;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    margin: 0;
}

/* Admin Table Status & Messages */
.log-row.success {
    border-left: 4px solid #10b981;
}

.log-row.failed {
    border-left: 4px solid #ef4444;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

.empty-message, .error-message {
    text-align: center;
    padding: 40px;
    color: #6b7280;
    font-style: italic;
}

.error-message {
    color: #dc2626;
}

.btn-view-details {
    padding: 4px 8px;
    border: none;
    border-radius: 6px;
    background: #f3f4f6;
    color: #374151;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-view-details:hover {
    background: #e5e7eb;
    transform: scale(1.1);
}

.summary-card {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 24px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
}

.summary-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.summary-text h4 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
}

.summary-text p {
    margin: 0 0 12px;
    opacity: 0.9;
    font-size: 1.125rem;
}

.summary-stats {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.stat-success, .stat-failed, .stat-rate {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Table View */
.table-container {
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.logs-table th {
    background: #f8fafc;
    padding: 16px 12px;
    text-align: left;
    font-weight: 600;
    color: #374151;
    border-bottom: 1px solid #e2e8f0;
}

.logs-table td {
    padding: 12px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.logs-table tbody tr:hover {
    background: #f8fafc;
}

.log-row.success {
    border-left: 4px solid #10b981;
}

.log-row.failed {
    border-left: 4px solid #ef4444;
}

.status-badge {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.status-badge.success {
    background: #d1fae5;
    color: #065f46;
}

.status-badge.failed {
    background: #fee2e2;
    color: #991b1b;
}

/* Timeline View */
.timeline-container {
    position: relative;
    padding-left: 40px;
}

.timeline-container::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, #667eea, #764ba2);
    border-radius: 1px;
}

.timeline-item {
    position: relative;
    margin-bottom: 32px;
    background: white;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.timeline-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.timeline-item.success {
    border-left: 4px solid #10b981;
}

.timeline-item.failed {
    border-left: 4px solid #ef4444;
}

.timeline-marker {
    position: absolute;
    left: -30px;
    top: 24px;
    width: 20px;
    height: 20px;
    background: white;
    border: 3px solid #667eea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.timeline-icon {
    font-size: 0.75rem;
}

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

.timeline-header h4 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #1f2937;
}

.timeline-status {
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.timeline-status.success {
    background: #d1fae5;
    color: #065f46;
}

.timeline-status.failed {
    background: #fee2e2;
    color: #991b1b;
}

.timeline-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.detail-value {
    font-size: 0.875rem;
    color: #1f2937;
    font-weight: 500;
}

.timeline-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px;
    color: #991b1b;
    font-size: 0.875rem;
}

/* Logs Grid */
.logs-grid {
    display: grid;
    gap: 24px;
}

.log-card {
    background: white;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid #e2e8f0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.log-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.log-card.success {
    border-left: 4px solid #10b981;
}

.log-card.failed {
    border-left: 4px solid #ef4444;
}

.log-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.log-card:hover::before {
    opacity: 1;
}

/* Log Header */
.log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f1f5f9;
}

.log-status {
    display: flex;
    align-items: center;
    gap: 8px;
}

.status-icon {
    font-size: 1.25rem;
}

.status-text {
    font-weight: 700;
    font-size: 1.125rem;
}

.log-card.success .status-text {
    color: #10b981;
}

.log-card.failed .status-text {
    color: #ef4444;
}

.log-index {
    background: #f1f5f9;
    color: #4a5568;
    padding: 6px 12px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.875rem;
}

/* Log Content */
.log-content {
    display: grid;
    gap: 20px;
}

.log-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.info-item label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.info-item value {
    font-size: 1rem;
    color: #1a202c;
    font-weight: 500;
    background: #f7fafc;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

/* Timeline */
.log-timeline {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 16px;
    border: 1px solid #e2e8f0;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.timeline-icon {
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid #e2e8f0;
}

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

.timeline-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4a5568;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.timeline-value {
    font-size: 0.875rem;
    color: #1a202c;
    font-weight: 500;
}

.timeline-connector {
    height: 2px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 1px;
    min-width: 40px;
    flex: 0 0 auto;
}

/* Device Info */
.log-device {
    padding: 16px;
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
}

.log-device label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #0369a1;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.log-device value {
    display: block;
    font-size: 0.875rem;
    color: #0c4a6e;
    font-family: 'Monaco', 'Consolas', monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 6px;
}

/* Error Info */
.log-error {
    padding: 16px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
}

.log-error label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.log-error value {
    display: block;
    font-size: 0.875rem;
    color: #991b1b;
    font-family: 'Monaco', 'Consolas', monospace;
    background: rgba(255, 255, 255, 0.7);
    padding: 8px 12px;
    border-radius: 6px;
}

/* Responsive for log cards */
@media (max-width: 768px) {
    .summary-card {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .log-info {
        grid-template-columns: 1fr;
    }
    
    .log-timeline {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .timeline-item {
        justify-content: center;
        text-align: center;
    }
    
    .timeline-connector {
        height: 20px;
        width: 2px;
        align-self: center;
                 background: linear-gradient(180deg, #667eea, #764ba2);
     }
}

/* Login Required Styles */
.automation-logs-login-required {
    max-width: 100%;
    width: 100%;
    margin: 40px auto;
    padding: 40px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #e2e8f0;
}

.login-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.login-icon {
    font-size: 4rem;
    opacity: 0.7;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-message h3 {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    color: #1a202c;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.login-message p {
    font-size: 1.125rem;
    color: #4a5568;
    margin: 0;
    line-height: 1.6;
    max-width: 100%;
    width: 100%;
}

.login-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 16px 32px;
    border-radius: 16px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
    color: white;
    text-decoration: none;
}

.login-button .btn-icon {
    font-size: 1.25rem;
}

.login-note {
    background: #f8fafc;
    padding: 16px 20px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    margin-top: 20px;
}

.login-note small {
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.5;
}

/* Privacy Notice in Admin */
.privacy-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
}

.privacy-notice p {
    margin: 8px 0;
    color: #0369a1;
    font-size: 1rem;
    line-height: 1.6;
}

.privacy-notice p:first-child {
    margin-top: 0;
}

.privacy-notice p:last-child {
    margin-bottom: 0;
}

/* All Logs Shortcode Styles */
.automation-logs-all-container {
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

.hero-section {
    text-align: center;
    padding: 60px 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    color: white;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    background: linear-gradient(45deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
}

.floating-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.floating-element {
    position: absolute;
    font-size: 2rem;
    animation: float 6s ease-in-out infinite;
}

.element-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.element-2 {
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.element-3 {
    bottom: 20%;
    left: 50%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.stats-section {
    margin-bottom: 40px;
}

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

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 3rem;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: #667eea;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 1.1rem;
    color: #666;
    font-weight: 500;
}

.controls-section {
    margin-bottom: 40px;
}

.controls-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.control-group {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    font-weight: 600;
    color: #333;
    min-width: 120px;
}

.control-select {
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    transition: border-color 0.3s ease;
}

.control-select:focus {
    outline: none;
    border-color: #667eea;
}

.btn-refresh,
.btn-export {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-refresh {
    background: #667eea;
    color: white;
}

.btn-refresh:hover {
    background: #5a6fd8;
    transform: translateY(-2px);
}

.btn-export {
    background: #28a745;
    color: white;
}

.btn-export:hover {
    background: #218838;
    transform: translateY(-2px);
}

.logs-display-section {
    margin-bottom: 40px;
}

.logs-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.logs-header {
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #dee2e6;
}

.logs-header h3 {
    margin: 0 0 10px 0;
    font-size: 1.5rem;
    color: #333;
}

.logs-info {
    color: #666;
    font-size: 1rem;
}

.logs-table-container {
    max-height: 600px;
    overflow-y: auto;
}

.logs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.logs-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
    position: sticky;
    top: 0;
    z-index: 10;
}

.logs-table td {
    padding: 15px;
    border-bottom: 1px solid #e9ecef;
    vertical-align: middle;
}

.logs-table tbody tr:hover {
    background: #f8f9fa;
}

.log-row.success {
    border-left: 4px solid #28a745;
}

.log-row.failed {
    border-left: 4px solid #dc3545;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-badge.success {
    background: #d4edda;
    color: #155724;
}

.status-badge.failed {
    background: #f8d7da;
    color: #721c24;
}

.btn-view-details {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #667eea;
    color: white;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-view-details:hover {
    background: #5a6fd8;
}

.pagination-container {
    padding: 30px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
}

.pagination-info {
    text-align: center;
    margin-bottom: 20px;
    color: #666;
    font-weight: 500;
}

.pagination-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn-page {
    padding: 10px 16px;
    border: 2px solid #dee2e6;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.btn-page:hover {
    border-color: #667eea;
    color: #667eea;
}

.btn-page.active {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.loading-animation,
.empty-state,
.error-state {
    text-align: center;
    padding: 60px 20px;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.empty-icon,
.error-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.6;
}

.empty-state h3,
.error-state h3 {
    margin: 0 0 15px 0;
    color: #333;
}

.empty-state p,
.error-state p {
    color: #666;
    margin-bottom: 20px;
}

.btn-retry {
    padding: 12px 24px;
    border: none;
    border-radius: 10px;
    background: #667eea;
    color: #fff;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-retry:hover {
    background: #5a6fd8;
}

/* Responsive for all logs shortcode */
@media (max-width: 768px) {
    .automation-logs-all-container {
        padding: 15px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .control-group {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    
    .control-group label {
        min-width: auto;
    }
    
    .logs-table {
        font-size: 0.85rem;
    }
    
    .logs-table th,
    .logs-table td {
        padding: 10px 8px;
    }
    
    .pagination-buttons {
        gap: 5px;
    }
    
    .btn-page {
        padding: 8px 12px;
        font-size: 0.9rem;
    }
}