
/* Button Styles */
.btn {
  display: inline-block;
  font-weight: 500;
  font-family: 'Lato', sans-serif;
  color: var(--text-dark);
  text-align: center;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 2px solid transparent;
  padding: 0.7rem 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
  border-radius: 50px;
  transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, 
              border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out,
              transform 0.2s ease;
  position: relative;
  overflow: hidden;
  z-index: 1;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:focus {
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(10, 45, 109, 0.25);
}

/* Button variants */
.btn-primary {
  color: #ffffff;
  background: linear-gradient(135deg, #0d4f8b, #1976d2);
  border-color: #0d4f8b;
}

.btn-primary:hover {
  background: transparent;
  color: #0d4f8b;
}

.btn-secondary {
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a5f, #2d5a87);
  border-color: #1e3a5f;
}

.btn-secondary:hover {
  background: transparent;
  color: #1e3a5f;
}

.btn-success {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
  border-color: #10b981;
}

.btn-success:hover {
  background: transparent;
  color: #10b981;
}

.btn-danger {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  border-color: #ef4444;
}

.btn-danger:hover {
  background: transparent;
  color: #ef4444;
}

.btn-warning {
  color: #1a1a2e;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  border-color: #f59e0b;
}

.btn-warning:hover {
  background: transparent;
  color: #f59e0b;
}

.btn-info {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border-color: #3b82f6;
}

.btn-info:hover {
  background: transparent;
  color: #3b82f6;
}

.btn-light {
  color: var(--text-dark);
  background-color: var(--light-bg);
  border-color: var(--light-bg);
}

.btn-light:hover {
  background-color: transparent;
  color: var(--text-dark);
}

.btn-dark {
  color: var(--white);
  background-color: var(--text-dark);
  border-color: var(--text-dark);
}

.btn-dark:hover {
  background-color: transparent;
  color: var(--text-dark);
}

/* Outline buttons */
.btn-outline-primary {
  color: #0d4f8b;
  border-color: #0d4f8b;
}

.btn-outline-primary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #0d4f8b, #1976d2);
}

.btn-outline-secondary {
  color: #1e3a5f;
  border-color: #1e3a5f;
}

.btn-outline-secondary:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #1e3a5f, #2d5a87);
}

.btn-outline-success {
  color: #10b981;
  border-color: #10b981;
}

.btn-outline-success:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #10b981, #059669);
}

.btn-outline-danger {
  color: #ef4444;
  border-color: #ef4444;
}

.btn-outline-danger:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #ef4444, #dc2626);
}

.btn-outline-warning {
  color: #f59e0b;
  border-color: #f59e0b;
}

.btn-outline-warning:hover {
  color: #1a1a2e;
  background: linear-gradient(135deg, #f59e0b, #d97706);
}

.btn-outline-info {
  color: #3b82f6;
  border-color: #3b82f6;
}

.btn-outline-info:hover {
  color: #ffffff;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
}

/* Button sizes */
.btn-lg {
  padding: 0.8rem 1.6rem;
  font-size: 1.25rem;
  border-radius: calc(var(--border-radius) + 2px);
}

.btn-sm {
  padding: 0.4rem 0.8rem;
  font-size: 0.875rem;
  border-radius: calc(var(--border-radius) - 2px);
}

.btn-xs {
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
  border-radius: calc(var(--border-radius) - 4px);
}

/* Button states */
.btn:disabled,
.btn.disabled {
  opacity: 0.65;
  pointer-events: none;
}

/* Button with icon */
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-icon-only {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon-only.btn-sm {
  width: 32px;
  height: 32px;
}

.btn-icon-only.btn-lg {
  width: 48px;
  height: 48px;
}

/* Button group */
.btn-group {
  display: inline-flex;
  vertical-align: middle;
}

.btn-group > .btn {
  position: relative;
  flex: 1 1 auto;
}

.btn-group > .btn:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-left: -2px;
}

.btn-group > .btn:not(:last-child) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

/* Special effect buttons */
.btn-pulse {
  position: relative;
}

.btn-pulse::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background-color: inherit;
  opacity: 0.6;
  z-index: -1;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  50% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.btn-ripple {
  position: relative;
  overflow: hidden;
}

.btn-ripple::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.4);
  width: 100px;
  height: 100px;
  margin-top: -50px;
  margin-left: -50px;
  top: 50%;
  left: 50%;
  transform: scale(0);
  opacity: 1;
  pointer-events: none;
  transition: all 0.8s;
}

.btn-ripple:active::after {
  transform: scale(4);
  opacity: 0;
  transition: 0s;
}

/* Floating action button */
.btn-floating {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 100;
}

.btn-floating:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
  }
  
  .btn-floating {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
    bottom: 20px;
    right: 20px;
  }
}
