/**
 * Smart Word Explainer Admin Styles
 */

/* Main Admin Wrapper */
.sword-admin-wrap {
    margin: 0;
    padding: 0;
    background: #f1f1f1;
    min-height: calc(100vh - 32px);
}

/* Header Section */
.sword-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 30px;
    margin: 0 -20px 30px -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.sword-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
}

.sword-header-icon {
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sword-header-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
}

.sword-header-text h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 600;
    color: white;
}

.sword-subtitle {
    margin: 5px 0 0 0;
    opacity: 0.9;
    font-size: 16px;
}

.sword-status-badge {
    background: rgba(255,255,255,0.2);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.sword-status-badge .dashicons {
    color: #4ade80;
}

/* Grid Layout */
.sword-admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin: 0 -20px;
    padding: 0 20px;
}

/* Card Styles */
.sword-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sword-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.sword-card-primary {
    border-top: 4px solid #667eea;
}

.sword-card-support {
    border-top: 4px solid #f59e0b;
}

.sword-card-header {
    background: #f8fafc;
    padding: 20px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sword-card-header .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sword-card-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1e293b;
}

.sword-card-content {
    padding: 20px;
}

/* Quick Start Steps */
.sword-steps {
    margin: 20px 0;
}

.sword-step {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #667eea;
}

.sword-step-number {
    background: #667eea;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    flex-shrink: 0;
}

/* Sample Words */
.sword-test-section {
    margin: 20px 0;
    padding: 20px;
    background: #f0f9ff;
    border-radius: 8px;
    border: 1px solid #bae6fd;
}

.sword-test-section h4 {
    margin: 0 0 15px 0;
    color: #0369a1;
}

.sword-sample-words {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sword-sample-word {
    background: #0369a1;
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Action Buttons */
.sword-action-buttons {
    margin-top: 20px;
}

.sword-action-buttons .button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Features Grid */
.sword-features-grid {
    display: grid;
    gap: 15px;
}

.sword-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.sword-feature-item .dashicons {
    color: #667eea;
    font-size: 20px;
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
}

.sword-feature-content h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    color: #1e293b;
}

.sword-feature-content p {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* Status Grid */
.sword-status-grid {
    display: grid;
    gap: 15px;
}

.sword-status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #f8fafc;
    border-radius: 6px;
    border: 1px solid #e2e8f0;
}

.sword-status-label {
    font-weight: 500;
    color: #475569;
}

.sword-status-value {
    font-weight: 600;
    color: #1e293b;
}

.sword-status-success {
    color: #059669 !important;
    display: flex;
    align-items: center;
    gap: 5px;
}

.sword-status-success .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

/* Troubleshooting */
.sword-troubleshooting-list {
    display: grid;
    gap: 15px;
}

.sword-troubleshooting-item {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #fbbf24;
}

.sword-troubleshooting-icon {
    flex-shrink: 0;
}

.sword-troubleshooting-icon .dashicons {
    color: #d97706;
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.sword-troubleshooting-content h4 {
    margin: 0 0 8px 0;
    color: #92400e;
    font-size: 16px;
}

.sword-troubleshooting-content p {
    margin: 0;
    color: #a16207;
    font-size: 14px;
}

/* How It Works */
.sword-how-it-works {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sword-workflow-step {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f0fdf4;
    border-radius: 8px;
    border: 1px solid #bbf7d0;
}

.sword-workflow-icon {
    background: #10b981;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sword-workflow-icon .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.sword-workflow-content h4 {
    margin: 0 0 5px 0;
    color: #065f46;
    font-size: 16px;
}

.sword-workflow-content p {
    margin: 0;
    color: #047857;
    font-size: 14px;
}

.sword-workflow-arrow {
    text-align: center;
    color: #6b7280;
}

.sword-workflow-arrow .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

/* Support Links */
.sword-support-links {
    margin: 15px 0;
}

.sword-support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: #f59e0b;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.sword-support-link:hover {
    background: #d97706;
    color: white;
}

.sword-support-link .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.sword-api-info {
    margin-top: 20px;
    padding: 15px;
    background: #fef3c7;
    border-radius: 8px;
    border: 1px solid #fbbf24;
}

.sword-api-info h4 {
    margin: 0 0 10px 0;
    color: #92400e;
}

.sword-api-info ul {
    margin: 0;
    padding-left: 20px;
}

.sword-api-info li {
    color: #a16207;
    margin-bottom: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .sword-admin-grid {
        grid-template-columns: 1fr;
    }
    
    .sword-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .sword-header-content {
        flex-direction: column;
        gap: 15px;
    }
    
    .sword-sample-words {
        justify-content: center;
    }
    
    .sword-workflow-step {
        flex-direction: column;
        text-align: center;
    }
    
    .sword-how-it-works {
        align-items: center;
    }
} 