/* LLMagnet Dashboard Styles */
.llmagnet-dashboard {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.llmagnet-dashboard h1 {
    color: #1e1e1e;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.llmagnet-dashboard h1:before {
    content: "🧠";
    font-size: 36px;
}

/* Status Cards Grid */
.llmagnet-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

/* Enhanced Postbox Styling */
.llmagnet-dashboard .postbox {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    background: #ffffff;
}

.llmagnet-dashboard .postbox:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.llmagnet-dashboard .postbox-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid #e0e0e0;
    border-radius: 7px 7px 0 0;
    padding: 12px 16px;
}

.llmagnet-dashboard .postbox-header h2 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #2c3e50;
}

.llmagnet-dashboard .postbox .inside {
    padding: 20px;
}

/* Status Indicators */
.llmagnet-status-active {
    color: #27ae60 !important;
    font-weight: bold;
}

.llmagnet-status-inactive {
    color: #e74c3c !important;
    font-weight: bold;
}

.llmagnet-status-warning {
    color: #f39c12 !important;
    font-weight: bold;
}

/* Quick Actions */
.llmagnet-quick-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.llmagnet-quick-actions .button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.llmagnet-quick-actions .button-primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    border-color: #2980b9;
}

.llmagnet-quick-actions .button-primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f6b9a 100%);
    transform: translateY(-1px);
}

.llmagnet-quick-actions .button:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* File Preview */
.llmagnet-file-preview {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 16px;
    font-family: "Monaco", "Consolas", "Courier New", monospace;
    font-size: 12px;
    line-height: 1.5;
    max-height: 400px;
    overflow-y: auto;
    white-space: pre-wrap;
    color: #2c3e50;
}

.llmagnet-file-preview::-webkit-scrollbar {
    width: 8px;
}

.llmagnet-file-preview::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.llmagnet-file-preview::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.llmagnet-file-preview::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Image Preview in Dashboard */
.llmagnet-image-preview {
    display: inline-block;
    margin: 10px 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.llmagnet-image-preview:hover {
    transform: scale(1.05);
}

.llmagnet-image-preview img {
    display: block;
    max-width: 100px;
    height: auto;
    border: 2px solid #ffffff;
}

/* Stats and Metrics */
.llmagnet-stat {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 8px 0;
    padding: 4px 0;
}

.llmagnet-stat strong {
    color: #2c3e50;
    font-weight: 600;
}

.llmagnet-stat-value {
    color: #7f8c8d;
    font-weight: 500;
}

/* File Links */
.llmagnet-file-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.llmagnet-file-link:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Generate Button */
.llmagnet-generate-btn {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%) !important;
    border-color: #229954 !important;
    color: white !important;
    font-weight: 600 !important;
    padding: 10px 20px !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
}

.llmagnet-generate-btn:hover {
    background: linear-gradient(135deg, #229954 0%, #1e8449 100%) !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3) !important;
}

/* Premium Badge */
.llmagnet-premium-badge {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .llmagnet-status-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .llmagnet-quick-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .llmagnet-quick-actions .button {
        justify-content: center;
        text-align: center;
    }
    
    .llmagnet-dashboard h1 {
        font-size: 24px;
    }
}

/* Loading States */
.llmagnet-loading {
    opacity: 0.6;
    pointer-events: none;
    position: relative;
}

.llmagnet-loading::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: llmagnet-spin 1s linear infinite;
}

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

/* Success/Error Messages */
.llmagnet-message {
    padding: 12px 16px;
    border-radius: 6px;
    margin: 10px 0;
    font-weight: 500;
}

.llmagnet-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.llmagnet-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.llmagnet-message.warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

/* Code blocks */
.llmagnet-code {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 2px 6px;
    border-radius: 3px;
    font-family: "Monaco", "Consolas", "Courier New", monospace;
    font-size: 12px;
}
