﻿:root {
    --primary: #4361ee;
    --secondary: #3f37c9;
    --success: #4cc9f0;
    --info: #4895ef;
    --warning: #f72585;
    --danger: #e63946;
    --light: #f8f9fa;
    --dark: #212529;
    --male-color: #4361ee;
    --female-color: #f72585;
    --default-color: #6c757d;
    --online-status: #28a745;
    --offline-status: #6c757d;
    --away-status: #ffc107;
}

/* Avatar Base Styles */
.css-avatar {
    width: 40px;
    height: 40px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
    position: relative;
}

/* Avatar Size Variants */
.css-avatar-sm {
    width: 30px;
    height: 30px;
    font-size: 14px;
}

.css-avatar-md {
    width: 40px;
    height: 40px;
    font-size: 16px;
}

.css-avatar-lg {
    width: 60px;
    height: 60px;
    font-size: 24px;
}

.css-avatar-xl {
    width: 80px;
    height: 80px;
    font-size: 32px;
}

/* Avatar Color Variants */
.css-avatar-male {
    background-color: var(--male-color);
}

.css-avatar-female {
    background-color: var(--female-color);
}

.css-avatar-default {
    background-color: var(--default-color);
}

.css-avatar-primary {
    background-color: var(--primary);
}

.css-avatar-success {
    background-color: var(--success);
}

.css-avatar-warning {
    background-color: var(--warning);
}

.css-avatar-danger {
    background-color: var(--danger);
}

/* Avatar Container */
.avatar {
    position: relative;
    display: inline-block;
}

/* Status Indicators */
.status {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid white;
    box-shadow: 0 0 0 2px rgba(0,0,0,0.1);
}

.status-online {
    background-color: var(--online-status);
}

.status-offline {
    background-color: var(--offline-status);
}

.status-away {
    background-color: var(--away-status);
}

.status-sm {
    width: 8px;
    height: 8px;
    border-width: 1.5px;
}

.status-lg {
    width: 16px;
    height: 16px;
    border-width: 2.5px;
}

/* Hover Effects */
.css-avatar, .avatar-img {
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.css-avatar:hover, .avatar-img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

/* Avatar Image Styles */
.avatar-img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 50%;
    flex-shrink: 0;
}

.avatar-img-sm {
    width: 30px;
    height: 30px;
}

.avatar-img-md {
    width: 40px;
    height: 40px;
}

.avatar-img-lg {
    width: 60px;
    height: 60px;
}

.avatar-img-xl {
    width: 80px;
    height: 80px;
}

/* Animation for status indicator */
.status {
    animation: status-pulse 2s infinite;
}

@keyframes status-pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .css-avatar {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .css-avatar-sm {
        width: 25px;
        height: 25px;
        font-size: 12px;
    }
    
    .avatar-img {
        width: 35px;
        height: 35px;
    }
    
    .avatar-img-sm {
        width: 25px;
        height: 25px;
    }
}
/* Required field indicator */
.required {
    color: #FF0000;
}

/* Remove the spinner buttons from number inputs */
input[type=number]::-webkit-inner-spin-button, 
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Styles for pagination links */
.custom-pagination .pagination {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

/* Pagination List Item */
.custom-pagination .pagination li {
    list-style: none;
    margin: 0 5px;
}

/* Pagination Links */
.custom-pagination .pagination a,
.custom-pagination .pagination span {
    border: 1px solid #ddd;
    height: 33px;
    width: 33px;
    line-height: 33px;
    text-align: center;
    display: block;
    background-color: transparent;
    font-size: 13px;
    border-radius: 50%;
    color: #1A7DFF; /* Default color */
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Active Pagination Item */
.custom-pagination .pagination .active span {
    background-color: #1A7DFF;
    color: white;
    font-weight: bold;
}

/* Hover Effect for Pagination Links */
.custom-pagination .pagination a:hover {
    background-color: rgba(26, 125, 255, 1);
    color: white;
    text-decoration: none; /* Remove underline */
}

/* Disabled Pagination Item */
.custom-pagination .pagination .disabled a,
.custom-pagination .pagination .disabled span {
    color: #ccc;
    background-color: #f5f5f5;
    pointer-events: none;
}

/* Pagination First and Last Item */
.custom-pagination .pagination .first a,
.custom-pagination .pagination .last a {
    font-weight: bold;
}

/* Previous and Next Buttons */
.custom-pagination .pagination .previous a,
.custom-pagination .pagination .next a {
    font-weight: bold;
}

/* Responsive Design for Smaller Screens */
@media (max-width: 576px) {
   .custom-pagination .pagination {
        flex-wrap: wrap;
    }

   .custom-pagination .pagination li {
        margin: 2px;
    }
}

/* Main select box border */
  .select2-container--default .select2-selection--single {
    border: 1px solid #7e8c9e !important;
  }

  /* Selected text inside the select box */
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #7e8c9e !important;
    background-color: #fff !important;
  }


  /* Hover effect on select box */
  .select2-container--default .select2-selection--single:hover {
    border: 1px solid #7e8c9e !important;
  }

  /* Focus effect on select box */
  .select2-container--default.select2-container--focus .select2-selection--single {
    border: 1px solid #7e8c9e !important;
    box-shadow: 0 0 0 0.2rem rgba(126, 140, 158, 0.25);
  }

  /* Dropdown menu border */
  .select2-container--default .select2-dropdown {
    border: 1px solid #7e8c9e !important;
    border-top: none; /* optional: prevent double border where dropdown connects */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* subtle dropdown shadow */
    border-radius: 0 0 4px 4px;
  }

  /* Optional: styling dropdown options (text color) */
  .select2-container--default .select2-results__option {
    color: #7e8c9e;
  }
  .dashboard-header {
            background: linear-gradient(120deg, #4361ee, #3a0ca3);
            color: white;
            padding: 1.5rem;
            border-radius: 0 0 15px 15px;
            box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
            margin-bottom: 2rem;
        }
        
        .stat-card {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            height: 100%;
        }
        
        .stat-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
        }
        
        .stat-icon {
            width: 50px;
            height: 50px;
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 1.5rem;
            margin-bottom: 1rem;
        }
        
        .stat-value {
            font-size: 1.8rem;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }
        
        .stat-title {
            color: #6c757d;
            font-weight: 500;
        }
        
        .chart-container {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 1.5rem;
            height: 100%;
        }
        
        .chart-title {
            font-size: 1.2rem;
            font-weight: 600;
            margin-bottom: 1.5rem;
            color: #343a40;
            display: flex;
            align-items: center;
        }
        
        .chart-title i {
            margin-right: 10px;
            color: var(--primary);
        }
        
        .filter-section {
            background: white;
            border-radius: 12px;
            padding: 1rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
            margin-bottom: 1.5rem;
        }
        
        .btn-filter {
            background: linear-gradient(120deg, #4361ee, #3a0ca3);
            color: white;
            border: none;
            border-radius: 8px;
            padding: 0.5rem 1.5rem;
        }
        
        .recent-sales {
            background: white;
            border-radius: 12px;
            padding: 1.5rem;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
        }
        
        .table th {
            border-top: none;
            font-weight: 600;
            color: #495057;
        }
        
        .status-badge {
            padding: 0.35rem 0.65rem;
            border-radius: 50rem;
            font-size: 0.75rem;
            font-weight: 600;
        }
        
        .bg-pending {
            background-color: #fff3cd;
            color: #856404;
        }
        
        .bg-approved {
            background-color: #d1ecf1;
            color: #0c5460;
        }
        
        .bg-rejected {
            background-color: #f8d7da;
            color: #721c24;
        }
        
        @media (max-width: 768px) {
            .stat-value {
                font-size: 1.5rem;
            }
            
            .stat-card {
                margin-bottom: 1rem;
            }
        }
        /* Main select box border */
  .select2-container--default .select2-selection--single {
    border: 1px solid #7e8c9e !important;
  }
  /* Selected text inside the select box */
  .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #7e8c9e !important;
    background-color: #fff !important;
  }
  /* Hover effect on select box */
  .select2-container--default .select2-selection--single:hover {
    border: 1px solid #7e8c9e !important;
  }
  /* Focus effect on select box */
  .select2-container--default.select2-container--focus .select2-selection--single {
    border: 1px solid #7e8c9e !important;
    box-shadow: 0 0 0 0.2rem rgba(126, 140, 158, 0.25);
  }
  /* Dropdown menu border */
  .select2-container--default .select2-dropdown {
    border: 1px solid #7e8c9e !important;
    border-top: none; /* optional: prevent double border where dropdown connects */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); /* subtle dropdown shadow */
    border-radius: 0 0 4px 4px;
  }
  /* Optional: styling dropdown options (text color) */
  .select2-container--default .select2-results__option {
    color: #7e8c9e;
  }

  .file-upload-container {
    margin-top: 0.5rem;
  }

  .file-upload-area {
      border: 2px dashed #d1d5db;
      border-radius: 8px;
      padding: 2rem;
      text-align: center;
      transition: all 0.3s ease;
      background-color: #f9fafb;
      position: relative;
      min-height: 180px;
      display: flex;
      align-items: center;
      justify-content: center;
  }

  .file-upload-area:hover {
      border-color: #3b82f6;
      background-color: #f0f7ff;
  }

  .file-upload-area.dragover {
      border-color: #3b82f6;
      background-color: #e0f0ff;
      transform: scale(1.01);
  }

  .file-upload-placeholder i {
      font-size: 2.5rem;
      color: #9ca3af;
      margin-bottom: 0.5rem;
  }

  .file-upload-placeholder p {
      margin: 0.5rem 0;
      color: #6b7280;
      font-size: 0.95rem;
  }

  .browse-link {
      color: #3b82f6;
      cursor: pointer;
      font-weight: 500;
  }

  .file-types {
      font-size: 0.8rem;
      color: #9ca3af;
  }

  .file-previews {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}
.file-preview-item {
    position: relative;
    max-width: 150px;
}
.file-preview-item img {
    max-width: 100%;
    max-height: 120px;
    border-radius: 6px;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
}
.file-preview-item .remove-image-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ef4444;
    color: white;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
}
.file-preview-item .remove-image-btn:hover {
    background: #dc2626;
}

  .upload-progress {
      margin-top: 1rem;
      height: 6px;
      border-radius: 3px;
      background: #e5e7eb;
      overflow: hidden;
  }

  .progress-bar {
      height: 100%;
      background: #3b82f6;
      width: 0%;
      transition: width 0.3s ease;
  }

  .invalid-feedback {
      margin-top: 0.5rem;
  }