/* ========================================
   MoneyMaitra Modern UI Stylesheet
   ======================================== */

:root {
  /* MoneyMaitra Brand Colors - From Logo */
  --primary: #059669;           /* Green from logo icon */
  --primary-dark: #047857;      /* Darker green */
  --primary-light: #d1fae5;     /* Light green */
  --secondary: #1e3a5f;         /* Dark blue from logo text */
  --secondary-dark: #0f172a;    /* Darker blue */
  --accent: #10b981;            /* Medium green accent */
  --success: #059669;           /* Same as primary */
  --danger: #ef4444;            /* Red for errors */
  --warning: #f59e0b;           /* Amber for warnings */
  --info: #0891b2;              /* Teal for info */
  
  --text-dark: #1e3a5f;         /* Dark blue from logo */
  --text-light: #6b7280;        /* Gray */
  --text-muted: #9ca3af;        /* Muted gray */
  --bg-light: #f0fdf4;          /* Very light green */
  --bg-lighter: #f3f4f6;        /* Light gray */
  --border: #d1e7dd;            /* Light green border */
  --shadow-sm: 0 1px 2px 0 rgba(5, 150, 105, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(5, 150, 105, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(5, 150, 105, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(5, 150, 105, 0.1);
  
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Trebuchet MS, sans-serif;
  color: var(--text-dark);
  background: #ffffff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ===== NAVIGATION ===== */
.ws-navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
  padding: 12px 0;
}

.ws-navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.ws-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.ws-nav-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  text-decoration: none;
}

.ws-nav-logo img {
  height: 40px;
  width: auto;
}

.ws-nav-links {
  display: flex;
  list-style: none;
  gap: 32px;
  flex: 1;
}

.ws-nav-links a {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: var(--transition);
  position: relative;
}

.ws-nav-links a::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  width: 0;
  height: 2px;
  background: #059669;
  transition: width 0.3s ease;
}

.ws-nav-links a:hover::after,
.ws-nav-links a.active::after {
  width: 100%;
}

.ws-nav-links a.active {
  color: #059669;
}

.ws-nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.ws-btn-apply, .ws-btn-repay {
  padding: 10px 20px;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: inline-block;
  text-align: center;
}

.ws-btn-apply {
  background: var(--primary);
  color: white;
}

.ws-btn-apply:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.ws-btn-repay {
  color: var(--primary);
  border: 1.5px solid var(--primary);
  background: transparent;
}

.ws-btn-repay:hover {
  background: var(--primary);
  color: white;
}

/* Mobile menu */
.ws-hamburger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
}

.ws-hamburger span {
  width: 24px;
  height: 2.5px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

@media (max-width: 768px) {
  .ws-nav-links { display: none; }
  .ws-nav-actions { display: none; }
  .ws-hamburger { display: flex; }
}

/* ===== HERO SECTION ===== */
.mm-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #059669 0%, #047857 50%, #1e3a5f 100%);
  padding: 120px 24px;
  margin-top: 65px;
  min-height: 600px;
  display: flex;
  align-items: center;
}

.mm-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(5, 150, 105, 0.3) 0%, transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(30, 58, 95, 0.2) 0%, transparent 50%);
  pointer-events: none;
}

.mm-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.mm-hero-text h1 {
  font-size: 48px;
  font-weight: 800;
  color: white;
  margin-bottom: 16px;
  line-height: 1.2;
}

.mm-hero-text p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 32px;
  line-height: 1.6;
}

.mm-hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.mm-btn {
  padding: 14px 32px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.mm-btn-primary {
  background: white;
  color: var(--primary);
}

.mm-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-xl);
}

.mm-btn-secondary {
  background: transparent;
  color: white;
  border: 2px solid white;
}

.mm-btn-secondary:hover {
  background: white;
  color: var(--primary);
}

@media (max-width: 768px) {
  .mm-hero-content {
    grid-template-columns: 1fr;
  }
  .mm-hero-text h1 {
    font-size: 32px;
  }
}

/* ===== CARDS & SECTIONS ===== */
.mm-section {
  padding: 80px 24px;
  max-width: 1280px;
  margin: 0 auto;
}

.mm-section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 16px;
}

.mm-section-subtitle {
  font-size: 18px;
  color: var(--text-light);
  text-align: center;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.mm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
}

.mm-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: 32px;
  border: 1px solid var(--border);
  transition: var(--transition);
}

.mm-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-6px);
}

.mm-card-icon {
  width: 56px;
  height: 56px;
  background: var(--primary);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 28px;
  margin-bottom: 16px;
}

.mm-card-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.mm-card-text {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== FORM STYLING ===== */
.mm-form-group {
  margin-bottom: 24px;
}

.mm-label {
  display: block;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.mm-input, .mm-select, .mm-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-family: inherit;
  transition: var(--transition);
  background: white;
  color: var(--text-dark);
}

.mm-input:focus, .mm-select:focus, .mm-textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.mm-textarea {
  resize: vertical;
  min-height: 120px;
}

.mm-checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.mm-checkbox input {
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--primary);
}

.mm-checkbox label {
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dark);
}

/* ===== FOOTER ===== */
.ws-footer {
  /* background: #1e3a5f; */
  color: white;
  padding: 60px 24px 24px;
  margin-top: 80px;
}

.ws-footer-content {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
  margin-bottom: 40px;
}

.ws-footer-section h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.ws-footer-section ul {
  list-style: none;
}

.ws-footer-section ul li {
  margin-bottom: 12px;
}

.ws-footer-section ul a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.ws-footer-section ul a:hover {
  color: var(--primary);
}

.ws-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
}

/* ===== ALERTS & MESSAGES ===== */
.mm-alert {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  border: 1px solid;
}

.mm-alert-success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #d1fae5;
}

.mm-alert-error {
  background: #fef2f2;
  color: #991b1b;
  border-color: #fee2e2;
}

.mm-alert-info {
  background: #ecf9ff;
  color: #0c4a6e;
  border-color: #cffafe;
}

.mm-alert-warning {
  background: #fffbeb;
  color: #92400e;
  border-color: #fef3c7;
}

/* ===== UTILITIES ===== */
.mm-text-center { text-align: center; }
.mm-text-muted { color: var(--text-muted); }
.mm-mt-1 { margin-top: 8px; }
.mm-mt-2 { margin-top: 16px; }
.mm-mt-3 { margin-top: 24px; }
.mm-mt-4 { margin-top: 32px; }
.mm-mb-1 { margin-bottom: 8px; }
.mm-mb-2 { margin-bottom: 16px; }
.mm-mb-3 { margin-bottom: 24px; }
.mm-mb-4 { margin-bottom: 32px; }
.mm-gap-1 { gap: 8px; }
.mm-gap-2 { gap: 16px; }
.mm-gap-3 { gap: 24px; }
.mm-gap-4 { gap: 32px; }

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.mm-animate-fade {
  animation: fadeInUp 0.6s ease-out;
}

.mm-animate-slide {
  animation: slideInLeft 0.6s ease-out;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .mm-section {
    padding: 60px 16px;
  }

  .mm-section-title {
    font-size: 28px;
  }

  .mm-grid {
    grid-template-columns: 1fr;
  }

  .mm-hero-text h1 {
    font-size: 28px;
  }

  .mm-hero-text p {
    font-size: 16px;
  }
}

/* ===== STATUS & COLORS ===== */
.mm-bg-success { background: var(--success); }
.mm-bg-danger { background: var(--danger); }
.mm-bg-warning { background: var(--warning); }
.mm-bg-info { background: var(--info); }
.mm-text-success { color: var(--success); }
.mm-text-danger { color: var(--danger); }
.mm-text-warning { color: var(--warning); }
.mm-text-info { color: var(--info); }
