/**
 * Gerai Pajak - Custom Global Styles
 * Reusable CSS components untuk seluruh aplikasi
 */

/* ============================================
   CSS Variables / Design Tokens
   ============================================ */
:root {
  /* Primary Colors */
  --gp-primary: #4e73df;
  --gp-primary-dark: #3a5bc7;
  --gp-primary-light: #7c9df5;

  /* Secondary Colors */
  --gp-secondary: #858796;
  --gp-secondary-dark: #5a5c69;

  /* Status Colors */
  --gp-success: #1cc88a;
  --gp-danger: #e74a3b;
  --gp-warning: #f6c23e;
  --gp-info: #36b9cc;

  /* Gradient Colors */
  --gp-gradient-start: #667eea;
  --gp-gradient-end: #764ba2;

  /* Neutral Colors */
  --gp-white: #ffffff;
  --gp-gray-100: #f8f9fc;
  --gp-gray-200: #edf2f7;
  --gp-gray-300: #e1e5eb;
  --gp-gray-400: #a0aec0;
  --gp-gray-500: #858796;
  --gp-gray-600: #5a5c69;
  --gp-gray-700: #344054;
  --gp-gray-800: #2d3748;
  --gp-gray-900: #1a202c;

  /* Shadows */
  --gp-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --gp-shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
  --gp-shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.12);
  --gp-shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.15);

  /* Border Radius */
  --gp-radius-sm: 6px;
  --gp-radius-md: 10px;
  --gp-radius-lg: 12px;
  --gp-radius-xl: 20px;
  --gp-radius-full: 50%;

  /* Transitions */
  --gp-transition-fast: 0.2s ease;
  --gp-transition-normal: 0.3s ease;
  --gp-transition-slow: 0.5s ease;
}

/* ============================================
   Typography
   ============================================ */
.gp-font-inter {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* ============================================
   Backgrounds
   ============================================ */
.gp-bg-gradient {
  background: linear-gradient(
    135deg,
    var(--gp-gradient-start) 0%,
    var(--gp-gradient-end) 100%
  );
}

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

/* ============================================
   Auth Pages (Login, Register, etc)
   ============================================ */
.gp-auth-page {
  min-height: 100vh;
  background: linear-gradient(
    135deg,
    var(--gp-gradient-start) 0%,
    var(--gp-gradient-end) 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gp-auth-wrapper {
  width: 100%;
  max-width: 420px;
}

.gp-auth-card {
  background: var(--gp-white);
  border-radius: var(--gp-radius-xl);
  box-shadow: var(--gp-shadow-xl);
  overflow: hidden;
  animation: gpSlideUp 0.5s ease-out;
}

.gp-auth-header {
  background: linear-gradient(
    135deg,
    var(--gp-gradient-start) 0%,
    var(--gp-gradient-end) 100%
  );
  padding: 40px 30px;
  text-align: center;
  position: relative;
}

.gp-auth-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background: var(--gp-white);
  border-radius: 50% 50% 0 0;
}

.gp-auth-header h1 {
  color: var(--gp-white);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  position: relative;
  z-index: 1;
}

.gp-auth-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
  margin: 8px 0 0;
  position: relative;
  z-index: 1;
}

.gp-auth-body {
  padding: 30px 35px 40px;
}

.gp-auth-footer {
  text-align: center;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--gp-gray-200);
}

.gp-auth-footer p {
  color: var(--gp-secondary);
  font-size: 0.85rem;
  margin: 0;
}

.gp-auth-footer a {
  color: var(--gp-primary);
  text-decoration: none;
  font-weight: 600;
}

.gp-auth-footer a:hover {
  text-decoration: underline;
}

/* ============================================
   Logo Container
   ============================================ */
.gp-logo-container {
  width: 90px;
  height: 90px;
  background: var(--gp-white);
  border-radius: var(--gp-radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 15px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  position: relative;
  z-index: 1;
}

.gp-logo-container img {
  width: 60px;
  height: 60px;
  object-fit: contain;
}

.gp-logo-container--sm {
  width: 60px;
  height: 60px;
}

.gp-logo-container--sm img {
  width: 40px;
  height: 40px;
}

.gp-logo-container--lg {
  width: 120px;
  height: 120px;
}

.gp-logo-container--lg img {
  width: 80px;
  height: 80px;
}

/* ============================================
   Form Components
   ============================================ */
.gp-form-group {
  margin-bottom: 20px;
}

.gp-form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gp-gray-700);
  margin-bottom: 8px;
}

.gp-input-group {
  position: relative;
}

.gp-input-group i:first-child {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gp-secondary);
  font-size: 1rem;
  z-index: 2;
}

.gp-form-control {
  width: 100%;
  padding: 14px 16px 14px 48px;
  font-size: 0.95rem;
  border: 2px solid var(--gp-gray-300);
  border-radius: var(--gp-radius-lg);
  transition: all var(--gp-transition-normal);
  background: var(--gp-gray-100);
}

.gp-form-control:focus {
  outline: none;
  border-color: var(--gp-primary);
  background: var(--gp-white);
  box-shadow: 0 0 0 4px rgba(78, 115, 223, 0.1);
}

.gp-form-control::placeholder {
  color: var(--gp-gray-400);
}

.gp-form-control--no-icon {
  padding-left: 16px;
}

/* Password Toggle */
.gp-password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--gp-secondary);
  cursor: pointer;
  padding: 0;
  z-index: 2;
}

.gp-password-toggle:hover {
  color: var(--gp-primary);
}

/* Form Options */
.gp-form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

/* ============================================
   Custom Checkbox
   ============================================ */
.gp-checkbox-wrapper {
  display: flex;
  align-items: center;
  cursor: pointer;
}

.gp-checkbox-wrapper input {
  display: none;
}

.gp-checkmark {
  width: 20px;
  height: 20px;
  border: 2px solid var(--gp-gray-300);
  border-radius: var(--gp-radius-sm);
  margin-right: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--gp-transition-fast);
}

.gp-checkbox-wrapper input:checked + .gp-checkmark {
  background: var(--gp-primary);
  border-color: var(--gp-primary);
}

.gp-checkmark i {
  color: var(--gp-white);
  font-size: 0.7rem;
  opacity: 0;
  transition: opacity var(--gp-transition-fast);
}

.gp-checkbox-wrapper input:checked + .gp-checkmark i {
  opacity: 1;
}

.gp-checkbox-wrapper span:last-child {
  font-size: 0.875rem;
  color: var(--gp-secondary);
}

/* ============================================
   Buttons
   ============================================ */
.gp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--gp-radius-lg);
  cursor: pointer;
  transition: all var(--gp-transition-normal);
  position: relative;
  overflow: hidden;
}

.gp-btn--block {
  width: 100%;
}

.gp-btn--primary {
  color: var(--gp-white);
  background: linear-gradient(
    135deg,
    var(--gp-gradient-start) 0%,
    var(--gp-gradient-end) 100%
  );
}

.gp-btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.gp-btn--primary:active {
  transform: translateY(0);
}

.gp-btn--secondary {
  color: var(--gp-gray-700);
  background: var(--gp-gray-200);
}

.gp-btn--secondary:hover {
  background: var(--gp-gray-300);
}

.gp-btn--success {
  color: var(--gp-white);
  background: var(--gp-success);
}

.gp-btn--success:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.gp-btn--danger {
  color: var(--gp-white);
  background: var(--gp-danger);
}

.gp-btn--danger:hover {
  filter: brightness(1.1);
  transform: translateY(-2px);
}

.gp-btn i {
  margin-left: 8px;
  transition: transform var(--gp-transition-normal);
}

.gp-btn:hover i {
  transform: translateX(4px);
}

.gp-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

/* ============================================
   Alerts
   ============================================ */
.gp-alert {
  padding: 12px 16px;
  border-radius: var(--gp-radius-md);
  margin-bottom: 20px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
}

.gp-alert i {
  margin-right: 10px;
}

.gp-alert--danger {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

.gp-alert--success {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.gp-alert--warning {
  background: #fffbeb;
  color: #d97706;
  border: 1px solid #fde68a;
}

.gp-alert--info {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
}

/* ============================================
   Cards
   ============================================ */
.gp-card {
  background: var(--gp-white);
  border-radius: var(--gp-radius-lg);
  box-shadow: var(--gp-shadow-md);
  overflow: hidden;
}

.gp-card-header {
  padding: 20px 25px;
  border-bottom: 1px solid var(--gp-gray-200);
  background: var(--gp-gray-100);
}

.gp-card-body {
  padding: 25px;
}

.gp-card-footer {
  padding: 15px 25px;
  border-top: 1px solid var(--gp-gray-200);
  background: var(--gp-gray-100);
}

/* ============================================
   Animations
   ============================================ */
@keyframes gpSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gpSlideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes gpFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes gpPulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.gp-animate-slideUp {
  animation: gpSlideUp 0.5s ease-out;
}

.gp-animate-slideDown {
  animation: gpSlideDown 0.5s ease-out;
}

.gp-animate-fadeIn {
  animation: gpFadeIn 0.3s ease-out;
}

/* ============================================
   Utilities
   ============================================ */
.gp-text-center {
  text-align: center;
}
.gp-text-left {
  text-align: left;
}
.gp-text-right {
  text-align: right;
}

.gp-text-primary {
  color: var(--gp-primary);
}
.gp-text-secondary {
  color: var(--gp-secondary);
}
.gp-text-success {
  color: var(--gp-success);
}
.gp-text-danger {
  color: var(--gp-danger);
}
.gp-text-muted {
  color: var(--gp-gray-500);
}

.gp-mb-0 {
  margin-bottom: 0;
}
.gp-mb-1 {
  margin-bottom: 0.5rem;
}
.gp-mb-2 {
  margin-bottom: 1rem;
}
.gp-mb-3 {
  margin-bottom: 1.5rem;
}
.gp-mb-4 {
  margin-bottom: 2rem;
}

.gp-mt-0 {
  margin-top: 0;
}
.gp-mt-1 {
  margin-top: 0.5rem;
}
.gp-mt-2 {
  margin-top: 1rem;
}
.gp-mt-3 {
  margin-top: 1.5rem;
}
.gp-mt-4 {
  margin-top: 2rem;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 480px) {
  .gp-auth-body {
    padding: 25px 25px 35px;
  }

  .gp-auth-header {
    padding: 30px 25px;
  }

  .gp-form-control {
    padding: 12px 14px 12px 44px;
    font-size: 0.9rem;
  }

  .gp-btn {
    padding: 12px 20px;
    font-size: 0.95rem;
  }
}

/* ============================================
   Override SB-Admin Sidebar Gradient
   ============================================ */
.sidebar.bg-gradient-primary {
  background: linear-gradient(180deg, #667eea 0%, #764ba2 100%) !important;
}

.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border: none !important;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #5a6fd6 0%, #6a4190 100%) !important;
}

/* ============================================
   Sidebar Active State
   ============================================ */
.sidebar .nav-item.active .nav-link {
  font-weight: 700;
}
/* ============================================
   Modern Card Styling
   ============================================ */
.card {
  border: none !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12) !important;
}

.card-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 1.25rem 1.5rem !important;
  border: none !important;
}

.card-header h6,
.card-header .h6 {
  color: #ffffff !important;
  font-weight: 700;
  font-size: 1rem;
  margin: 0;
}

.card-body {
  padding: 1.5rem !important;
}

/* ============================================
   Modern Table Styling
   ============================================ */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table thead th {
  background: #f8fafc !important;
  color: #475569 !important;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 1rem 1.25rem !important;
  border: none !important;
  border-bottom: 2px solid #e2e8f0 !important;
}

.table thead th:first-child {
  border-radius: 12px 0 0 0;
}

.table thead th:last-child {
  border-radius: 0 12px 0 0;
}

.table tbody tr {
  transition: all 0.2s ease;
}

.table tbody tr:hover {
  background: #f8fafc !important;
}

.table tbody td {
  padding: 1rem 1.25rem !important;
  vertical-align: middle !important;
  border: none !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155;
  font-size: 0.9rem;
}

.table tbody tr:last-child td {
  border-bottom: none !important;
}

.table tfoot th {
  display: none;
}

/* Table Container without Card */
.table-responsive {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem;
}

/* DataTables Styling */
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter {
  margin-bottom: 1.5rem;
}

.dataTables_wrapper .dataTables_length select {
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 30px 8px 14px !important;
  font-size: 0.9rem;
  transition: all 0.3s ease;
  height: auto !important;
  line-height: 1.5 !important;
  min-height: 40px;
}

.dataTables_wrapper .dataTables_filter input {
  border: 2px solid #e2e8f0 !important;
  border-radius: 10px !important;
  padding: 8px 14px !important;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.dataTables_wrapper .dataTables_length select:focus,
.dataTables_wrapper .dataTables_filter input:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
  outline: none;
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border: none !important;
  border-radius: 8px !important;
  padding: 8px 14px !important;
  margin: 0 3px !important;
  font-weight: 500;
  transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
}

.dataTables_wrapper .dataTables_info {
  color: #64748b;
  font-size: 0.875rem;
  padding-top: 1rem;
}

/* ============================================
   Modern Button Styling
   ============================================ */
.btn {
  border-radius: 10px !important;
  font-weight: 600;
  padding: 10px 20px;
  transition: all 0.3s ease;
  border: none !important;
}

.btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
}

.btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4);
}

.btn-warning {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%) !important;
  color: #ffffff !important;
}

.btn-warning:hover {
  background: linear-gradient(135deg, #d97706 0%, #b45309 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
}

.btn-danger {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
}

.btn-danger:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%) !important;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-secondary {
  background: #e2e8f0 !important;
  color: #475569 !important;
}

.btn-secondary:hover {
  background: #cbd5e1 !important;
  color: #334155 !important;
}

/* Small Buttons */
.btn-sm {
  padding: 6px 12px !important;
  font-size: 0.8rem;
}

/* Action Buttons Group */
.btn-group .btn {
  border-radius: 0 !important;
}

.btn-group .btn:first-child {
  border-radius: 8px 0 0 8px !important;
}

.btn-group .btn:last-child {
  border-radius: 0 8px 8px 0 !important;
}

.btn-group .btn-sm {
  padding: 8px 14px !important;
}

/* ============================================
   Modern Modal Styling
   ============================================ */
.modal-content {
  border: none !important;
  border-radius: 20px !important;
  overflow: hidden;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15) !important;
}

.modal-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  color: #ffffff !important;
  border: none !important;
  padding: 1.5rem !important;
}

.modal-header .modal-title,
.modal-header h4,
.modal-header h5 {
  font-weight: 700;
  color: #ffffff !important;
  font-size: 1.25rem;
}

.modal-header .btn-close,
.modal-header .close {
  color: #ffffff !important;
  opacity: 0.8;
  text-shadow: none;
  filter: brightness(0) invert(1);
}

.modal-header .btn-close:hover,
.modal-header .close:hover {
  opacity: 1;
}

.modal-body {
  padding: 2rem !important;
}

.modal-footer {
  border-top: 1px solid #f1f5f9 !important;
  padding: 1.25rem 2rem !important;
  gap: 10px;
}

/* ============================================
   Modern Form Styling
   ============================================ */
.form-label {
  font-weight: 600;
  color: #374151;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
}

.form-control,
.form-select {
  border: 2px solid #e5e7eb !important;
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background-color: #f9fafb;
}

.form-control:focus,
.form-select:focus {
  border-color: #667eea !important;
  box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1) !important;
  background-color: #ffffff;
  outline: none;
}

.form-control::placeholder {
  color: #9ca3af;
}

textarea.form-control {
  min-height: 120px;
  resize: vertical;
}

/* File Input */
input[type="file"].form-control {
  padding: 12px 16px !important;
  min-height: 50px;
  line-height: 1.5;
  display: flex;
  align-items: center;
}

input[type="file"].form-control::file-selector-button {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  margin-right: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  height: auto;
  line-height: 1.4;
}

input[type="file"].form-control::file-selector-button:hover {
  opacity: 0.9;
}

/* Form Groups */
.mb-3 {
  margin-bottom: 1.25rem !important;
}

/* ============================================
   Page Header Styling
   ============================================ */
.h3.text-gray-800,
h1.h3.text-gray-800 {
  font-weight: 700;
  color: #1e293b !important;
  font-size: 1.75rem;
  margin-bottom: 1.5rem !important;
}

/* ============================================
   Image Preview in Table
   ============================================ */
.zoomable {
  width: 80px !important;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  border: 2px solid #f1f5f9;
  transition: all 0.3s ease;
  cursor: pointer;
}

.zoomable:hover {
  transform: scale(2.5);
  z-index: 100;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  border-color: #667eea;
}

/* ============================================
   Content Preview
   ============================================ */
.content-preview {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.5;
}

.content-preview a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}

.content-preview a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ============================================
   Badge / Tag Styling
   ============================================ */
.badge-category {
  background: linear-gradient(135deg, #667eea20 0%, #764ba220 100%);
  color: #667eea;
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  display: inline-block;
}

/* ============================================
   Empty State
   ============================================ */
.empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: #94a3b8;
}

.empty-state i {
  font-size: 3rem;
  margin-bottom: 1rem;
  color: #cbd5e1;
}

.empty-state h5 {
  color: #64748b;
  font-weight: 600;
}

.empty-state p {
  font-size: 0.9rem;
}

/* ============================================
   Responsive Improvements
   ============================================ */
@media (max-width: 768px) {
  .card-body {
    padding: 1rem !important;
  }

  .table thead th,
  .table tbody td {
    padding: 0.75rem !important;
    font-size: 0.85rem;
  }

  .btn {
    padding: 8px 14px;
    font-size: 0.85rem;
  }

  .modal-body {
    padding: 1.25rem !important;
  }

  .zoomable {
    width: 60px !important;
    height: 45px;
  }
}
/* ============================================
   Dashboard Styles
   ============================================ */

/* Dashboard Stats Cards */
.dashboard-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
}

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

.dashboard-card-body {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.dashboard-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #ffffff;
}

.dashboard-card-primary .dashboard-card-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.dashboard-card-success .dashboard-card-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.dashboard-card-info .dashboard-card-icon {
  background: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
}

.dashboard-card-warning .dashboard-card-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.dashboard-card-info-text {
  flex: 1;
}

.dashboard-card-number {
  font-size: 2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1;
}

.dashboard-card-label {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

.dashboard-card-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  background: #f8fafc;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  gap: 0.5rem;
}

.dashboard-card-footer:hover {
  background: #f1f5f9;
  color: #667eea;
  text-decoration: none;
}

.dashboard-card-footer i {
  font-size: 0.75rem;
  transition: transform 0.2s ease;
}

.dashboard-card-footer:hover i {
  transform: translateX(3px);
}

/* Dashboard Sections */
.dashboard-section {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.dashboard-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.dashboard-section-header h5 {
  margin: 0;
  font-weight: 700;
  color: #1e293b;
  font-size: 1rem;
  display: flex;
  align-items: center;
}

.dashboard-section-header h5 i {
  color: #667eea;
}

.dashboard-section-body {
  padding: 1.5rem;
}

/* Recent Posts List */
.recent-posts-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.recent-post-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
  transition: all 0.2s ease;
}

.recent-post-item:hover {
  background: #f1f5f9;
}

.recent-post-content {
  flex: 1;
  min-width: 0;
}

.recent-post-title {
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 0.5rem 0;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.recent-post-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.recent-post-date {
  font-size: 0.8rem;
  color: #94a3b8;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.recent-post-image {
  width: 60px;
  height: 45px;
  object-fit: cover;
  border-radius: 8px;
  margin-left: 1rem;
  flex-shrink: 0;
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item:hover img {
  transform: scale(1.1);
}

.gallery-placeholder {
  width: 100%;
  height: 100%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 2rem;
}

.gallery-item-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.75rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 500;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

/* Quick Actions */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.quick-action-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: #f8fafc;
  border-radius: 12px;
  color: #475569;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.quick-action-btn:hover {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.quick-action-btn i {
  font-size: 1.1rem;
  width: 24px;
  text-align: center;
}

/* Empty State for Dashboard */
.dashboard-section .empty-state {
  padding: 2rem 1rem;
}

.dashboard-section .empty-state i {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.dashboard-section .empty-state p {
  margin-bottom: 1rem;
}

/* Dashboard Responsive */
@media (max-width: 768px) {
  .dashboard-card-body {
    padding: 1.25rem;
  }

  .dashboard-card-icon {
    width: 50px;
    height: 50px;
    font-size: 1.25rem;
  }

  .dashboard-card-number {
    font-size: 1.5rem;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }

  .quick-actions {
    flex-direction: column;
  }

  .quick-action-btn {
    width: 100%;
    justify-content: center;
  }

  .recent-post-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .recent-post-image {
    margin-left: 0;
    width: 100%;
    height: 120px;
    border-radius: 8px;
  }
}
/* ============================================
   Footer Branding
   ============================================ */
.gp-footer {
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  padding: 1.25rem 1.5rem;
  margin-top: 2rem;
}

.gp-footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.gp-footer-copyright {
  font-size: 0.875rem;
  color: #64748b;
}

.gp-footer-copyright strong {
  color: #334155;
}

.gp-footer-credit {
  font-size: 0.875rem;
  color: #64748b;
}

.gp-footer-credit i.fa-heart {
  color: #ef4444;
  animation: heartbeat 1.5s ease-in-out infinite;
}

.gp-footer-credit a {
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
}

.gp-footer-credit a:hover {
  color: #764ba2;
  text-decoration: underline;
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
}

@media (max-width: 576px) {
  .gp-footer-content {
    flex-direction: column;
    text-align: center;
  }
}
