/* Global styles */
:root {
  --primary: #0d6efd;
  --secondary: #6c757d;
  --success: #198754;
  --info: #0dcaf0;
  --warning: #ffc107;
  --danger: #dc3545;
  --light: #f8f9fa;
  --dark: #212529;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  background-color: #f8f9fa;
  font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  min-height: 100vh;
  font-size: 0.9rem;
}

/* Reduced font sizes */
h1 {
  font-size: 1.8rem !important;
}

h2 {
  font-size: 1.6rem !important;
}

h3, .h3 {
  font-size: 1.4rem !important;
}

h4, .h4 {
  font-size: 1.2rem !important;
}

h5, .h5 {
  font-size: 1.1rem !important;
}

.table {
  font-size: 0.85rem;
}

.badge {
  font-size: 0.75rem;
}

.btn {
  font-size: 0.85rem;
}

.form-control, .form-select {
  font-size: 0.85rem;
}

/* Container with 90% width */
.container-90 {
  width: 90%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--bs-gutter-x, 0.75rem);
  padding-left: var(--bs-gutter-x, 0.75rem);
}

/* Sticky footer */
.footer {
  position: sticky;
  top: 100%;
}

/* Gradient backgrounds */
.bg-gradient-primary {
  background: linear-gradient(135deg, #0d6efd 0%, #0a54c5 100%);
}

.bg-gradient-secondary {
  background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.bg-gradient-success {
  background: linear-gradient(135deg, #198754 0%, #146c43 100%);
}

.bg-gradient-danger {
  background: linear-gradient(135deg, #dc3545 0%, #b02a37 100%);
}

.bg-gradient-warning {
  background: linear-gradient(135deg, #ffc107 0%, #fd7e14 100%);
}

.bg-gradient-info {
  background: linear-gradient(135deg, #0dcaf0 0%, #0b96c5 100%);
}

/* Card styling */
.card {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
}

.card:hover {
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.card-header {
  font-weight: 500;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  padding: 0.75rem 1rem;
}

.card-body {
  padding: 1rem;
}

/* Button styling */
.btn {
  border-radius: 5px;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
}

.btn-primary {
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-outline-primary {
  color: var(--primary);
  border-color: var(--primary);
}

/* Badge styling */
.badge {
  font-weight: 500;
  padding: 0.35em 0.6em;
  border-radius: 0.25rem;
}

/* Dashboard stat cards */
.stat-card {
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
  position: relative;
  overflow: hidden;
}

.stat-card h3 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.stat-card p {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.9;
}

.stat-icon {
  font-size: 2.5rem;
  opacity: 0.8;
}

/* Navbar styling */
.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.9);
}

.navbar-brand {
  font-size: 1.3rem;
}

/* Ticket Status Badge Styling */
.status-open {
  background-color: var(--warning);
  color: var(--dark);
}

.status-in_progress {
  background-color: var(--info);
  color: var(--dark);
}

.status-resolved {
  background-color: var(--success);
  color: var(--light);
}

.status-rejected {
  background-color: var(--danger);
  color: var(--light);
}

.status-needs_info {
  background-color: var(--secondary);
  color: var(--light);
}

/* Ticket Type Badge Styling */
.type-refund {
  background-color: #6610f2;
  color: var(--light);
}

.type-return {
  background-color: #fd7e14;
  color: var(--dark);
}

.type-alternative_item {
  background-color: #20c997;
  color: var(--dark);
}

/* Comment styling */
.comment-box {
  background-color: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 1rem;
  padding: 1rem;
}

.comment-user {
  font-weight: 500;
}

.comment-date {
  color: #6c757d;
  font-size: 0.8rem;
}

/* Form styling */
label {
  font-weight: 500;
  margin-bottom: 0.3rem;
}

.form-control:focus {
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
  border-color: var(--primary);
}

/* Attachment styling */
.attachment-list {
  list-style: none;
  padding: 0;
}

.attachment-item {
  padding: 0.75rem;
  margin-bottom: 0.5rem;
  background-color: rgba(0, 0, 0, 0.03);
  border-radius: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.attachment-name {
  font-weight: 500;
}

.attachment-info {
  font-size: 0.8rem;
  color: #6c757d;
}

/* Notification styles */
.unread-notification {
  background-color: rgba(13, 110, 253, 0.05);
  border-left: 3px solid var(--primary);
}

.notification-badge {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(40%, -40%);
}

/* Search form styling */
.search-form {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
  margin-bottom: 2rem;
}

/* Animation for new notifications */
@keyframes notification-pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.notification-highlight {
  animation: notification-pulse 1s ease infinite;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .navbar-brand {
    font-size: 1.1rem;
  }
  
  .stat-card {
    padding: 1rem;
  }
  
  .stat-card h3 {
    font-size: 1.8rem;
  }
  
  .stat-icon {
    font-size: 1.8rem;
  }
  
  h1 {
    font-size: 1.8rem;
  }
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

/* Table styling */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table th, .table td {
  padding: 0.5rem 0.75rem;
}

.table th {
  font-weight: 600;
  background-color: rgba(0, 0, 0, 0.02);
}

.table tbody tr {
  transition: background-color 0.3s;
}

.table tbody tr:hover {
  background-color: rgba(13, 110, 253, 0.05);
}

/* User tagging */
.user-tag {
  background-color: #e9ecef;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: bold;
  color: var(--primary);
}

/* Dashboard cards */
.dashboard-card {
  transition: transform 0.3s;
  border-radius: 12px;
  overflow: hidden;
}

.dashboard-card:hover {
  transform: translateY(-5px);
}

/* Custom button styles */
.btn-outline-status {
  border-width: 2px;
}

/* Animations */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Border radius utility classes */
.rounded-4 {
  border-radius: 0.8rem !important;
}

.rounded-5 {
  border-radius: 1.2rem !important;
}

/* Min height utilities */
.min-vh-75 {
  min-height: 75vh !important;
}

/* Smaller badges with less padding */
.badge {
  font-weight: 500;
  padding: 0.35em 0.6em;
  border-radius: 0.25rem;
}

/* Compact form inputs */
.form-control, .form-select, .input-group-text {
  padding: 0.3rem 0.6rem;
}

/* Smaller buttons */
.btn-sm {
  padding: 0.2rem 0.4rem;
  font-size: 0.75rem;
}

/* Smaller nav tabs */
.nav-tabs .nav-link {
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
} 