/* Domain Poster Pro v6.0 - Premium Hub Styles */
:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #64748b;
    --success: #22c55e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --info: #3b82f6;
    --dark: #1e293b;
    --light: #f8fafc;
    --border: #e2e8f0;
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: #f1f5f9;
    color: var(--dark);
    line-height: 1.6;
}

/* Layout */
.wrapper { display: flex; min-height: 100vh; }

.sidebar {
    width: 260px;
    background: var(--dark);
    color: white;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
}

.sidebar-header {
    padding: 24px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.sidebar-header h2 {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-header .version {
    font-size: 0.75rem;
    background: var(--primary);
    padding: 2px 8px;
    border-radius: 12px;
    margin-left: 8px;
}

.nav-menu { list-style: none; padding: 16px 0; }

.nav-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nav-menu li a:hover,
.nav-menu li a.active {
    color: white;
    background: rgba(255,255,255,0.05);
    border-left-color: var(--primary);
}

.nav-menu li a i { width: 20px; text-align: center; }

.nav-menu .badge {
    margin-left: auto;
    background: var(--primary);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 10px;
}

.main-content {
    margin-left: 260px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.topbar {
    background: white;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 50;
}

.topbar h1 { font-size: 1.5rem; font-weight: 600; }

.user-info {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--secondary);
}

.content { padding: 24px; flex: 1; }

.footer {
    padding: 16px 24px;
    text-align: center;
    color: var(--secondary);
    font-size: 0.875rem;
    border-top: 1px solid var(--border);
}

/* Cards */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
}

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

.card h3 {
    font-size: 1.125rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.2s;
}

.stat-card:hover { transform: translateY(-2px); }

.stat-card i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 12px;
}

.stat-card h3 { font-size: 1.75rem; color: var(--dark); }

.stat-card p { color: var(--secondary); font-size: 0.875rem; }

/* Tables */
.table-responsive { overflow-x: auto; }

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

.data-table th,
.data-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}

.data-table th {
    background: #f8fafc;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    color: var(--secondary);
}

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

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

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 0.875rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 8px;
    font-size: 0.875rem;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99,102,241,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    color: white;
}

.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }

.btn-primary { background: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); }

.btn-success { background: var(--success); }
.btn-danger { background: var(--danger); }
.btn-warning { background: var(--warning); color: var(--dark); }
.btn-info { background: var(--info); }
.btn-secondary { background: var(--secondary); }

.btn-sm { padding: 6px 12px; font-size: 0.75rem; }
.btn-lg { padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; justify-content: center; }

/* Alerts */
.alert {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.alert-success { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.alert-danger { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #dbeafe; color: #1e40af; border: 1px solid #bfdbfe; }

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 500;
    background: #e2e8f0;
    color: var(--dark);
}

.badge-active, .badge-published, .badge-success { background: #dcfce7; color: #166534; }
.badge-paused, .badge-draft { background: #fef3c7; color: #92400e; }
.badge-error, .badge-deleted, .badge-danger { background: #fee2e2; color: #991b1b; }

/* Pagination */
.pagination {
    display: flex;
    gap: 4px;
    margin-top: 16px;
    justify-content: center;
}

.pagination a {
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    color: var(--dark);
    background: white;
    border: 1px solid var(--border);
    font-size: 0.875rem;
}

.pagination a.active,
.pagination a:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Search */
.search-form {
    display: flex;
    gap: 8px;
}

.search-form input {
    padding: 8px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 0.875rem;
}

/* Bulk Actions */
.bulk-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.bulk-left { display: flex; gap: 8px; align-items: center; }

.showing { color: var(--secondary); font-size: 0.875rem; }

/* File Status */
.file-status {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.status-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-item.ok { background: #dcfce7; color: #166534; }
.status-item.missing { background: #fee2e2; color: #991b1b; }

/* Upload Form */
.upload-form .form-group {
    background: #f8fafc;
    padding: 16px;
    border-radius: 8px;
    border: 2px dashed var(--border);
}

.upload-form .form-group:hover {
    border-color: var(--primary);
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.login-box {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 420px;
}

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

.login-header h1 {
    color: var(--dark);
    font-size: 1.75rem;
    margin-bottom: 8px;
}

.login-header p { color: var(--secondary); }

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

.login-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--secondary);
    font-size: 0.875rem;
}

/* Quick Actions */
.quick-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

/* Setup Guide */
.setup-guide {
    background: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    line-height: 2;
}

.setup-guide code {
    background: #e2e8f0;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875rem;
}

/* Row/Col */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

/* Info Table */
.info-table { width: 100%; }
.info-table td { padding: 10px 0; border-bottom: 1px solid var(--border); }
.info-table td:first-child { font-weight: 500; width: 40%; }

/* Text utilities */
.text-muted { color: var(--secondary); font-size: 0.875rem; }

/* Responsive */
@media (max-width: 768px) {
    .sidebar { width: 100%; position: relative; height: auto; }
    .main-content { margin-left: 0; }
    .wrapper { flex-direction: column; }
    .dashboard-stats { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .row { grid-template-columns: 1fr; }
    .card-header { flex-direction: column; align-items: flex-start; }
}

/* Checkbox */
input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
