/* Modern styles for YouTube Tools Pro */

:root {
  --primary: #ff0000;
  --primary-dark: #cc0000;
  --secondary: #282828;
  --light-gray: #f8f9fa;
  --dark-gray: #343a40;
  --success: #28a745;
  --info: #17a2b8;
  --warning: #ffc107;
  --danger: #dc3545;
  --white: #ffffff;
  --black: #000000;
  --border-radius: 10px;
  --box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  --transition: all 0.3s ease;
}

/* General Styles */
body {
  font-family: "Poppins", sans-serif;
  background-color: var(--light-gray);
  color: var(--dark-gray);
  line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
}

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

.btn {
  border-radius: 50px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  transition: var(--transition);
}

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

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

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

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

.section-padding {
  padding: 80px 0;
}

.section-title {
  margin-bottom: 50px;
  text-align: center;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-title h2:after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background-color: var(--primary);
}

.section-title p {
  font-size: 1.1rem;
  color: #6c757d;
}

/* Header Styles */
.navbar {
  padding: 15px 0;
  transition: var(--transition);
}

.navbar-brand {
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--white);
}

.navbar-brand i {
  color: var(--primary);
}

.navbar-dark .navbar-nav .nav-link {
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  padding: 10px 15px;
  border-radius: 5px;
  transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar-dark .navbar-nav .nav-link.active {
  color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.navbar-dark .navbar-toggler {
  border: none;
}

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

.hero-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ff0000" fill-opacity="0.1" d="M0,224L48,213.3C96,203,192,181,288,181.3C384,181,480,203,576,224C672,245,768,267,864,261.3C960,256,1056,224,1152,197.3C1248,171,1344,149,1392,138.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
  background-size: cover;
  background-position: bottom;
  opacity: 0.5;
}

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

.hero-section h1 {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 20px;
}

.hero-section p.lead {
  font-size: 1.5rem;
  margin-bottom: 30px;
  font-weight: 400;
}

.hero-section .btn {
  padding: 12px 30px;
  font-size: 1.1rem;
  margin-right: 15px;
  margin-bottom: 15px;
}

.hero-image {
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0px);
  }
}

/* Features Section */
.features-section {
  background-color: var(--white);
  padding: 80px 0;
}

.feature-item {
  text-align: center;
  padding: 30px 20px;
  border-radius: var(--border-radius);
  background-color: var(--white);
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.feature-item:hover {
  transform: translateY(-10px);
}

.feature-icon {
  width: 80px;
  height: 80px;
  line-height: 80px;
  border-radius: 50%;
  background-color: rgba(255, 0, 0, 0.1);
  color: var(--primary);
  font-size: 2rem;
  margin: 0 auto 25px;
  transition: var(--transition);
}

.feature-item:hover .feature-icon {
  background-color: var(--primary);
  color: var(--white);
}

.feature-item h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

/* Tools Section */
.tools-section {
  background-color: var(--light-gray);
  padding: 80px 0;
}

.tool-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

.tool-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.tool-card .card-img-top {
  height: 200px;
  object-fit: cover;
  transition: var(--transition);
}

.tool-card:hover .card-img-top {
  transform: scale(1.05);
}

.tool-card .card-body {
  padding: 25px;
}

.tool-card .card-title {
  font-weight: 700;
  font-size: 1.3rem;
  margin-bottom: 15px;
}

.tool-card .card-text {
  color: #6c757d;
  margin-bottom: 20px;
}

.tool-card .btn {
  width: 100%;
}

/* Testimonials Section */
.testimonials-section {
  background-color: var(--white);
  padding: 80px 0;
}

.testimonial-card {
  border: none;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--box-shadow);
  transition: var(--transition);
  height: 100%;
}

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

.testimonial-card .card-body {
  padding: 30px;
}

.testimonial-card .stars {
  color: var(--warning);
  margin-bottom: 15px;
}

.testimonial-card .card-text {
  font-style: italic;
  margin-bottom: 20px;
}

.testimonial-user {
  display: flex;
  align-items: center;
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  margin-right: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
}

.testimonial-info h5 {
  margin-bottom: 0;
  font-weight: 600;
}

.testimonial-info small {
  color: #6c757d;
}

/* Tool Form Styles */
.tool-container {
  max-width: 900px;
  margin: 0 auto;
}

.tool-header {
  text-align: center;
  margin-bottom: 40px;
}

.tool-header h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
  color: var(--secondary);
}

.tool-header p {
  font-size: 1.1rem;
  color: #6c757d;
  max-width: 700px;
  margin: 0 auto;
}

.tool-form {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
  margin-bottom: 30px;
}

.tool-form h2 {
  margin-bottom: 25px;
  color: var(--secondary);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
}

.tool-form h2 i {
  color: var(--primary);
  margin-right: 10px;
}

.tool-form .form-label {
  font-weight: 600;
  margin-bottom: 10px;
}

.tool-form .form-control {
  padding: 12px 15px;
  border-radius: 8px;
  border: 1px solid #ced4da;
}

.tool-form .btn {
  padding: 12px 30px;
}

.tool-result {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: 40px;
  box-shadow: var(--box-shadow);
  margin-top: 30px;
}

.tool-result h3 {
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: 1.6rem;
}

.tags-container {
  margin: 20px 0;
}

.tags-container .badge {
  padding: 8px 15px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  font-weight: 500;
  border-radius: 50px;
}

.how-to-use {
  background-color: #f8f9fa;
  border-radius: var(--border-radius);
  padding: 30px;
  margin-top: 40px;
}

.how-to-use h3 {
  margin-bottom: 20px;
  color: var(--secondary);
  font-size: 1.6rem;
  display: flex;
  align-items: center;
}

.how-to-use h3 i {
  color: var(--primary);
  margin-right: 10px;
}

.how-to-use ol {
  padding-left: 20px;
}

.how-to-use ol li {
  margin-bottom: 15px;
}

.how-to-use .tips {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
}

.how-to-use .tips h4 {
  margin-bottom: 15px;
  font-size: 1.3rem;
}

/* Admin Styles */
.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--black) 100%);
}

.login-card {
  width: 100%;
  max-width: 450px;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.login-header {
  background-color: var(--primary);
  color: var(--white);
  padding: 30px;
  text-align: center;
}

.login-header h2 {
  margin-bottom: 10px;
  font-size: 2rem;
}

.login-header p {
  opacity: 0.8;
}

.login-body {
  background-color: var(--white);
  padding: 40px;
}

.login-form .form-label {
  font-weight: 600;
}

.login-form .form-control {
  padding: 12px 15px;
  border-radius: 8px;
}

.login-form .btn {
  padding: 12px 0;
  font-size: 1.1rem;
  margin-top: 10px;
}

.admin-wrapper {
  display: flex;
  min-height: 100vh;
}

.admin-sidebar {
  width: 280px;
  background-color: var(--secondary);
  color: var(--white);
  position: fixed;
  height: 100vh;
  overflow-y: auto;
  transition: var(--transition);
  z-index: 1000;
}

.sidebar-header {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h3 {
  color: var(--white);
  margin-bottom: 0;
  font-size: 1.5rem;
}

.sidebar-menu {
  padding: 20px 0;
}

.sidebar-menu .nav-link {
  color: rgba(255, 255, 255, 0.8);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  transition: var(--transition);
}

.sidebar-menu .nav-link i {
  margin-right: 10px;
  font-size: 1.2rem;
}

.sidebar-menu .nav-link:hover,
.sidebar-menu .nav-link.active {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.admin-content {
  flex: 1;
  margin-left: 280px;
  padding: 20px;
  background-color: var(--light-gray);
  min-height: 100vh;
}

.admin-header {
  background-color: var(--white);
  padding: 15px 30px;
  border-radius: var(--border-radius);
  margin-bottom: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow);
}

.admin-header h1 {
  margin-bottom: 0;
  font-size: 1.8rem;
}

.admin-card {
  background-color: var(--white);
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.admin-card-header {
  padding: 20px;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-card-header h2 {
  margin-bottom: 0;
  font-size: 1.5rem;
}

.admin-card-body {
  padding: 20px;
}

.stat-card {
  border-radius: var(--border-radius);
  padding: 25px;
  display: flex;
  align-items: center;
  box-shadow: var(--box-shadow);
  background-color: var(--white);
  transition: var(--transition);
  height: 100%;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-right: 20px;
  color: var(--white);
}

.stat-info h3 {
  font-size: 1.8rem;
  margin-bottom: 5px;
}

.stat-info p {
  margin-bottom: 0;
  color: #6c757d;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.bg-primary-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
}

.bg-success-gradient {
  background: linear-gradient(135deg, var(--success) 0%, #218838 100%);
}

.bg-info-gradient {
  background: linear-gradient(135deg, var(--info) 0%, #138496 100%);
}

.bg-warning-gradient {
  background: linear-gradient(135deg, var(--warning) 0%, #d39e00 100%);
}

/* Footer Styles */
footer {
  background-color: var(--secondary);
  color: var(--white);
  padding: 70px 0 0;
}

.footer-widget {
  margin-bottom: 40px;
}

.footer-widget h5 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 25px;
  position: relative;
  padding-bottom: 10px;
}

.footer-widget h5:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 50px;
  height: 2px;
  background-color: var(--primary);
}

.footer-widget p {
  color: rgba(255, 255, 255, 0.7);
}

.footer-links {
  list-style: none;
  padding-left: 0;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--white);
  margin-right: 10px;
  transition: var(--transition);
}

.social-icons a:hover {
  background-color: var(--primary);
  transform: translateY(-3px);
}

.footer-bottom {
  background-color: rgba(0, 0, 0, 0.2);
  padding: 20px 0;
  margin-top: 30px;
}

.footer-bottom p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

/* Responsive Styles */
@media (max-width: 991.98px) {
  .hero-section {
    padding: 80px 0 60px;
  }

  .hero-section h1 {
    font-size: 2.5rem;
  }

  .hero-image {
    margin-top: 40px;
  }

  .admin-sidebar {
    width: 240px;
  }

  .admin-content {
    margin-left: 240px;
  }
}

@media (max-width: 767.98px) {
  .section-padding {
    padding: 60px 0;
  }

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

  .hero-section h1 {
    font-size: 2rem;
  }

  .hero-section p.lead {
    font-size: 1.1rem;
  }

  .admin-sidebar {
    width: 0;
    transform: translateX(-100%);
  }

  .admin-sidebar.show {
    width: 240px;
    transform: translateX(0);
  }

  .admin-content {
    margin-left: 0;
  }

  .tool-form,
  .tool-result {
    padding: 25px;
  }
}

@media (max-width: 575.98px) {
  .hero-section {
    padding: 60px 0 40px;
  }

  .hero-section h1 {
    font-size: 1.8rem;
  }

  .section-title h2 {
    font-size: 1.8rem;
  }

  .tool-form,
  .tool-result {
    padding: 20px;
  }
}
