/*
Theme Name: Webscraper Management Hub
Description: WordPress theme voor Webscraper Management Hub - exacte replica van React design
Version: 1.0.0
Author: Manus AI
Text Domain: webscraper-hub
*/

/* WordPress Theme Main Stylesheet */

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #0f172a;
    color: #f8fafc;
    line-height: 1.6;
    overflow-x: hidden;
}

/* App Container Layout */
.app-container {
    display: flex;
    min-height: 100vh;
    background-color: #0f172a;
}

/* Sidebar Styles */
.sidebar {
    width: 280px;
    background-color: #1e293b;
    border-right: 1px solid #334155;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid #334155;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-icon {
    width: 2rem;
    height: 2rem;
    color: #00d4ff;
}

.logo-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: #f8fafc;
}

.sidebar-nav {
    flex: 1;
    padding: 1rem 0;
}

.nav-menu {
    list-style: none;
}

.nav-item {
    margin-bottom: 0.25rem;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.2s ease;
    border-radius: 0.375rem;
    margin: 0 0.5rem;
}

.nav-link:hover {
    background-color: #334155;
    color: #f8fafc;
}

.nav-link.active {
    background-color: #00d4ff;
    color: #0f172a;
}

.nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.nav-text {
    flex: 1;
    font-size: 0.875rem;
}

.nav-badge {
    background-color: #475569;
    color: #f8fafc;
    font-size: 0.75rem;
    padding: 0.125rem 0.375rem;
    border-radius: 0.75rem;
    min-width: 1.25rem;
    text-align: center;
}

.nav-link.active .nav-badge {
    background-color: #0f172a;
    color: #00d4ff;
}

/* Main Content Area */
.main-content {
    flex: 1;
    margin-left: 280px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Top Header */
.top-header {
    background-color: #1e293b;
    border-bottom: 1px solid #334155;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-left {
    display: flex;
    align-items: center;
}

.status-indicators {
    display: flex;
    gap: 0.5rem;
}

.status-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
}

.status-blue { background-color: #3b82f6; }
.status-green { background-color: #10b981; }
.status-orange { background-color: #f59e0b; }
.status-red { background-color: #ef4444; }

.run-scraper-btn {
    background-color: #00d4ff;
    color: #0f172a;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.run-scraper-btn:hover {
    background-color: #0ea5e9;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.user-info .user-name {
    font-weight: 500;
    color: #f8fafc;
}

.user-role {
    font-size: 0.75rem;
    color: #64748b;
}

.sign-out-btn {
    background-color: transparent;
    color: #64748b;
    border: 1px solid #334155;
    padding: 0.5rem;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sign-out-btn:hover {
    background-color: #334155;
    color: #f8fafc;
}

/* Page Content */
.page-content {
    flex: 1;
    padding: 2rem;
    background-color: #0f172a;
}

/* Dashboard Styles */
.dashboard-container {
    max-width: 1400px;
    margin: 0 auto;
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-title {
    font-size: 2rem;
    font-weight: 700;
    color: #f8fafc;
    margin-bottom: 0.5rem;
}

.dashboard-subtitle {
    color: #64748b;
    font-size: 1rem;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Dashboard Cards */
.dashboard-card {
    background-color: #1e293b;
    border: 1px solid #334155;
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
}

.dashboard-card:hover {
    border-color: #475569;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.card-header {
    margin-bottom: 1rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #f8fafc;
    margin-bottom: 0.25rem;
}

.card-subtitle {
    color: #64748b;
    font-size: 0.875rem;
}

.card-content {
    margin-bottom: 1rem;
}

/* Buttons */
.btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    font-weight: 500;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background-color: #8b5cf6;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #7c3aed;
}

.btn-secondary {
    background-color: #00d4ff;
    color: #0f172a;
}

.btn-secondary:hover {
    background-color: #0ea5e9;
}

/* Project List */
.project-list {
    margin-bottom: 1rem;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #334155;
}

.project-item:last-child {
    border-bottom: none;
}

.project-name {
    color: #f8fafc;
    font-weight: 500;
}

.project-status {
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-active {
    background-color: #10b981;
    color: #ffffff;
}

.status-error {
    background-color: #ef4444;
    color: #ffffff;
}

/* Activity Feed */
.activity-feed {
    max-height: 300px;
    overflow-y: auto;
}

.activity-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #334155;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background-color: #334155;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon svg {
    width: 1rem;
    height: 1rem;
    color: #64748b;
}

.activity-content {
    flex: 1;
}

.activity-content h4 {
    color: #f8fafc;
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.activity-content p {
    color: #64748b;
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #475569;
    font-size: 0.75rem;
}

/* File Grid */
.file-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.file-grid-item {
    aspect-ratio: 1;
    border-radius: 0.25rem;
    transition: all 0.2s ease;
}

.file-grid-item:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .top-header {
        padding: 1rem;
    }
    
    .page-content {
        padding: 1rem;
    }
    
    .dashboard-title {
        font-size: 1.5rem;
    }
    
    .file-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

