:root {
--bg-main: #242521;
--bg-sidebar: #38422d;
--text-primary: #e6e6e6;
--text-secondary: #9fa697;
--text-muted: #8b8f88;
--accent-orange: #ab5e32;
--banner-orange: #b86238;
--banner-gray: #3f4749;
--card-hero-overlay: rgba(30, 30, 30, 0.7);
--card-range: #293125;
--card-inventory: #463d33;
--card-field: #43494b;
--card-email: #434c38;
--table-header-title: #434a52;
--table-header: #353a40;
--table-row-odd: #555d57;
--table-row-even: #5e665f;
--activity-header: #434a52;
--font-sans: 'Inter', sans-serif;
--font-condensed: 'Oswald', sans-serif;
}

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

body {
font-family: var(--font-sans);
background-color: #1a1a1a;
color: var(--text-primary);
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}

/* To simulate the full app layout filling the screen */
.app-container {
width: 100%;
max-width: 1600px;
height: 100vh;
background-color: var(--bg-main);
display: flex;
overflow: hidden;
box-shadow: 0 0 50px rgba(0,0,0,0.5);
}

/* Sidebar */
.sidebar {
width: 260px;
background-color: var(--bg-sidebar);
display: flex;
flex-direction: column;
padding-top: 30px;
flex-shrink: 0;
}

.logo-area {
padding: 0 24px 40px;
}

.logo-area h1 {
font-family: var(--font-condensed);
font-size: 24px;
font-weight: 700;
letter-spacing: 0.5px;
color: #e4e7e1;
margin-bottom: 4px;
}

.logo-area p {
font-size: 11px;
color: var(--text-secondary);
text-transform: uppercase;
letter-spacing: 0.5px;
}

.sidebar-nav {
display: flex;
flex-direction: column;
gap: 8px;
}

.sidebar-nav a {
display: flex;
align-items: center;
padding: 16px 24px;
color: var(--text-primary);
text-decoration: none;
font-size: 15px;
font-weight: 500;
position: relative;
transition: all 0.2s ease;
opacity: 0.8;
}

.sidebar-nav a:hover {
opacity: 1;
background-color: rgba(255,255,255,0.05);
}

.sidebar-nav a.active {
opacity: 1;
color: #ffffff;
}

.sidebar-nav a.active::before {
content: '';
position: absolute;
left: 0;
top: 0;
bottom: 0;
width: 4px;
background-color: var(--accent-orange);
}

.nav-icon {
width: 20px;
height: 20px;
margin-right: 16px;
opacity: 0.8;
}

/* Main Content */
.main-content {
flex-grow: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
padding: 24px 40px;
}

.top-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 24px;
}

.spacer {
flex-grow: 1;
}

.user-actions {
display: flex;
align-items: center;
gap: 16px;
}

.icon-btn {
background: none;
border: none;
color: var(--text-secondary);
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
transition: color 0.2s;
}

.icon-btn:hover {
color: white;
}

.icon-btn i {
width: 20px;
height: 20px;
}

.profile-pic {
width: 32px;
height: 32px;
border-radius: 50%;
object-fit: cover;
cursor: pointer;
}

/* Content Grid */
.content-grid {
display: grid;
grid-template-columns: 1fr 320px;
gap: 32px;
}

.left-column {
display: flex;
flex-direction: column;
gap: 16px;
}

.right-column {
display: flex;
flex-direction: column;
gap: 20px;
}

/* Banners */
.announcement-banner {
background-color: var(--banner-orange);
color: white;
padding: 14px 20px;
border-radius: 8px;
display: flex;
align-items: center;
font-size: 14px;
font-weight: 500;
}

.banner-icon {
width: 20px;
height: 20px;
margin-right: 12px;
fill: white;
}

.greeting-banner {
background-color: var(--banner-gray);
padding: 14px 20px;
border-radius: 8px;
display: flex;
justify-content: space-between;
align-items: center;
font-size: 13px;
color: #b5bbbd;
}

.greeting-left .text-white {
color: white;
font-weight: 600;
}

.divider {
margin: 0 8px;
color: #7a8487;
}

.inline-icon {
width: 14px;
height: 14px;
margin: 0 4px;
vertical-align: text-bottom;
}

.greeting-right {
display: flex;
align-items: center;
cursor: pointer;
}

.greeting-right:hover {
color: white;
}

/* Hero Card */
.hero-card {
position: relative;
border-radius: 12px;
overflow: hidden;
height: 340px;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 32px;
margin-bottom: 8px;
}

.hero-bg-image {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: url('https://images.unsplash.com/photo-1595180534882-7f722881a7db?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
background-size: cover;
background-position: center;
z-index: 1;
}

.hero-overlay {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: linear-gradient(to right, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, rgba(0,0,0,0.1) 100%);
z-index: 2;
}

.hero-content {
position: relative;
z-index: 3;
max-width: 400px;
}

.hero-subtitle {
font-size: 13px;
color: #e0e0e0;
margin-bottom: 12px;
display: block;
}

.hero-content h2 {
font-size: 32px;
line-height: 1.2;
color: white;
font-weight: 600;
margin-bottom: 24px;
font-family: var(--font-condensed);
letter-spacing: 0.5px;
}

.btn-primary {
background-color: var(--accent-orange);
color: white;
border: none;
padding: 12px 24px;
border-radius: 6px;
font-size: 14px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s;
}

.btn-primary:hover {
background-color: #934c26;
}

/* Dashboard Section */
.dashboard-section {
margin-top: 8px;
}

.section-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 16px;
}

.section-header h3 {
font-size: 20px;
font-weight: 600;
color: #e4e6e3;
}

.see-all {
color: var(--text-secondary);
text-decoration: none;
font-size: 13px;
}

.see-all:hover {
color: white;
}

.dashboard-cards {
display: grid;
grid-template-columns: 1.5fr 1.2fr 1fr;
gap: 16px;
}

.card {
border-radius: 12px;
padding: 20px;
display: flex;
flex-direction: column;
}

.card h4 {
font-size: 14px;
font-weight: 600;
margin-bottom: 16px;
color: #ffffff;
}

.range-tasks {
background-color: var(--card-range);
}

.range-tasks ul {
list-style: none;
display: flex;
flex-direction: column;
gap: 12px;
}

.range-tasks li {
font-size: 13px;
color: #d1d5ce;
display: flex;
align-items: center;
}

.bullet {
width: 4px;
height: 4px;
background-color: #d1d5ce;
border-radius: 50%;
margin-right: 12px;
}

.inventory-insights {
background-color: var(--card-inventory);
}

.inventory-insights .stat {
font-size: 32px;
font-weight: 700;
color: white;
margin-bottom: 4px;
}

.inventory-insights p {
font-size: 12px;
color: #d8cfc6;
margin-bottom: 16px;
line-height: 1.4;
}

.progress-bar-bg {
width: 100%;
height: 6px;
background-color: rgba(0,0,0,0.3);
border-radius: 3px;
margin-top: auto;
}

.progress-bar-fill {
height: 100%;
background-color: #c9ab86;
border-radius: 3px;
}

.field-weather-column {
display: flex;
flex-direction: column;
gap: 12px;
}

.field-conditions, .weather {
background-color: var(--card-field);
padding: 16px;
flex: 1;
}

.condition {
display: flex;
align-items: center;
gap: 12px;
margin-top: 4px;
}

.condition-icon {
width: 32px;
height: 32px;
color: white;
}

.condition-text {
font-size: 13px;
color: #d2d6d8;
line-height: 1.3;
}

.condition-text span {
color: white;
}

/* Right Column */
.section-title {
font-family: var(--font-condensed);
font-size: 20px;
font-weight: 600;
color: #c6ccbe;
letter-spacing: 0.5px;
margin-bottom: 4px;
}

.section-subtitle {
font-family: var(--font-condensed);
font-size: 16px;
font-weight: 600;
color: #a4ab9a;
letter-spacing: 0.5px;
margin-bottom: 12px;
}

.email-outreach {
background-color: var(--card-email);
padding: 20px;
}

.email-outreach h4 {
font-family: var(--font-condensed);
font-size: 18px;
color: #c3c9b7;
margin-bottom: 16px;
letter-spacing: 0.5px;
}

.email-actions {
display: flex;
align-items: center;
gap: 16px;
margin-bottom: 16px;
}

.large-icon {
width: 48px;
height: 48px;
color: #929d84;
}

.action-buttons {
display: flex;
flex-direction: column;
gap: 8px;
flex-grow: 1;
}

.btn-outline {
background-color: transparent;
border: 1px solid rgba(255,255,255,0.1);
background-color: rgba(0,0,0,0.15);
color: #d19a77;
padding: 8px 12px;
border-radius: 4px;
font-size: 13px;
font-weight: 600;
cursor: pointer;
text-align: center;
transition: background-color 0.2s;
}

.btn-outline:hover {
background-color: rgba(0,0,0,0.3);
}

.powered-by {
font-size: 10px;
color: #8c9580;
text-align: center;
font-style: italic;
}

/* Geographic Breakdown */
.data-table {
width: 100%;
border-collapse: collapse;
font-size: 12px;
border-radius: 8px;
overflow: hidden;
}

.data-table th, .data-table td {
padding: 8px 12px;
text-align: center;
}

.data-table th:first-child, .data-table td:first-child {
text-align: left;
}

.table-title-row th {
background-color: var(--table-header-title);
color: #cdd2d6;
font-weight: 600;
text-transform: uppercase;
font-size: 11px;
letter-spacing: 0.5px;
text-align: left;
}

.table-header-row th {
background-color: var(--table-header);
color: #a7adb2;
font-weight: 500;
border-bottom: 1px solid rgba(255,255,255,0.05);
}

.data-table tbody tr:nth-child(odd) {
background-color: var(--table-row-odd);
}

.data-table tbody tr:nth-child(even) {
background-color: var(--table-row-even);
}

.data-table td {
color: #dce0e3;
}

/* Recent Activity Tracker */
.activity-list {
display: flex;
flex-direction: column;
gap: 2px;
border-radius: 6px;
overflow: hidden;
}

.activity-header {
background-color: var(--activity-header);
color: #cdd2d6;
padding: 10px 12px;
font-size: 11px;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

.activity-item {
padding: 10px 12px;
font-size: 12px;
font-weight: 600;
color: #ffffff;
}

.highlight-orange { background-color: #92512a; }
.highlight-green { background-color: #4f5a43; }
.highlight-darkgreen { background-color: #3b4432; }
.total { background-color: #323929; color: #a5ac99; }

/* Links Grid for Road Map */
.links-grid {
display: grid;
grid-template-columns: 1fr;
gap: 16px;
margin-top: 16px;
padding-bottom: 40px;
}

@media (min-width: 768px) {
.links-grid {
grid-template-columns: repeat(2, 1fr);
}
}

@media (min-width: 1024px) {
.links-grid {
grid-template-columns: repeat(3, 1fr);
}
}

.link-card {
display: flex;
align-items: center;
padding: 16px;
border: 1px solid rgba(255, 255, 255, 0.05);
border-radius: 12px;
text-decoration: none;
transition: all 0.3s ease;
box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
background-color: var(--card-bg, rgba(255, 255, 255, 0.03));
}

.link-card:hover {
background-color: var(--card-hover-bg, rgba(255, 255, 255, 0.05));
border-color: var(--accent-orange);
transform: translateY(-2px);
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.link-icon-wrap {
display: flex;
align-items: center;
justify-content: center;
width: 44px;
height: 44px;
background-color: rgba(255, 255, 255, 0.05);
border-radius: 10px;
margin-right: 16px;
color: white;
transition: all 0.3s ease;
}

.link-icon-wrap i {
width: 22px;
height: 22px;
}

.link-card:hover .link-icon-wrap {
color: var(--accent-orange);
background-color: rgba(171, 94, 50, 0.15);
}

.link-title {
flex-grow: 1;
font-size: 16px;
font-weight: 600;
color: white;
transition: color 0.3s ease;
}

.link-arrow {
color: var(--text-secondary);
transition: all 0.3s ease;
width: 20px;
height: 20px;
}

.link-card:hover .link-arrow {
color: var(--accent-orange);
transform: translateX(4px);
}

/* Admin Tabs */
.admin-tabs {
display: flex;
gap: 32px;
margin-bottom: 32px;
border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-tabs .tab {
padding: 12px 0;
color: var(--text-secondary);
text-decoration: none;
font-family: var(--font-condensed);
font-weight: 600;
font-size: 16px;
letter-spacing: 0.5px;
text-transform: uppercase;
transition: all 0.2s ease;
border-bottom: 3px solid transparent;
margin-bottom: -1px;
}

.admin-tabs .tab:hover:not(.disabled) {
color: white;
}

.admin-tabs .tab.active {
color: var(--accent-orange);
border-bottom-color: var(--accent-orange);
}

.admin-tabs .tab.disabled {
opacity: 0.3;
cursor: not-allowed;
}
