/* =====================================================
   Modern Lifestyle Design - Global Styles
   ===================================================== */

:root {
  --primary-color: #4fc3f7;
  --primary-dark: #0288d1;
  --secondary-color: #26a69a;
  --light-bg: #f5f7fa;
  --card-bg: #ffffff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --border-color: #e8eaed;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =====================================================
   Global Resets & Typography
   ===================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--text-primary);
  background-color: var(--light-bg);
  line-height: 1.6;
  font-size: 14px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 1rem 0;
  color: var(--text-primary);
}

h1, .h1 { font-size: 2.5rem; }
h2, .h2 { font-size: 2rem; }
h3, .h3 { font-size: 1.5rem; }
h4, .h4 { font-size: 1.25rem; }
h5, .h5 { font-size: 1.1rem; }
h6, .h6 { font-size: 1rem; }

p {
  margin: 0 0 1rem 0;
  color: var(--text-secondary);
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--primary-dark);
  text-decoration: none;
}

/* =====================================================
   Cards & Containers
   ===================================================== */

.card, .modern-card {
  background: var(--card-bg);
  border: none;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  overflow: hidden;
}

.card:hover, .modern-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-body {
  padding: 1.5rem;
}

/* =====================================================
   Buttons
   ===================================================== */

.btn {
  border-radius: 50px;
  padding: 0.7rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
  border: none;
  cursor: pointer;
  display: inline-block;
  text-align: center;
  white-space: nowrap;
}

.btn-primary, .btn_border {
  background-color: var(--primary-color);
  color: white;
}

.btn-primary:hover, .btn_border:hover {
  background-color: var(--primary-dark);
  color: white;
  box-shadow: var(--shadow-md);
}

.btn-outline-primary {
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  background: transparent;
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: white;
}

.btn-secondary {
  background-color: var(--secondary-color);
  color: white;
}

.btn-secondary:hover {
  background-color: #1f8f83;
  color: white;
}

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

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

/* =====================================================
   Forms & Inputs
   ===================================================== */

.form-control, input[type="text"], input[type="email"], input[type="password"], 
input[type="number"], input[type="date"], textarea, select {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  color: var(--text-primary);
  background-color: white;
  transition: var(--transition);
}

.form-control:focus, input:focus, textarea:focus, select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(79, 195, 247, 0.1);
  outline: none;
}

label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-primary);
}

/* =====================================================
   Profile Cards & User Lists
   ===================================================== */

.user-card, .profile-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.user-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.user-card-image {
  width: 100%;
  height: 280px;
  object-fit: cover;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.user-card-body {
  padding: 1.5rem;
}

.user-card-name {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.user-card-info {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

.user-card-meta {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.875rem;
}

.user-card-meta span {
  color: var(--text-light);
}

.user-card-actions {
  display: flex;
  gap: 0.75rem;
}

.user-card-actions .btn {
  flex: 1;
  padding: 0.6rem 0;
  font-size: 0.875rem;
}

/* =====================================================
   List Views
   ===================================================== */

.users-list, .items-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 1.5rem 0;
}

@media (max-width: 768px) {
  .users-list, .items-list {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
  }
}

@media (max-width: 480px) {
  .users-list, .items-list {
    grid-template-columns: 1fr;
  }
}

.list-item {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.list-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.list-item-header {
  height: 200px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  position: relative;
  overflow: hidden;
}

.list-item-body {
  padding: 1.25rem;
}

/* =====================================================
   Navigation & Headers
   ===================================================== */

.navbar, header {
  background: white;
  box-shadow: var(--shadow-sm);
  padding: 1rem 0;
}

.navbar-brand {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.nav-link {
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  transition: var(--transition);
  border-radius: var(--radius-md);
}

.nav-link:hover, .nav-link.active {
  color: var(--primary-color);
  background: rgba(79, 195, 247, 0.1);
}

/* =====================================================
   Status Badges & Tags
   ===================================================== */

.badge, .tag {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--light-bg);
  color: var(--text-secondary);
}

.badge-primary, .tag-primary {
  background: rgba(79, 195, 247, 0.15);
  color: var(--primary-color);
}

.badge-success, .tag-success {
  background: rgba(76, 175, 80, 0.15);
  color: #4caf50;
}

.badge-warning, .tag-warning {
  background: rgba(255, 193, 7, 0.15);
  color: #ffc107;
}

.badge-danger, .tag-danger {
  background: rgba(244, 67, 54, 0.15);
  color: #f44336;
}

/* =====================================================
   Status & Online Indicators
   ===================================================== */

.status-online, .online-indicator {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #4caf50;
  margin-right: 0.5rem;
  animation: pulse 2s infinite;
}

.status-offline {
  background-color: var(--text-light);
  animation: none;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.7);
  }
  70% {
    box-shadow: 0 0 0 6px rgba(76, 175, 80, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(76, 175, 80, 0);
  }
}

/* =====================================================
   Pagination
   ===================================================== */

.pagination {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  margin: 2rem 0;
}

.page-link {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  cursor: pointer;
  transition: var(--transition);
}

.page-link:hover, .page-link.active {
  background-color: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

/* =====================================================
   Spacing Utilities
   ===================================================== */

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

/* =====================================================
   Responsive Utilities
   ===================================================== */

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }

.align-items-center { align-items: center; }
.justify-content-center { justify-content: center; }
.justify-content-between { justify-content: space-between; }

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-secondary { color: var(--text-secondary); }
.text-light { color: var(--text-light); }

.bg-light { background-color: var(--light-bg); }
.bg-white { background-color: white; }

/* =====================================================
   Animations
   ===================================================== */

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

.fade-in {
  animation: fadeIn 0.3s ease-in-out;
}

/* =====================================================
   Responsive Design
   ===================================================== */

@media (max-width: 768px) {
  h1, .h1 { font-size: 2rem; }
  h2, .h2 { font-size: 1.5rem; }
  h3, .h3 { font-size: 1.25rem; }
  
  .btn {
    padding: 0.6rem 1.25rem;
    font-size: 0.9rem;
  }
  
  .card-body {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  h1, .h1 { font-size: 1.5rem; }
  h2, .h2 { font-size: 1.25rem; }
  h3, .h3 { font-size: 1.1rem; }
  
  body {
    font-size: 13px;
  }
}
