/* 
   PTE Skills - Custom Stylesheet
   Author: PTE Skills Team
   Version: 1.0
*/

/* Base Styles */
:root {
  --primary-color: #3d5af1;
  --secondary-color: #22b573;
  --accent-color: #ff7f50;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gray-color: #6c757d;
  --white-color: #ffffff;
  --shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  --shadow-lg: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

body {
  font-family: 'Poppins', sans-serif;
  color: var(--dark-color);
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 76px;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.3;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #2a3eb1;
}

/* Utility Classes */
.section-title {
  font-size: 2.25rem;
  position: relative;
  margin-bottom: 1.5rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 0 auto 2rem;
}

.section-description {
  font-size: 1.125rem;
  color: var(--gray-color);
  margin-bottom: 0;
}

/* Button Styles */
.btn {
  padding: 0.625rem 1.5rem;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-primary:hover {
  background-color: #2a3eb1;
  border-color: #2a3eb1;
}

.btn-outline-primary {
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.btn-outline-primary:hover {
  background-color: var(--primary-color);
  color: var(--white-color);
}

.btn-lg {
  padding: 0.875rem 2rem;
  font-size: 1.125rem;
}

/* Navbar Styles */
.navbar {
  padding: 0.75rem 0;
  transition: all 0.3s ease;
}

.navbar-brand {
  display: flex;
  align-items: center;
  font-weight: 700;
}

.nav-link {
  font-weight: 500;
  padding: 0.75rem 1rem !important;
  margin: 0 0.25rem;
  position: relative;
}

.nav-link.active {
  color: var(--primary-color) !important;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 1rem;
  right: 1rem;
  height: 3px;
  background-color: var(--primary-color);
}

.nav-link.btn {
  margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
  background-color: var(--white-color);
  padding: 6rem 0 3rem;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.hero-section h1 {
  font-size: 2.75rem;
  margin-bottom: 1.5rem;
  color: var(--dark-color);
}

.hero-section .lead {
  font-size: 1.25rem;
  color: var(--gray-color);
  margin-bottom: 2rem;
}

/* Feature Card Styles */
.feature-card {
  background-color: var(--white-color);
  border-radius: 10px;
  padding: 2rem;
  text-align: center;
  box-shadow: var(--shadow);
  height: 100%;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background-color: rgba(61, 90, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.feature-icon i {
  font-size: 1.75rem;
  color: var(--primary-color);
}

.feature-card h3 {
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.feature-card p {
  color: var(--gray-color);
  margin-bottom: 0;
}

/* Structure Table Section */
.card-header {
  font-weight: 700;
}

.table th {
  font-weight: 600;
}

.table-info {
  background-color: rgba(61, 90, 241, 0.1) !important;
}

/* Study Plan Styles */
.day-plan {
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #e9ecef;
}

.day-plan:last-child {
  padding-bottom: 0;
  margin-bottom: 0;
  border-bottom: none;
}

.day-plan h4 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.25rem;
}

.day-plan ul {
  padding-left: 1.25rem;
  margin-bottom: 0;
}

.day-plan li {
  margin-bottom: 0.5rem;
}

.day-plan li:last-child {
  margin-bottom: 0;
}

/* Practice Header */
.practice-header {
  background: linear-gradient(to right, #3d5af1, #22b573);
  color: var(--white-color);
  padding-top: 6rem;
  padding-bottom: 3rem;
}

.practice-header h1 {
  margin-bottom: 1.5rem;
}

/* Quiz Section */
.nav-pills .nav-link {
  color: var(--dark-color);
  border-radius: 30px;
  padding: 0.5rem 1.25rem;
  margin: 0 0.25rem 0.5rem;
}

.nav-pills .nav-link.active {
  background-color: var(--primary-color);
  color: var(--white-color) !important;
}

.accordion-button:not(.collapsed) {
  background-color: rgba(61, 90, 241, 0.05);
  color: var(--primary-color);
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

.question-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: var(--primary-color);
  color: var(--white-color);
  font-size: 0.875rem;
}

.answer-box {
  border-left: 4px solid var(--secondary-color);
}

/* Practice Icons */
.practice-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background-color: rgba(61, 90, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.practice-icon i {
  font-size: 2rem;
}

/* Footer Social Icons */
.social-icons a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.social-icons a:hover {
  background-color: var(--primary-color);
  transform: translateY(-3px);
}

.social-icons i {
  font-size: 1rem;
}

/* Responsive Styles */
@media (max-width: 1199.98px) {
  .hero-section h1 {
    font-size: 2.5rem;
  }
}

@media (max-width: 991.98px) {
  .hero-section {
    padding: 5rem 0 3rem;
  }
  
  .hero-section h1 {
    font-size: 2.25rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
}

@media (max-width: 767.98px) {
  .hero-section {
    padding: 4rem 0 2rem;
    text-align: center;
  }
  
  .hero-section h1 {
    font-size: 2rem;
  }
  
  .hero-section .btn-group {
    justify-content: center;
  }
  
  .section-title {
    font-size: 1.75rem;
  }
  
  .feature-card {
    padding: 1.5rem;
  }
}

@media (max-width: 575.98px) {
  .hero-section h1 {
    font-size: 1.75rem;
  }
  
  .section-title {
    font-size: 1.5rem;
  }
  
  .nav-pills .nav-link {
    padding: 0.375rem 1rem;
    font-size: 0.875rem;
  }
  
  .day-plan h4 {
    font-size: 1.125rem;
  }
}
/* ASQ Practice Page Specific Styles */

/* Question styling */
.question-viewed .accordion-button {
    background-color: #f8f9fa;
    color: #6c757d;
}

.question-viewed .accordion-button::after {
    color: #28a745;
}

.question-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: var(--white-color);
    font-size: 0.875rem;
}

.timer-display {
    min-width: 60px;
    text-align: center;
    font-weight: bold;
}

.timer-display.active {
    color: #dc3545;
}

.timer-display.warning {
    animation: pulse 1s infinite;
}

/* Rating stars */
.rating-stars {
    color: #ffc107;
    font-size: 1.5rem;
    cursor: pointer;
}

.rating-stars i {
    transition: all 0.2s ease;
}

.rating-stars i:hover {
    transform: scale(1.2);
}

.difficulty-rating .star {
    color: #dee2e6;
    cursor: pointer;
    transition: color 0.2s ease;
}

.difficulty-rating .star:hover,
.difficulty-rating .star.active {
    color: #ffc107;
}

/* Feedback result styling */
.feedback-result {
    font-weight: bold;
    min-height: 24px;
}

/* Icon circle for tips section */
.icon-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Practice card hover effects */
.practice-card {
    transition: all 0.3s ease;
}

.practice-card:hover {
    transform: translateY(-5px);
}

/* Back to top button animation */
#back-to-top {
    opacity: 0.7;
    transition: all 0.3s ease;
}

#back-to-top:hover {
    opacity: 1;
    transform: translateY(-3px);
}

/* Answer box styling */
.answer-box {
    border-left: 4px solid var(--primary-color);
}

/* Animation for timer warning */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

/* Progress bar styling */
.category-progress {
    font-size: 0.75rem;
    line-height: 10px;
    text-align: center;
    white-space: nowrap;
    font-weight: bold;
}

/* Toast notification styling */
.toast {
    z-index: 1050;
}

/* Mobile optimizations */
@media (max-width: 767.98px) {
    .practice-header {
        padding-top: 4rem;
        padding-bottom: 2rem;
    }
    
    .question-number {
        min-width: 24px;
        height: 24px;
        font-size: 0.75rem;
    }
    
    .accordion-button {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    /* Improve tap targets on mobile */
    .btn-sm {
        padding: 0.375rem 0.75rem;
    }
    
    /* Better spacing for mobile form elements */
    .rating-stars {
        font-size: 1.25rem;
    }
}