/* WazoSMS — Modern styling overrides on top of Tailwind */

/* Base styles */
input, select, textarea, button {
  font: inherit;
}

body {
  background: linear-gradient(135deg, #f3f4f6 0%, #f9fafb 100%);
}

/* Form inputs */
input[type="email"],
input[type="password"],
input[type="text"],
input[type="tel"],
input[type="datetime-local"],
select,
textarea {
  transition: all 0.3s ease;
  border: 1.5px solid #e5e7eb;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus,
input[type="tel"]:focus,
input[type="datetime-local"]:focus,
select:focus,
textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
  outline: none;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

/* Buttons */
button, input[type="submit"], input[type="button"] {
  transition: all 0.2s ease;
  font-weight: 500;
  letter-spacing: 0.3px;
}

.btn-primary {
  background: linear-gradient(135deg, #14b8a6 0%, #0d9488 100%);
  color: white;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(13, 148, 136, 0.25);
}

.btn-secondary {
  background-color: #f3f4f6;
  color: #374151;
}

.btn-secondary:hover {
  background-color: #e5e7eb;
}

/* Cards */
.card {
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
  border: 1px solid rgba(229, 231, 235, 0.8);
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.3px;
  font-weight: 600;
}

.text-heading {
  color: #1f2937;
  font-weight: 700;
}

.text-subheading {
  color: #4b5563;
  font-weight: 500;
}

.text-muted {
  color: #6b7280;
}

/* Alert styles */
.alert {
  border-radius: 9px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  border-left: 4px solid;
}

.alert-error {
  background-color: #fee2e2;
  border-color: #dc2626;
  color: #991b1b;
}

.alert-success {
  background-color: #dcfce7;
  border-color: #16a34a;
  color: #15803d;
}

.alert-info {
  background-color: #dbeafe;
  border-color: #2563eb;
  color: #1e40af;
}

/* Table wrapping */
.table-wrap {
  overflow-x: auto;
  border-radius: 9px;
  border: 1px solid #e5e7eb;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th {
  background-color: #f9fafb;
  font-weight: 600;
  color: #1f2937;
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

td {
  padding: 12px;
  border-bottom: 1px solid #e5e7eb;
  color: #4b5563;
  font-size: 14px;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover {
  background-color: #f9fafb;
}

/* Badge styles */
.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.badge-success {
  background-color: #d1fae5;
  color: #065f46;
}

.badge-error {
  background-color: #fee2e2;
  color: #991b1b;
}

.badge-warning {
  background-color: #fef3c7;
  color: #92400e;
}

.badge-info {
  background-color: #dbeafe;
  color: #1e40af;
}

/* Navigation */
nav a {
  transition: all 0.2s ease;
  position: relative;
}

nav a:not([href*="logout"]):hover::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: rgba(255, 255, 255, 0.5);
}

/* Utility classes */
.shadow-sm {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.shadow-md {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.shadow-lg {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
}
