/* Main styles for Bookmark Buddies - Foundation for Osceola Education Theme */

:root {
  --primary-color: #42a4da;  /* Exact light blue from Osceola foundation */
  --secondary-color: #3090c0;  /* Slightly darker version of primary */
  --accent-color: #f58025;  /* Orange */
  --light-color: #ffffff;  /* Pure white */
  --light-blue: #e8f1f8;  /* Very light blue */
  --dark-color: #333333;  /* Dark gray */
  --danger-color: #dc3545;
  --success-color: #28a745;
  --warning-color: #ffc107;
  --info-color: #17a2b8;
}

body {
  font-family: 'Open Sans', 'Roboto', sans-serif;
  line-height: 1.6;
  background-color: var(--light-color);
  color: var(--dark-color);
}

.navbar {
  background-color: var(--primary-color);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  padding: 0.7rem 1rem;
}

.navbar-brand {
  font-weight: bold;
  color: white !important;
  font-size: 1.4rem;
}

.navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.95) !important;
  transition: all 0.3s ease;
  font-weight: 500;
  padding: 0.5rem 1rem;
  margin: 0 0.15rem;
}

.navbar-nav .nav-link:hover {
  color: #fff !important;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: white;
  padding: 5rem 0;
  text-align: center;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.hero h1 {
  font-size: 2.8rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.card {
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
  border: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  margin-bottom: 1.5rem;
  overflow: hidden;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
}

.card-header {
  font-weight: 600;
  border-bottom: none;
}

.card-header.bg-primary {
  background-color: var(--primary-color) !important;
}

.bookmark-card {
  border-top: 4px solid var(--primary-color);
}

.collection-card {
  border-top: 4px solid var(--accent-color);
}

.bookmark-url {
  color: var(--secondary-color);
  word-break: break-all;
}

.tag-badge {
  background-color: var(--accent-color);
  color: white;
  margin-right: 0.3rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
  padding: 0.35em 0.65em;
  border-radius: 50px;
}

.form-control {
  border-radius: 6px;
  padding: 0.6rem 0.8rem;
  border: 1px solid #ddd;
}

.form-control:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 0.2rem rgba(66, 164, 218, 0.25);
}

.btn {
  border-radius: 6px;
  padding: 0.5rem 1.25rem;
  font-weight: 500;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  transition: all 0.3s ease;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  transform: translateY(-2px);
}

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

.btn-secondary:hover {
  background-color: #e57117;
  border-color: #e57117;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

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

.footer {
  background-color: var(--primary-color);
  color: white;
  padding: 3rem 0 2rem;
  margin-top: 4rem;
  position: relative;
}

.footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 1px;
  background-color: rgba(255, 255, 255, 0.2);
}

.dashboard-stats {
  margin-bottom: 3rem;
}

.stat-card {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 8px;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  border-top: 4px solid var(--primary-color);
}

.stat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-card i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--accent-color);
  background: var(--light-blue);
  height: 80px;
  width: 80px;
  line-height: 80px;
  border-radius: 50%;
  display: inline-block;
}

.stat-card .count {
  font-size: 2.2rem;
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 0.5rem;
}

.stat-card .title {
  color: var(--dark-color);
  font-weight: 500;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 1px;
}

.actions-menu {
  margin-bottom: 2rem;
  background: var(--light-blue);
  padding: 1.5rem;
  border-radius: 8px;
}

.section-title {
  position: relative;
  padding-bottom: 10px;
  margin-bottom: 25px;
  font-weight: 700;
  color: var(--primary-color);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  width: 60px;
  background: var(--accent-color);
  border-radius: 2px;
}

/* Auth forms */
.auth-form {
  max-width: 450px;
  margin: 2.5rem auto;
  padding: 2.5rem;
  background: white;
  border-radius: 8px;
  box-shadow: 0 5px 30px rgba(0, 0, 0, 0.08);
  border-top: 5px solid var(--primary-color);
}

.auth-form h2 {
  text-align: center;
  margin-bottom: 1.8rem;
  color: var(--primary-color);
  font-weight: 700;
}

.auth-links {
  text-align: center;
  margin-top: 1.5rem;
}

.auth-links a {
  color: var(--secondary-color);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.auth-links a:hover {
  color: var(--accent-color);
  text-decoration: underline;
}

/* Flash messages */
.alert {
  margin-bottom: 1.2rem;
  border: none;
  border-radius: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  padding: 0.8rem 1.2rem;
}

.alert-success {
  background-color: #dff7e9;
  color: #0c6e32;
}

.alert-info {
  background-color: #e0f4ff;
  color: #0a5785;
}

.alert-warning {
  background-color: #fff8e0;
  color: #875a00;
}

.alert-danger {
  background-color: #ffe0e0;
  color: #a70000;
}

/* Tables */
.table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-striped > tbody > tr:nth-of-type(odd) {
  background-color: var(--light-blue);
}

.table th {
  font-weight: 600;
  background-color: var(--primary-color);
  color: white;
  padding: 12px 15px;
  white-space: nowrap;
}

.table td {
  padding: 12px 15px;
  vertical-align: middle;
}

.pagination .page-link {
  color: var(--primary-color);
  border-color: #dee2e6;
  padding: 0.5rem 0.8rem;
}

.pagination .page-item.active .page-link {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.badge.bg-primary {
  background-color: var(--primary-color) !important;
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .card, .stat-card {
    margin-bottom: 1rem;
  }
  
  .footer {
    text-align: center;
  }
  
  .social-links {
    margin-top: 1rem;
    margin-bottom: 1rem;
  }
}