@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #5932ea;
    /* Vivid Purple from image reference */
    --primary-hover: #4a25c9;
    --secondary: #eef1f6;
    --accent: #ff4d4d;
    /* For delete/danger actions if needed */

    --background: #f8f9fe;
    /* Very light grey/blue background */
    --card-bg: #ffffff;
    --sidebar-bg: #ffffff;

    --text: #292d32;
    --text-muted: #9197b3;
    --text-light: #b5b7c0;

    --border: #f0f0f0;
    --shadow: 0 10px 60px -10px rgba(233, 233, 255, 0.9);
    --shadow-sm: 0 4px 20px -5px rgba(0, 0, 0, 0.05);

    --radius: 30px;
    /* Highly rounded corners per image */
    --radius-sm: 12px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--background);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    overflow-x: hidden;
}

/* Layout Structure */
.app-wrapper {
    display: flex;
    width: 100%;
}

/* Sidebar */
.sidebar {
    width: 280px;
    background: var(--sidebar-bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    position: fixed;
    height: 100vh;
    left: 0;
    top: 0;
    box-shadow: 2px 0 30px rgba(0, 0, 0, 0.02);
    z-index: 100;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 3rem;
    text-decoration: none;
}

.logo span {
    font-size: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nav-item a {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-item a:hover {
    background-color: var(--primary);
    color: white;
}

.nav-item a.active {
    background-color: var(--primary);
    color: white;
    box-shadow: 0 10px 20px -10px var(--primary);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: 280px;
    /* Sidebar width */
    padding: 2rem 3rem;
}

.header-welcome {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.user-profile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    border: 1px solid white;
}

h1,
h2,
h3 {
    color: var(--text);
    font-weight: 600;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

/* Interactive Elements */
input[type="text"],
input[type="url"] {
    width: 100%;
    padding: 1rem 1.5rem;
    border: 1px solid var(--border);
    background: #f9fbff;
    border-radius: 12px;
    font-size: 1rem;
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

input:focus {
    border-color: var(--primary);
}

.btn-primary {
    background: var(--primary);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    box-shadow: 0 10px 20px -10px rgba(89, 50, 234, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Table */
.table-wrapper {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

th {
    text-align: left;
    padding: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    border-bottom: 1px solid var(--border);
}

td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

.slug-badge {
    background: rgba(89, 50, 234, 0.1);
    color: var(--primary);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}

.copy-btn {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--text-muted);
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-left: 0.5rem;
}

.copy-btn:hover {
    background: var(--secondary);
    color: var(--primary);
    border-color: var(--primary);
}

/* Stats specific */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.stat-box {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: var(--shadow-sm);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(89, 50, 234, 0.1);
    /* Light purple bg */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(0, 172, 86, 0.1);
    color: #00ac56;
}

.stat-info span {
    color: var(--text-muted);
    font-size: 0.9rem;
    display: block;
    margin-bottom: 0.3rem;
}

.stat-info strong {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .sidebar {
        display: none;
        /* Hide sidebar on mobile for now - standard responsive pattern would be hamburger */
    }

    .main-content {
        margin-left: 0;
        padding: 1rem;
    }
}