@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #01875f; /* Google Play Green */
    --primary-hover: #016f4e;
    --bg-color: #f8f9fa;
    --card-bg: #ffffff;
    --text-main: #202124;
    --text-muted: #5f6368;
    --border-color: #dadce0;
    --sidebar-width: 256px;
    --success-color: #34a853;
    --warning-color: #fbbc04;
    --danger-color: #ea4335;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-color);
    margin: 0;
    color: var(--text-main);
}

/* Layout */
.dashboard-layout {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: var(--sidebar-width);
    background: #ffffff;
    border-right: 1px solid var(--border-color);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    padding: 16px 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.main-content {
    margin-left: var(--sidebar-width);
    padding: 32px;
    width: calc(100% - var(--sidebar-width));
    box-sizing: border-box;
    background: var(--bg-color);
    min-height: 100vh;
}

/* Sidebar Components */
.brand {
    font-size: 1.35rem;
    font-weight: 500;
    color: var(--text-main);
    padding: 0 24px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand i {
    color: var(--primary-color);
}

.nav-item {
    padding: 0 12px;
    margin-bottom: 4px;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 24px 0 0 24px; /* Google Style rounded right only if active, but full here looks good */
    border-radius: 8px;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.nav-link:hover {
    background: #f1f3f4;
    color: var(--text-main);
}

.nav-link.active {
    background: #e8f0fe;
    color: var(--primary-color);
}

.nav-link i {
    width: 24px;
    text-align: center;
    margin-right: 16px;
}

.user-panel {
    margin-top: auto;
    padding: 16px 24px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Cards */
.card {
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
    border: none;
    padding: 24px;
    margin-bottom: 24px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.stat-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #e8f0fe;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-right: 16px;
}

.stat-info .value {
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-main);
    line-height: 1.2;
}

.stat-info .label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background 0.2s;
    gap: 8px;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}
.btn-primary:hover { background: var(--primary-hover); }

.btn-outline {
    background: transparent;
    border-color: var(--border-color);
    color: var(--text-main);
}
.btn-outline:hover { background: #f1f3f4; }

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-sm {
    padding: 4px 8px;
    font-size: 0.8rem;
}

/* Forms */
.form-group {
    margin-bottom: 20px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 0.95rem;
    color: var(--text-main);
    background: #fff;
    box-sizing: border-box;
    transition: all 0.2s;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(1, 135, 95, 0.2);
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--text-main);
    font-size: 0.9rem;
}

/* Tables */
.table-container {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 16px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px;
    border-bottom: 1px solid #f1f3f4;
    color: var(--text-main);
    font-size: 0.9rem;
    vertical-align: middle;
}

tr:last-child td {
    border-bottom: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success { background: #e6f4ea; color: #1e8e3e; }
.badge-warning { background: #fef7e0; color: #f29900; }
.badge-danger { background: #fce8e6; color: #c5221f; }
.badge-neutral { background: #f1f3f4; color: #5f6368; }

/* Utilities */
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.gap-2 { gap: 8px; }

/* Typography */
h1 { font-size: 1.75rem; font-weight: 400; margin: 0 0 24px 0; }
h2 { font-size: 1.25rem; font-weight: 500; }
a { color: var(--primary-color); text-decoration: none; }