/* Rice Mill Management - Custom Styles */

/* Global Styles */
:root {
  --rice-gold: #D4AF37;
  --paddy-green: #4A7C59;
  --mill-brown: #8B4513;
  --light-cream: #F5F5DC;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
}

/* Navbar Enhancements */
.navbar {
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.navbar-brand img {
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--rice-gold) !important;
}

/* Hero Section */
.bg-primary {
  background: linear-gradient(135deg, var(--paddy-green) 0%, #5D8C6A 100%) !important;
}

.hero h1 {
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  animation: fadeInUp 1s ease;
}

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

/* Services Cards */

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 15px !important;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.15) !important;
}

.card i {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
}

/* Stats Section */
.h1 {
  font-weight: 700;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
  animation: countUp 2s ease;
}

/* Modal Customizations */
.modal-content {
  border-radius: 20px;
  box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.modal-header {
  border-bottom: none;
  border-radius: 20px 20px 0 0;
}

#memberRegisterModal .modal-header,
#loginModal .modal-header,
#registerModal .modal-header {
  background: #ffffff !important;
  border-bottom: 1px solid #d9e2ec;
  color: #172033 !important;
}

#memberRegisterModal .modal-title,
#loginModal .modal-title,
#registerModal .modal-title {
  color: #172033 !important;
}

.form-control:focus {
  border-color: var(--rice-gold);
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rice-gold), #B8972E);
  border: none;
  border-radius: 25px;
  padding: 10px 30px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
}

.btn-success {
  background: linear-gradient(135deg, var(--paddy-green), #4A7C59);
  border: none;
}

/* CTA Section */
.input-group .form-control {
  border-radius: 50px 0 0 50px;
}

.input-group .btn {
  border-radius: 0 50px 50px 0;
}

/* Stats Animation */
@keyframes countUp {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .navbar-nav {
    text-align: center;
  }
}

/* Rice-themed background patterns */
.bg-gradient {
  background: linear-gradient(45deg, var(--mill-brown), var(--light-cream), var(--paddy-green));
}

/* Footer compatibility - overridden by footer.css */

/* Custom Bootstrap Replacement - Copied from admin.css */
* {
  box-sizing: border-box;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -15px;
}
.col-md-6 {
  flex: 0 0 50%;
  padding: 0 15px;
}
.col-lg-4 {
  flex: 0 0 33.333%;
  padding: 0 15px;
}
.col-12 {
  flex: 0 0 100%;
  padding: 0 15px;
}
@media (max-width: 768px) {
  .col-md-6 {
    flex: 0 0 100%;
  }
  .col-lg-4 {
    flex: 0 0 100%;
  }
}
.navbar-collapse {
  display: flex;
  justify-content: flex-end;
}
.navbar-collapse.show {
  display: flex !important;
}
.navbar-toggler {
  border: 1px solid #dee2e6;
  padding: 0.25rem 0.5rem;
  background: white;
}
.dropdown-menu {
  position: absolute;
  background: white;
  border: 1px solid #dee2e6;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  min-width: 12rem;
  list-style: none;
  padding: 0;
  display: none;
}
.dropdown-menu.show {
  display: block;
}
.modal:not(.show) {
  display: none;
}
.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 120010;
  pointer-events: auto;
}
.modal-backdrop,
body.modal-open .modal-backdrop {
  z-index: 120000 !important;
}
.modal.show {
  display: block;
}
.modal.show .modal-dialog {
  position: relative;
  z-index: 120011;
}
.modal-dialog, .modal-content {
  pointer-events: auto;
}
.modal-content * {
  pointer-events: auto;
}
.modal-dialog {
  max-width: 500px;
  margin: 0 auto;
  width: 90%;
}
.modal.show .modal-dialog {
  margin: auto;
}
.modal-dialog.modal-xl {
  max-width: 90%;
}
.modal-xl .modal-dialog {
  max-width: 90vw;
}
.btn-close {
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
}
.btn-close:hover {
  opacity: 1;
}
.alert {
  position: relative;
  padding: 1rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
}
.alert .btn-close {
  position: absolute;
  top: 0.5rem;
  right: 1rem;
  background: none;
  border: none;
}
.jumbotron {
  padding: 2rem 1rem;
  margin-bottom: 2rem;
  background-color: #f8f9fa;
  border-radius: 0.5rem;
}
.g-4 {
  --bs-gutter-x: 1.5rem;
  --bs-gutter-y: 1.5rem;
}
