/* Corporate Colors - PT Sahabat Agro Group */
:root {
    --primary-color: #2E7D32;
    --secondary-color: #4CAF50;
    --accent-color: #81C784;
    --warning-color: #FF9800;
    --danger-color: #F44336;
    --info-color: #2196F3;
    --success-color: #4CAF50;
    --dark-color: #1B5E20;
    --light-color: #F1F8E9;
    --white: #FFFFFF;
    --gray-100: #F8F9FA;
    --gray-200: #E9ECEF;
    --gray-300: #DEE2E6;
    --gray-600: #6C757D;
    --gray-800: #343A40;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--gray-100);
    color: var(--gray-800);
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

.bg-primary-gradient {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

/* Login Page Styles */
.login-page {
    background: var(--gray-100);
}

.login-form-container {
    max-width: 400px;
    width: 100%;
}

.divider {
    position: relative;
    text-align: center;
    margin: 1rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gray-300);
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

/* Main Content */
.main-content {
    margin-top: 80px;
    padding: 2rem;
}

.welcome-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-left: 4px solid var(--primary-color);
}

/* Portal Cards */
.portal-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--gray-200);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.portal-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.portal-icon i {
    font-size: 1.5rem;
    color: white;
}

.portal-content h4 {
    color: var(--gray-800);
    margin-bottom: 0.5rem;
}

.portal-content p {
    color: var(--gray-600);
    margin-bottom: 1rem;
}

.portal-features {
    margin-bottom: 1rem;
}

.portal-features .badge {
    margin-right: 0.5rem;
    margin-bottom: 0.25rem;
}

.portal-arrow {
    margin-top: auto;
    text-align: right;
    color: var(--gray-600);
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
}

.stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
}

.stat-icon i {
    font-size: 1.25rem;
    color: white;
}

.stat-content h6 {
    margin-bottom: 0.25rem;
    color: var(--gray-600);
    font-size: 0.875rem;
}

.stat-content h4 {
    margin-bottom: 0.25rem;
    color: var(--gray-800);
}

/* Sidebar Styles */
.sidebar {
    background: white;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    min-height: calc(100vh - 76px);
    padding: 1rem 0;
}

.sidebar-nav {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-nav li {
    margin-bottom: 0.5rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: var(--gray-600);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a:hover,
.sidebar-nav a.active {
    background: var(--light-color);
    color: var(--primary-color);
    border-right: 3px solid var(--primary-color);
}

.sidebar-nav i {
    margin-right: 0.75rem;
    width: 20px;
}

/* Dashboard Styles */
.dashboard-header {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.filter-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.chart-card {
    background: white;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

/* Table Styles */
.table-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.table-card .card-header {
    background: var(--gray-100);
    border-bottom: 1px solid var(--gray-200);
    padding: 1rem 1.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .main-content {
        padding: 1rem;
        margin-top: 70px;
    }
    
    .welcome-card {
        padding: 1.5rem;
    }
    
    .portal-card {
        padding: 1.5rem;
    }
    
    .stat-card {
        padding: 1rem;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom Badge Colors */
.bg-success-subtle {
    background-color: rgba(76, 175, 80, 0.1) !important;
}

.bg-info-subtle {
    background-color: rgba(33, 150, 243, 0.1) !important;
}

.bg-warning-subtle {
    background-color: rgba(255, 152, 0, 0.1) !important;
}

.text-success {
    color: var(--success-color) !important;
}

.text-info {
    color: var(--info-color) !important;
}

.text-warning {
    color: var(--warning-color) !important;
}
