/*
============================================
FUNDRAISER HUB - SHARED STYLES (ENHANCED)
============================================

This CSS file contains all shared styles for the 
fundraiser coordinator interface. Include this file
in all PHP pages for consistent styling.

Usage: <link rel="stylesheet" href="assets/css/fundraiser-hub.css">

Color Palette:
- Primary: #4F46E5 (Indigo)
- Primary Gradient: linear-gradient(135deg, #667EEA 0%, #764BA2 100%)
- Success: #10b981 (Green)
- Warning: #f59e0b (Amber)
- Danger: #ef4444 (Red)
- Info: #3b82f6 (Blue)
- Text: #1e293b (Dark)
- Text Secondary: #64748b (Gray)
- Background: #f5f7fa (Light Gray)

============================================
*/

/* ============================================
   RESET & BASE STYLES
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #4F46E5;
    --primary-hover: #4338ca;
    --primary-light: #e0e7ff;
    --primary-gradient-start: #667EEA;
    --primary-gradient-end: #764BA2;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    line-height: 1.6;
    min-height: 100vh;
}

ul {
  list-style-type: disc;
  margin-block-start: 1em;
  margin-block-end: 1em;
  padding-inline-start: 40px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 {
    color: #1e293b;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin-bottom: 1rem;
}

small {
    font-size: 0.875rem;
    color: #94a3b8;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */
.header {
    background: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    text-decoration: none;
}

.header-nav {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.header-nav a {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.2s;
    position: relative;
}

.header-nav a:hover {
    color: #4F46E5;
}

.header-nav a.active {
    color: #4F46E5;
}

.header-nav a.active:after {
    content: '';
    position: absolute;
    bottom: -1.5rem;
    left: 0;
    right: 0;
    height: 3px;
    background: #4F46E5;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    cursor: pointer;
    transition: background 0.2s;
}

.user-menu:hover {
    background: #e2e8f0;
}

/* Mobile Navigation */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* ============================================
   LAYOUT CONTAINERS
   ============================================ */
.container {
    margin: 0 auto;
    padding: 2rem;
}

.content-grid {
    display: grid;
    gap: 1.5rem;
}

/* Dashboard Specific Status Bar */
.status-bar {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.status-info h1 {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    color: #FFF;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.2);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.875rem;
}

.status-badge.live::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #10B981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.status-badge.closed::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #b91010;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

@media (max-width: 768px) {
  .content-grid[style*="2fr 1fr"],
  .content-grid[style*="1fr 1fr"]  {
    grid-template-columns: 1fr !important;
  }
}

/* ============================================
   CARDS & PANELS
   ============================================ */
.card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
}

.card-body {
    padding: 1.5rem;
    overflow: auto;
}

.card-footer {
    padding: 1.5rem;
    background: #f8f9fa;
    border-top: 1px solid #e2e8f0;
}

/* Enhanced Stat Cards */
.stat-card {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.stat-icon.primary { 
    background: linear-gradient(135deg, #e0e7ff 0%, #c7d2fe 100%); 
    color: #4F46E5; 
}

.stat-icon.success { 
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%); 
    color: #10b981; 
}

.stat-icon.warning { 
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); 
    color: #f59e0b; 
}

.stat-icon.danger { 
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%); 
    color: #ef4444; 
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.stat-content p {
    color: #64748b;
    font-size: 0.875rem;
    margin: 0;
}

.stat-content small {
    display: block;
    margin-top: 0.25rem;
}

/* Activity Feed Styles */
.activity-feed {
    overflow-y: auto;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.activity-item {
    display: flex;
    gap: 1rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.activity-content {
    flex: 1;
}

.activity-title {
    font-weight: 500;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.activity-time {
    font-size: 0.875rem;
    color: #64748b;
}

/* Leaderboard Styles */
.leaderboard-list {
    display: flex;
    flex-direction: column;
}

.leaderboard-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f3f4f6;
}

.leaderboard-item:last-child {
    border-bottom: none;
}

.leaderboard-rank {
    width: 30px;
    font-weight: 600;
    color: #64748b;
}

.leaderboard-name {
    flex: 1;
    font-weight: 500;
    color: #1e293b;
}

.leaderboard-value {
    font-weight: 600;
    color: #4F46E5;
}

/* Progress Section */
.goal-progress-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Button Variants */
.btn-primary {
    background: #4F46E5;
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background: #4338ca;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(79, 70, 229, 0.3);
    color: #ffffff;
}

.btn-primary:active,
.btn-primary:focus {
    color: #ffffff;
}

.btn-secondary {
    background: #e2e8f0;
    color: #475569;
}

.btn-secondary:hover:not(:disabled) {
    background: #cbd5e1;
    transform: translateY(-1px);
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover:not(:disabled) {
    background: #059669;
    transform: translateY(-1px);
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background: #dc2626;
}

.btn-ghost {
    background: transparent;
    color: #4F46E5;
    border: 1px solid #e2e8f0;
}

.btn-ghost:hover:not(:disabled) {
    background: #f8f9fa;
    border-color: #4F46E5;
}

/* Button Sizes */
.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

/* Quick Action Buttons */
.quick-actions {
    display: flex;
    gap: 1rem;
}

.quick-actions button {
    padding: 0.75rem 1.5rem;
    background: white;
    color: #4F46E5;
    border: none;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.1s;
}

.quick-actions button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ============================================
   FORMS
   ============================================ */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #475569;
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: #fff;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.form-group input[type="checkbox"] {
    width: auto;
    margin-right: 0.5rem;
}

.form-group input[type="color"] {
    width: 100px;
    height: 40px;
    padding: 0.25rem;
    cursor: pointer;
}

.form-hint {
    font-size: 0.875rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.form-error {
    font-size: 0.875rem;
    color: #ef4444;
    margin-top: 0.25rem;
}

/* Search Box */
.search-box {
    position: relative;
}

.search-box input {
    padding-left: 2.5rem;
}

.search-box:before {
    content: "🔍";
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
}

/* ============================================
   TABLES
   ============================================ */
.data-table {
    width: 100%;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.data-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #475569;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.data-table tbody tr:hover {
    background: #f8f9fa;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* ============================================
   BADGES & TAGS
   ============================================ */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary { background: #e0e7ff; color: #4F46E5; }
.badge-success { background: #d1fae5; color: #059669; }
.badge-warning { background: #fef3c7; color: #d97706; }
.badge-danger { background: #fee2e2; color: #dc2626; }
.badge-gray { background: #f3f4f6; color: #6b7280; }

/* ============================================
   ALERTS & NOTICES
   ============================================ */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.alert-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
}

.alert-content {
    flex: 1;
}

.alert-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.alert-primary { 
    background: #e0e7ff; 
    color: #3730a3; 
    border: 1px solid #c7d2fe;
}

.alert-success { 
    background: #d1fae5; 
    color: #065f46; 
    border: 1px solid #a7f3d0;
}

.alert-warning { 
    background: #fef3c7; 
    color: #92400e; 
    border: 1px solid #fde68a;
}

.alert-danger { 
    background: #fee2e2; 
    color: #991b1b; 
    border: 1px solid #fecaca;
}

/* ============================================
   MODALS
   ============================================ */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s;
}

.modal-backdrop.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: scale(0.95);
    transition: transform 0.3s;
}

.modal-backdrop.active .modal {
    transform: scale(1);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: #94a3b8;
    line-height: 1;
}

.modal-body {
    padding: 1.5rem;
    overflow-y: auto;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* ============================================
   PROGRESS INDICATORS
   ============================================ */
.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 100px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    background: linear-gradient(135deg, #667EEA 0%, #764BA2 100%);
    height: 100%;
    border-radius: 100px;
    transition: width 0.3s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Circular Progress */
.progress-circle {
    width: 80px;
    height: 80px;
    position: relative;
}

.progress-circle svg {
    transform: rotate(-90deg);
}

.progress-circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.progress-circle-fill {
    fill: none;
    stroke: url(#gradient);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dasharray 0.3s ease;
}

.progress-circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.25rem;
    font-weight: 600;
    color: #4F46E5;
}

/* ============================================
   CHARTS & GRAPHS
   ============================================ */
.chart-container {
    position: relative;
    height: 300px;
    margin-bottom: 1rem;
}

.sparkline {
    height: 40px;
    width: 100%;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

/* Spacing */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-0 { padding: 0; }
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* Display */
.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-flex { display: flex; }
.d-grid { display: grid; }

/* Flex */
.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.justify-start { justify-content: flex-start; }
.justify-end { justify-content: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.align-center { align-items: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

/* Text */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: #4F46E5; }
.text-success { color: #10b981; }
.text-warning { color: #f59e0b; }
.text-danger { color: #ef4444; }
.text-muted { color: #94a3b8; }

.font-weight-500 { font-weight: 500; }
.font-weight-600 { font-weight: 600; }
.font-weight-700 { font-weight: 700; }

/* Borders */
.border { border: 1px solid #e2e8f0; }
.border-top { border-top: 1px solid #e2e8f0; }
.border-bottom { border-bottom: 1px solid #e2e8f0; }
.rounded { border-radius: 8px; }
.rounded-lg { border-radius: 12px; }
.rounded-full { border-radius: 100px; }

/* Shadows */
.shadow-sm { box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1); }
.shadow { box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); }
.shadow-lg { box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1); }

/* Width */
.w-100 { width: 100%; }

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideInUp {
    from { transform: translateY(1rem); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@keyframes slideInRight {
    from { transform: translateX(-1rem); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-fadeIn { animation: fadeIn 0.3s ease; }
.animate-slideInUp { animation: slideInUp 0.3s ease; }
.animate-slideInRight { animation: slideInRight 0.3s ease; }
.animate-spin { animation: spin 1s linear infinite; }

/* ============================================
   LOADING STATES
   ============================================ */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #e2e8f0;
    border-top-color: #4F46E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   NOTIFICATION STYLES
   ============================================ */
.notification-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notification {
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 500px;
}

.notification-success {
    border-left: 4px solid #10b981;
}

.notification-error {
    border-left: 4px solid #ef4444;
}

.notification-warning {
    border-left: 4px solid #f59e0b;
}

.notification-info {
    border-left: 4px solid #3b82f6;
}

.notification-close {
    margin-left: auto;
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: #94a3b8;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */
@media (max-width: 1280px) {
    .container {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    /* Mobile Navigation */
    .mobile-menu-toggle {
        display: block;
    }
    
    .header-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
        flex-direction: column;
        padding: 1rem;
    }
    
    .header-nav.mobile-active {
        display: flex;
    }
    
    .header-nav a.active:after {
        display: none;
    }
    
    .user-menu {
        display: none;
    }
    
    /* Grid adjustments */
    .content-grid {
        grid-template-columns: 1fr;
    }
    
    /* Status bar */
    .status-bar {
        flex-direction: column;
        text-align: center;
    }
    
    .quick-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .quick-actions button {
        width: 100%;
    }
    
    /* Stat cards */
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    /* Table responsive */
    .data-table {
        overflow-x: auto;
    }
    
    .data-table table {
        min-width: 600px;
    }
    
    /* Modal adjustments */
    .modal {
        max-width: 100%;
        margin: 1rem;
    }
    
    /* Button adjustments */
    .btn {
        justify-content: center;
    }
    
    .btn-group {
        flex-direction: column;
        width: 100%;
    }
}

@media (max-width: 480px) {
    /* Further mobile optimizations */
    .container {
        padding: 1rem;
        max-width: 100vw;
    }

    .card {
        border-radius: 0;
        max-width: 90vw;
        overflow-x: auto;
    }

    .stat-icon {
        width: 48px;
        height: 48px;
    }

    .notification-container {
        left: 10px;
        right: 10px;
    }

    .notification {
        min-width: auto;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
    .header,
    .btn,
    .modal-backdrop,
    .quick-actions,
    .no-print {
        display: none !important;
    }
    
    body {
        background: white;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .status-bar {
        background: none;
        color: #1e293b;
        border: 2px solid #4F46E5;
    }
}

/* ============================================
   DEFAULT BUTTON COLORS
   ============================================ */
/* Default colors - will be overridden by theme-colors.php when custom colors are set */
.btn.btn-primary,
button.btn-primary,
input[type="submit"].btn-primary,
input[type="button"].btn-primary {
    color: #ffffff;
}

/* ============================================
   BUTTON TEXT COLOR FIX
   ============================================ */
/* Default primary button text color */
button.btn-primary,
a.btn-primary,
.btn.btn-primary,
input.btn-primary {
    color: #ffffff;
}

button.btn-primary:hover,
a.btn-primary:hover,
.btn.btn-primary:hover,
input.btn-primary:hover,
button.btn-primary:focus,
a.btn-primary:focus,
.btn.btn-primary:focus,
input.btn-primary:focus,
button.btn-primary:active,
a.btn-primary:active,
.btn.btn-primary:active,
input.btn-primary:active {
    color: #ffffff;
}