/* Banking Professional Theme - Blue Color Scheme */
:root {
  --primary-blue: #1e3a8a;
  --secondary-blue: #3b82f6;
  --light-blue: #dbeafe;
  --accent-blue: #1d4ed8;
  --dark-blue: #1e40af;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --bg-light: #f8fafc;
  --border-color: #e5e7eb;
  --success-green: #10b981;
  --warning-orange: #f59e0b;
  --error-red: #ef4444;
}

/* Global Styles */
body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: #ffffff;
}

/* Custom Bootstrap Overrides */
.bg-primary {
  background-color: var(--primary-blue) !important;
}

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

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

.text-primary {
  color: var(--secondary-blue) !important;
}

/* Header Styles */
.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
}

.navbar-nav .nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: var(--light-blue) !important;
}

.dropdown-menu {
  border: none;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

.dropdown-item {
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  transition: all 0.3s ease;
}

.dropdown-item:hover {
  background-color: var(--light-blue);
  color: var(--primary-blue);
}

/* Hero Section */
.hero-section {
  background: linear-gradient(
    135deg,
    var(--primary-blue) 0%,
    var(--secondary-blue) 100%
  );
  color: white;
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
}

.hero-subtitle {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  opacity: 0.9;
}

/* Feature Cards */
.feature-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-blue);
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(
    135deg,
    var(--secondary-blue),
    var(--accent-blue)
  );
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.feature-description {
  color: var(--text-muted);
  line-height: 1.6;
}

/* Tool Cards */
.tool-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-blue);
  text-decoration: none;
  color: inherit;
}

.tool-icon {
  width: 50px;
  height: 50px;
  background: var(--light-blue);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-blue);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.tool-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.tool-description {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Stats Section */
.stats-section {
  background: var(--bg-light);
  padding: 4rem 0;
}

.stat-item {
  text-align: center;
  padding: 1.5rem;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary-blue);
  display: block;
}

.stat-label {
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 0.5rem;
}

/* Form Styles */
.form-container {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  border: 1px solid #e9ecef;
}

/* Modern File Upload Styles */
.file-upload-area {
  border: 2px dashed #dee2e6;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: #f8f9fa;
  position: relative;
  cursor: pointer;
}

.file-upload-area:hover {
  border-color: #007bff;
  background: #f0f8ff;
}

.file-upload-area.dragover {
  border-color: #007bff;
  background: #e3f2fd;
  transform: scale(1.02);
}

.upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.upload-icon {
  font-size: 3rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.upload-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #495057;
  margin: 0;
}

.upload-subtitle {
  color: #6c757d;
  margin: 0;
  font-size: 0.9rem;
}

.file-preview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem;
  background: #e8f5e8;
  border: 1px solid #28a745;
  border-radius: 8px;
}

.file-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.file-name {
  font-weight: 600;
  color: #495057;
}

.file-size {
  color: #6c757d;
  font-size: 0.9rem;
  margin-left: 0.5rem;
}

.file-input {
  display: none;
}

/* Password Input Enhancement */
.input-group .input-group-text {
  background: #f8f9fa;
  border-color: #dee2e6;
}

#togglePassword {
  border-left: none;
}

#togglePassword:hover {
  background: #e9ecef;
}

/* Button Enhancements */
.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
  border-width: 2px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-outline-primary:hover {
  transform: translateY(-1px);
}

/* Loading States */
.btn.loading {
  position: relative;
  color: transparent;
}

.btn.loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-top-color: transparent;
  animation: spin 1s linear infinite;
}

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

/* Progress Bar */
.upload-progress {
  width: 100%;
  height: 4px;
  background: #e9ecef;
  border-radius: 2px;
  overflow: hidden;
  margin-top: 1rem;
}

.upload-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, #007bff, #28a745);
  width: 0%;
  transition: width 0.3s ease;
}

/* Responsive Design */
@media (max-width: 768px) {
  .file-upload-area {
    padding: 1.5rem 1rem;
  }

  .upload-title {
    font-size: 1.1rem;
  }

  .upload-icon {
    font-size: 2.5rem;
  }
}

.form-control {
  border: 2px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  border-color: var(--secondary-blue);
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}

.btn {
  border-radius: 8px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: 1.1rem;
}

/* Upload Area */
.upload-area {
  border: 2px dashed var(--border-color);
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  transition: all 0.3s ease;
  background: var(--bg-light);
}

.upload-area:hover {
  border-color: var(--secondary-blue);
  background: var(--light-blue);
}

.upload-area.dragover {
  border-color: var(--secondary-blue);
  background: var(--light-blue);
}

.upload-icon {
  font-size: 3rem;
  color: var(--secondary-blue);
  margin-bottom: 1rem;
}

/* Progress Bar */
.progress {
  height: 8px;
  border-radius: 4px;
  background-color: var(--border-color);
}

.progress-bar {
  background: linear-gradient(90deg, var(--secondary-blue), var(--accent-blue));
  border-radius: 4px;
}

/* Alert Styles */
.alert {
  border-radius: 8px;
  border: none;
  padding: 1rem 1.5rem;
}

.alert-success {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--success-green);
}

.alert-danger {
  background-color: rgba(239, 68, 68, 0.1);
  color: var(--error-red);
}

.alert-warning {
  background-color: rgba(245, 158, 11, 0.1);
  color: var(--warning-orange);
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* Section Spacing */
.section {
  padding: 5rem 0;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.section-subtitle {
  font-size: 1.1rem;
  text-align: center;
  color: var(--text-muted);
  margin-bottom: 3rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer Styles */
footer {
  background-color: #1f2937 !important;
}

footer .social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  transition: all 0.3s ease;
}

footer .social-links a:hover {
  background: var(--secondary-blue);
  transform: translateY(-2px);
}

/* Ad Spaces */
.ad-banner {
  border-radius: 8px;
  margin: 1rem 0;
}

.ad-sidebar {
  background: #f8f9fa;
  border: 1px dashed #dee2e6;
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
  color: #6c757d;
  margin-bottom: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .feature-card,
  .tool-card {
    margin-bottom: 2rem;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.spinner {
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

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

/* Utility Classes */
.text-banking {
  color: var(--secondary-blue);
}

.bg-banking {
  background-color: var(--secondary-blue);
}

.border-banking {
  border-color: var(--secondary-blue);
}

.shadow-banking {
  box-shadow: 0 4px 6px rgba(59, 130, 246, 0.1);
}

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--primary-blue);
  color: white;
  padding: 1rem 0;
  z-index: 1050;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.cookie-consent p {
  margin-bottom: 0;
  font-size: 0.9rem;
}

.cookie-consent .btn {
  font-size: 0.85rem;
  padding: 0.5rem 1rem;
}

.cookie-consent a {
  color: white;
  text-decoration: underline;
}

.cookie-consent a:hover {
  color: var(--light-blue);
}

/* Blog Styles */
.blog-card {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.blog-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-blue);
}

.blog-card-header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.blog-card-header i {
  font-size: 2.5rem;
  opacity: 0.7;
}

.blog-card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-dark);
  line-height: 1.4;
}

.blog-card-excerpt {
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.blog-card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.category-card {
  display: block;
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
  transition: all 0.3s ease;
  height: 100%;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-blue);
  text-decoration: none;
  color: inherit;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: var(--light-blue);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--secondary-blue);
  font-size: 1.5rem;
  margin: 0 auto 1rem;
}

.category-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.category-count {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

.featured-article {
  background: white;
  border-radius: 12px;
  padding: 3rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  border: 1px solid var(--border-color);
}

.newsletter-form .input-group {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.newsletter-form .form-control {
  border: none;
  padding: 1rem 1.5rem;
  font-size: 1rem;
}

.newsletter-form .btn {
  border: none;
  padding: 1rem 2rem;
  font-weight: 600;
}
