/* Main CSS for KAMKI Application */

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

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #DDB4BD;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #91363D;
}

/* Back to Top Button */
.back-to-top {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #303030;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition-duration: 0.3s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 9999;
}

.svgIcon {
  width: 12px;
  transition-duration: 0.3s;
}

.svgIcon path {
  fill: white;
}

.back-to-top:hover {
  width: 140px;
  border-radius: 50px;
  transition-duration: 0.3s;
  background-color: #DDB4BD;
  align-items: center;
}

.back-to-top:hover .svgIcon {
  transition-duration: 0.3s;
  transform: translateY(-200%);
}

.back-to-top::before {
  position: absolute;
  bottom: -20px;
  content: "Back to Top";
  color: white;
  font-size: 0px;
  opacity: 0;
  left: 50%;
  transform: translateX(-50%);
  transition: font-size 0.3s, opacity 0.3s;
}

.back-to-top:hover::before {
  font-size: 13px;
  opacity: 1;
  bottom: unset;
  transition-duration: 0.3s;
}

/* Flash Messages Animation */
.flash-message {
  transform: translateX(100%);
  transition: transform 0.5s ease-in-out;
}

.flash-message.show {
  transform: translateX(0);
}

.flash-message.hide {
  transform: translateX(100%);
}

/* Custom Colors */
.bg-kamki-primary {
  background-color: #DDB4BD;
}

.bg-kamki-secondary {
  background-color: #91363D;
}

.bg-kamki-dark {
  background-color: #303030;
}

.text-kamki-primary {
  color: #DDB4BD;
}

.text-kamki-secondary {
  color: #91363D;
}

.text-kamki-dark {
  color: #303030;
}

/* Loading Animation */
.loading-spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* Gallery Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
  }
  
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    z-index: 9999;
  }
}

/* Modal Styles */
.modal-backdrop {
  backdrop-filter: blur(8px);
  background-color: rgba(0, 0, 0, 0.3);
}

.modal-content {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Form Styles */
.form-input:focus {
  border-color: #DDB4BD;
  box-shadow: 0 0 0 3px rgba(221, 180, 189, 0.1);
}

.btn-primary {
  background-color: #DDB4BD;
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background-color: #91363D;
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: #303030;
  color: white;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background-color: #DDB4BD;
  color: #303030;
  transform: translateY(-1px);
}

/* Card Styles */
.card {
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

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

/* Table Styles */
.table-responsive {
  overflow-x: auto;
}

.table th {
  background-color: #f8f9fa;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

/* Pagination Styles */
.pagination-btn {
  transition: all 0.3s ease;
}

.pagination-btn:hover {
  background-color: #DDB4BD;
  color: white;
  transform: translateY(-1px);
}

.pagination-btn.active {
  background-color: #DDB4BD;
  color: white;
}

/* Status Badges */
.status-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-pending {
  background-color: #fef3c7;
  color: #92400e;
}

.status-approved {
  background-color: #d1fae5;
  color: #065f46;
}

.status-rejected {
  background-color: #fee2e2;
  color: #991b1b;
}

.status-published {
  background-color: #d1fae5;
  color: #065f46;
}

.status-draft {
  background-color: #f3f4f6;
  color: #374151;
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Utility Classes */
.text-shadow {
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.box-shadow {
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.box-shadow-lg {
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}
