/**
 * Cannabus Theme - Professional Color Scheme
 * Primary: #72A565 (Green)
 * Secondary/Accent: #91A134 (Yellow-Green/Olive)
 */

:root {
    --cannabus-primary: #72A565;
    --cannabus-secondary: #91A134;
    --cannabus-primary-dark: #5a8450;
    --cannabus-secondary-dark: #748129;
    --cannabus-primary-light: #8fb87f;
    --cannabus-secondary-light: #a8b84a;
    --cannabus-text-dark: #1a202c;
    --cannabus-text-medium: #2d3748;
    --cannabus-text-light: #4a5568;
    --cannabus-bg-light: #f7fafc;
    --cannabus-bg-white: #ffffff;
    --cannabus-border: #e2e8f0;
    --cannabus-success: #48bb78;
    --cannabus-warning: #ed8936;
    --cannabus-danger: #f56565;
    --cannabus-info: #4299e1;
    --cannabus-surface: #ffffff;
    --cannabus-surface-muted: #f3f6f2;
    --cannabus-surface-contrast: #0f1b13;
    --cannabus-border-strong: #cbd5d0;
    --cannabus-shadow-soft: 0 10px 30px rgba(14, 28, 18, 0.08);
    --cannabus-shadow-card: 0 18px 40px rgba(15, 27, 19, 0.12);
    --cannabus-radius-lg: 20px;
    --cannabus-radius-md: 14px;
    --cannabus-radius-sm: 10px;
    --cannabus-gradient-brand: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    --cannabus-gradient-ink: linear-gradient(135deg, #1b2b21 0%, #0f1b13 100%);
}

body.admin-shell {
    font-family: "Manrope", "Noto Sans", sans-serif;
    background: radial-gradient(circle at top left, #eff5ef 0%, #f8faf8 45%, #ffffff 100%);
    color: var(--cannabus-text-dark);
}

.admin-shell .main-wrapper {
    background: transparent;
}

.admin-shell .main-content {
    padding: 24px 26px 40px;
}

.admin-shell .card {
    border-radius: var(--cannabus-radius-md);
    border: 1px solid var(--cannabus-border);
    box-shadow: var(--cannabus-shadow-soft);
}

.admin-shell .card-header {
    border-bottom: 1px solid rgba(203, 213, 208, 0.6);
}

.admin-shell .table thead th {
    font-weight: 600;
    letter-spacing: 0.02em;
}

.admin-shell .table tbody tr {
    border-color: rgba(203, 213, 208, 0.4);
}

.admin-shell .table tbody tr:hover {
    background: rgba(114, 165, 101, 0.06);
}

.admin-page-title {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 20px;
}

.admin-page-title h1,
.admin-page-title h2 {
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--cannabus-surface-contrast);
}

.admin-page-subtitle {
    font-size: 0.95rem;
    color: var(--cannabus-text-light);
}

.admin-hero-card {
    background: var(--cannabus-gradient-ink);
    color: #f5f8f4;
    border-radius: var(--cannabus-radius-lg);
    padding: 24px 28px;
    box-shadow: var(--cannabus-shadow-card);
    border: none;
}

.admin-hero-card h5,
.admin-hero-card h6 {
    color: #f5f8f4;
}

.admin-stat-tile {
    background: var(--cannabus-surface);
    border-radius: var(--cannabus-radius-md);
    border: 1px solid var(--cannabus-border);
    padding: 18px 18px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-shadow: var(--cannabus-shadow-soft);
    height: 100%;
}

.admin-stat-tile .label {
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--cannabus-text-light);
}

.admin-stat-tile .value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cannabus-surface-contrast);
}

.admin-stat-tile .meta {
    font-size: 0.9rem;
    color: var(--cannabus-text-light);
}

.admin-stat-tile.primary {
    border-left: 4px solid var(--cannabus-primary);
}

.admin-stat-tile.success {
    border-left: 4px solid var(--cannabus-success);
}

.admin-stat-tile.info {
    border-left: 4px solid var(--cannabus-info);
}

.admin-stat-tile.warning {
    border-left: 4px solid var(--cannabus-warning);
}

.admin-glass-panel {
    background: rgba(255, 255, 255, 0.8);
    border-radius: var(--cannabus-radius-lg);
    border: 1px solid rgba(203, 213, 208, 0.6);
    box-shadow: var(--cannabus-shadow-card);
    backdrop-filter: blur(10px);
}

.admin-table-card {
    border-radius: var(--cannabus-radius-lg);
    overflow: hidden;
    border: 1px solid rgba(203, 213, 208, 0.7);
}

.admin-table-card thead {
    background: var(--cannabus-gradient-brand);
    color: #ffffff;
}

.admin-table-card th {
    padding: 14px 18px;
    border: none;
}

.admin-table-card td {
    padding: 14px 18px;
    vertical-align: middle;
}

.admin-chart-card {
    border-radius: var(--cannabus-radius-lg);
    border: 1px solid rgba(203, 213, 208, 0.6);
    padding: 18px 22px 10px;
    box-shadow: var(--cannabus-shadow-card);
}

.admin-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(114, 165, 101, 0.14);
    color: #3f5f3e;
    font-size: 0.82rem;
    font-weight: 600;
}

.admin-pill {
    background: #eef4ee;
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #314a35;
}

.admin-surface-muted {
    background: var(--cannabus-surface-muted);
    border-radius: var(--cannabus-radius-md);
    padding: 16px 18px;
}

/* Header Gradients */
.cannabus-header-gradient {
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    color: white;
}

.cannabus-header-gradient-alt {
    background: linear-gradient(135deg, #91A134 0%, #72A565 100%);
    color: white;
}

/* Card Headers */
.cannabus-card-header {
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
}

.cannabus-card-header-alt {
    background: linear-gradient(135deg, #91A134 0%, #72A565 100%);
    color: white;
    padding: 1.25rem 1.5rem;
    border: none;
}

/* Buttons */
.btn-cannabus-primary {
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 165, 101, 0.3);
}

.btn-cannabus-primary:hover {
    background: linear-gradient(135deg, #5a8450 0%, #748129 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 165, 101, 0.4);
}

.btn-cannabus-secondary {
    background: linear-gradient(135deg, #91A134 0%, #72A565 100%);
    color: white;
    border: none;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(145, 161, 52, 0.3);
}

.btn-cannabus-secondary:hover {
    background: linear-gradient(135deg, #748129 0%, #5a8450 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(145, 161, 52, 0.4);
}

.btn-cannabus-outline {
    background: white;
    color: #72A565;
    border: 2px solid #72A565;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-cannabus-outline:hover {
    background: #72A565;
    color: white;
    border-color: #72A565;
}

/* Cards */
.cannabus-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    border: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.cannabus-card-light {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-radius: 15px;
    border: 1px solid #e2e8f0;
}

/* Stats Cards */
.cannabus-stats-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-left: 4px solid;
}

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

.cannabus-stats-card.primary {
    border-left-color: #72A565;
}

.cannabus-stats-card.secondary {
    border-left-color: #91A134;
}

.cannabus-stats-card.success {
    border-left-color: #48bb78;
}

.cannabus-stats-card.warning {
    border-left-color: #ed8936;
}

.cannabus-stats-card.danger {
    border-left-color: #f56565;
}

.cannabus-stats-card.info {
    border-left-color: #4299e1;
}

/* Form Elements */
.cannabus-form-control {
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    color: #2d3748;
}

.cannabus-form-control:focus {
    border-color: #72A565;
    box-shadow: 0 0 0 3px rgba(114, 165, 101, 0.1);
    outline: none;
}

.cannabus-form-label {
    color: #2d3748;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* Badges */
.cannabus-badge-primary {
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.cannabus-badge-success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.cannabus-badge-warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.cannabus-badge-danger {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

.cannabus-badge-info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.875rem;
}

/* Text Colors */
.text-cannabus-primary {
    color: #72A565 !important;
}

.text-cannabus-secondary {
    color: #91A134 !important;
}

.text-cannabus-dark {
    color: #1a202c !important;
}

.text-cannabus-medium {
    color: #2d3748 !important;
}

.text-cannabus-light {
    color: #4a5568 !important;
}

/* Background Colors */
.bg-cannabus-primary {
    background-color: #72A565 !important;
    color: white;
}

.bg-cannabus-secondary {
    background-color: #91A134 !important;
    color: white;
}

.bg-cannabus-light {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
}

/* Info Items */
.cannabus-info-item {
    padding: 1rem;
    background: #f7fafc;
    border-radius: 10px;
    margin-bottom: 1rem;
    border-left: 4px solid #72A565;
}

.cannabus-info-item-label {
    font-size: 0.875rem;
    color: #4a5568;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.cannabus-info-item-value {
    font-size: 1rem;
    color: #1a202c;
    font-weight: 600;
}

/* Links */
.cannabus-link {
    color: #72A565;
    text-decoration: none;
    transition: color 0.3s ease;
}

.cannabus-link:hover {
    color: #5a8450;
    text-decoration: underline;
}

/* Tables */
.cannabus-table {
    background: white;
}

.cannabus-table thead {
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    color: white;
}

.cannabus-table thead th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.cannabus-table tbody tr {
    transition: background-color 0.2s ease;
}

.cannabus-table tbody tr:hover {
    background-color: #f7fafc;
}

/* Modern Form Card */
.cannabus-form-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
    border: none;
    overflow: hidden;
}

.cannabus-form-card .card-header {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border-bottom: 2px solid #e2e8f0;
    padding: 1.25rem 1.5rem;
    font-weight: 600;
    color: #2d3748;
}

.cannabus-form-card .card-body {
    padding: 1.5rem;
}

/* Action Buttons */
.cannabus-action-btn {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.cannabus-action-btn.edit {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    color: white;
}

.cannabus-action-btn.edit:hover {
    background: linear-gradient(135deg, #3182ce 0%, #2c5282 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(66, 153, 225, 0.3);
}

.cannabus-action-btn.delete {
    background: linear-gradient(135deg, #f56565 0%, #e53e3e 100%);
    color: white;
}

.cannabus-action-btn.delete:hover {
    background: linear-gradient(135deg, #e53e3e 0%, #c53030 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 101, 101, 0.3);
}

.cannabus-action-btn.view {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
}

.cannabus-action-btn.view:hover {
    background: linear-gradient(135deg, #38a169 0%, #2f855a 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

/* Filter Icons */
.cannabus-filter-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    margin-bottom: 1rem;
}

.cannabus-filter-icon.primary {
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
}

.cannabus-filter-icon.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

.cannabus-filter-icon.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
}

.cannabus-filter-icon.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
}

/* Stats Numbers with Gradient Text */
.cannabus-stats-number {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cannabus-stats-number.success {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cannabus-stats-number.warning {
    background: linear-gradient(135deg, #ed8936 0%, #dd6b20 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.cannabus-stats-number.info {
    background: linear-gradient(135deg, #4299e1 0%, #3182ce 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Page Headers */
.cannabus-page-header {
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    color: white;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(114, 165, 101, 0.2);
}

.cannabus-page-header h1,
.cannabus-page-header h2,
.cannabus-page-header h3,
.cannabus-page-header h4,
.cannabus-page-header h5,
.cannabus-page-header h6 {
    color: white;
    margin: 0;
}

/* Submit Button */
.cannabus-submit-btn {
    background: linear-gradient(135deg, #72A565 0%, #91A134 100%);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 10px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(114, 165, 101, 0.3);
}

.cannabus-submit-btn:hover {
    background: linear-gradient(135deg, #5a8450 0%, #748129 100%);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(114, 165, 101, 0.4);
}

.cannabus-submit-btn:active {
    transform: translateY(0);
}

/* Border Colors */
.border-cannabus-primary {
    border-color: #72A565 !important;
}

.border-cannabus-secondary {
    border-color: #91A134 !important;
}

/* Utility Classes */
.cannabus-shadow {
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.cannabus-shadow-lg {
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.cannabus-rounded {
    border-radius: 15px;
}

.cannabus-rounded-sm {
    border-radius: 10px;
}

.cannabus-rounded-lg {
    border-radius: 20px;
}
