/*=============== GOOGLE FONTS ===============*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

/*=============== VARIABLES CSS ===============*/
:root {
  --header-height: 3.5rem;

  /*========== Colors ==========*/
  /*Color mode HSL(hue, saturation, lightness)*/
  /*
        Purple: hsl(250, 66%, 75%)
        Blue: hsl(207, 90%, 72%)
        Pink: hsl(356, 66%, 75%)
        Teal: hsl(174, 63%, 62%)
  */
  --first-hue: 250;
  --sat: 66%;
  --lig: 75%;
  --second-hue: 219;
  --first-color: hsl(var(--first-hue), var(--sat), var(--lig));
  --first-color-alt: hsl(var(--first-hue), var(--sat), 71%); /* -4% */
  --title-color: hsl(var(--second-hue), 15%, 95%);
  --text-color: hsl(var(--second-hue), 8%, 75%);
  --text-color-light: hsl(var(--second-hue), 4%, 55%);
  --body-color: hsl(var(--second-hue), 48%, 8%);
  --container-color: hsl(var(--second-hue), 32%, 12%);

  /*========== Font and typography ==========*/
  /*.5rem = 8px | 1rem = 16px ...*/
  --body-font: 'Poppins', sans-serif;
  --biggest-font-size: 1.75rem;
  --h1-font-size: 1.5rem;
  --h2-font-size: 1.25rem;
  --h3-font-size: 1rem;
  --normal-font-size: .938rem;
  --small-font-size: .813rem;
  --smaller-font-size: .75rem;
  --tiny-font-size: .625rem;

  /*========== Font weight ==========*/
  --font-medium: 500;
  --font-semibold: 600;

  /*========== z index ==========*/
  --z-tooltip: 10;
  --z-fixed: 100;
  --z-modal: 1000;
}

/* Responsive typography */
@media screen and (min-width: 968px) {
  :root {
    --biggest-font-size: 2.5rem;
    --h1-font-size: 2.25rem;
    --h2-font-size: 1.5rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: .875rem;
    --smaller-font-size: .813rem;
  }
}
header{
  padding-bottom: 0.5rem;
  padding-top: 0.5rem;

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

html {
  scroll-behavior: smooth;
}

body,
button,
input,
textarea {
  font-family: var(--body-font);
  font-size: var(--normal-font-size);
}

body {
  background-color: var(--body-color);
  color: var(--text-color);
  transition: .4s; /* for light mode animation */
  transition: 0.4s;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  /* background: linear-gradient(180deg, 
    hsla(var(--first-hue), var(--sat), var(--lig), 0.25) 0%,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.15) 25%,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.05) 50%,
    transparent 70%); */
  z-index: -1;
  pointer-events: none;
}
h1, h2, h3 {
  color: var(--title-color);
  font-weight: var(--font-semibold);
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}
/*=============== CHAT WIDGET ===============*/
.chat-widget {
  position: fixed;
  bottom: 10px;
  right: 20px;
  z-index: var(--z-modal);
}

/* Ensure chat widget doesn't go off-screen */
@media screen and (min-height: 700px) {
  .chat-widget {
    bottom: 10px;
    right: 20px;
  }
}

.chat-button {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: white;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.chat-button:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

@keyframes pulse {
  0% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: 0 4px 20px var(--first-color);
  }
  100% {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  }
}

.chat-window {
  position: fixed;
  bottom: 110px;
  right: 40px;
  max-width: 450px;
  min-height: 550px;
  background: var(--container-color);
  border-radius: 15px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--first-color);
}

.chat-header {
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: white;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: var(--font-semibold);
  flex-shrink: 0;
  min-height: 60px;
}

.chat-header-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.config-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.config-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.clear-button {
  background: none;
  border: none;
  color: white;
  font-size: 1.1rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.clear-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.close-chat {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-chat:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  background: var(--body-color);
  min-height: 0;
  max-height: calc(600px - 120px - 80px);
}

.message {
  margin-bottom: 1rem;
  display: flex;
}

.user-message {
  justify-content: flex-end;
}

.bot-message {
  justify-content: flex-start;
}

.message-content {
  max-width: 80%;
  padding: 0.75rem 1rem;
  border-radius: 15px;
  word-wrap: break-word;
}

.user-message .message-content {
  background: var(--first-color);
  color: white;
  border-bottom-right-radius: 5px;
}

.bot-message .message-content {
  background: var(--container-color);
  color: var(--text-color);
  border-bottom-left-radius: 5px;
  border: 1px solid var(--first-color);
}

.message-content p {
  margin: 0;
  line-height: 1.4;
}

/* Markdown styling for bot messages */
.bot-message .message-content h1,
.bot-message .message-content h2,
.bot-message .message-content h3,
.bot-message .message-content h4,
.bot-message .message-content h5,
.bot-message .message-content h6 {
  color: var(--first-color);
  margin: 0.5rem 0 0.25rem 0;
  font-size: 1rem;
  font-weight: var(--font-semibold);
}

.bot-message .message-content h1 { font-size: 1.1rem; }
.bot-message .message-content h2 { font-size: 1.05rem; }

.bot-message .message-content strong,
.bot-message .message-content b {
  color: var(--first-color-alt);
  font-weight: var(--font-semibold);
}

.bot-message .message-content em,
.bot-message .message-content i {
  font-style: italic;
  color: var(--first-color);
}

.bot-message .message-content code {
  background: var(--body-color);
  color: var(--first-color);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 0.9rem;
  border: 1px solid var(--first-color);
}

.bot-message .message-content pre {
  background: var(--body-color);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--first-color);
  overflow-x: auto;
  margin: 0.5rem 0;
}

.bot-message .message-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: var(--text-color);
}

.bot-message .message-content ul,
.bot-message .message-content ol {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.bot-message .message-content li {
  margin: 0.25rem 0;
  line-height: 1.4;
}

.bot-message .message-content blockquote {
  border-left: 3px solid var(--first-color);
  padding-left: 1rem;
  margin: 0.5rem 0;
  font-style: italic;
  color: var(--text-color-light);
}

.bot-message .message-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.5rem 0;
  font-size: 0.9rem;
}

.bot-message .message-content th,
.bot-message .message-content td {
  border: 1px solid var(--first-color);
  padding: 0.4rem 0.6rem;
  text-align: left;
}

.bot-message .message-content th {
  background: var(--first-color);
  color: white;
  font-weight: var(--font-semibold);
}

.bot-message .message-content a {
  color: var(--first-color);
  text-decoration: underline;
}

.bot-message .message-content a:hover {
  color: var(--first-color-alt);
}

/* Ensure proper spacing for markdown elements */
.bot-message .message-content > *:first-child {
  margin-top: 0;
}

.bot-message .message-content > *:last-child {
  margin-bottom: 0;
}

.chat-input-container {
  padding: 1rem;
  background: var(--container-color);
  display: flex;
  gap: 0.5rem;
  border-top: 1px solid var(--first-color);
  position: sticky;
  bottom: 0;
  flex-shrink: 0;
}

.chat-input-container input {
  flex: 1;
  padding: 0.75rem;
  border: 1px solid var(--first-color);
  border-radius: 25px;
  background: var(--body-color);
  color: var(--text-color);
  outline: none;
  font-size: var(--normal-font-size);
}

.chat-input-container input:focus {
  border-color: var(--first-color-alt);
  box-shadow: 0 0 10px rgba(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.send-button {
  width: 45px;
  height: 45px;
  border: none;
  border-radius: 50%;
  background: var(--first-color);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.send-button:hover {
  background: var(--first-color-alt);
  transform: scale(1.1);
}

.send-button:active {
  transform: scale(0.95);
}

/* Typing indicator */
.typing .message-content {
  padding: 1rem 1.5rem;
}

.typing-dots {
  display: flex;
  gap: 4px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--first-color);
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dots span:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dots span:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%, 80%, 100% {
    transform: scale(0);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive design for chat widget */
@media screen and (max-width: 768px) {
  .chat-window {
    width: calc(100vw - 40px);
    height: calc(100vh - 160px);
    bottom: 110px;
    right: 20px;
    left: 20px;
    max-height: 600px;
  }
  
  .chat-messages {
    max-height: calc(100vh - 280px);
  }
  
  .chat-button {
    width: 65px;
    height: 65px;
    font-size: 1.6rem;
  }
}

@media screen and (max-width: 480px) {
  .chat-window {
    width: calc(100vw - 20px);
    height: calc(100vh - 140px);
    bottom: 100px;
    right: 10px;
    left: 10px;
    max-height: 550px;
  }
  
  .chat-messages {
    max-height: calc(100vh - 260px);
    padding: 0.75rem;
  }
  
  .chat-button {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
    bottom: 20px;
    right: 20px;
  }
  
  .chat-input-container {
    padding: 0.75rem;
  }
}

/* Custom scrollbar for chat messages */
.chat-messages::-webkit-scrollbar {
  width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
  background: var(--body-color);
}

.chat-messages::-webkit-scrollbar-thumb {
  background: var(--first-color);
  border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
  background: var(--first-color-alt);
}

/*=============== CONFIGURATION MODAL ===============*/
.config-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: calc(var(--z-modal) + 10);
}

.config-modal-content {
  background: var(--container-color);
  border-radius: 15px;
  width: 90%;
  max-width: 450px;
  max-height: 90vh;
  overflow: hidden;
  border: 1px solid var(--first-color);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.config-header {
  background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
  color: white;
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.config-header h3 {
  margin: 0;
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
}

.close-config {
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 50%;
  transition: background 0.3s ease;
}

.close-config:hover {
  background: rgba(255, 255, 255, 0.2);
}

.config-body {
  padding: 2rem;
}

.config-group {
  margin-bottom: 1.5rem;
}

.config-group label {
  display: block;
  color: var(--title-color);
  font-weight: var(--font-medium);
  margin-bottom: 0.5rem;
  font-size: var(--normal-font-size);
}

.config-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--first-color);
  border-radius: 8px;
  background: var(--body-color);
  color: var(--text-color);
  font-size: var(--normal-font-size);
  outline: none;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.config-select:focus {
  border-color: var(--first-color-alt);
  box-shadow: 0 0 10px rgba(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.config-select option {
  background: var(--body-color);
  color: var(--text-color);
}

.config-actions {
  text-align: center;
  margin-top: 2rem;
}

.save-config-btn {
  background: var(--first-color);
  color: white;
  border: none;
  padding: 0.75rem 2rem;
  border-radius: 25px;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.3s ease;
}

.save-config-btn:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(var(--first-hue), var(--sat), var(--lig), 0.4);
}

.save-config-btn:active {
  transform: translateY(0);
}

/* Responsive design for configuration modal */
@media screen and (max-width: 480px) {
  .config-modal-content {
    width: 95%;
    margin: 1rem;
  }
  
  .config-header {
    padding: 1rem;
  }
  
  .config-body {
    padding: 1.5rem;
  }
  
  .config-header h3 {
    font-size: var(--normal-font-size);
  }
}

button {
  cursor: pointer;
  border: none;
  outline: none;
}

img {
  max-width: 100%;
  height: auto;
}

/*=============== THEME ===============*/
.change-theme{
  font-size: 1.25rem;
  cursor: pointer;
  transition: 0.3s;
}
.change-theme:hover{
  color: var(--first-color);
}

/*========== Variables Dark theme ==========*/
body.light-theme{
  --title-color: hsl(var(--second-hue), 15%, 15%);
  --text-color: hsl(var(--second-hue), 8%, 35%);
  --body-color: hsl(var(--second-hue), 100%, 99%);
  --container-color: #fff;
}

/* Light theme gradient background */
.light-theme body::before {
  background: linear-gradient(180deg, 
    hsla(var(--first-hue), var(--sat), var(--lig), 0.12) 0%,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.08) 25%,
    hsla(var(--first-hue), var(--sat), var(--lig), 0.04) 50%,
    transparent 70%);
}

/*========== 
    Color changes in some parts of 
    the website, in light theme
==========*/
.light-theme .scroll-header{
  box-shadow: 0 2px 4px hsla(0, 0%, 1%, 0.1);
}
.light-theme .nav__menu{
  background-color: hsla(var(--second-hue), 32%, 90%, 0.8);
}
.light-theme .section__subtitle{
  color: var(--text-color);
}
.light-theme .home__social-link{
  box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, 0.1);
}
.light-theme .home__social::after,
.light-theme .footer__social-link{
  background-color: var(--title-color);
}
.light-theme .home__social-link,
.light-theme .home__scroll,
.light-theme .button,
.light-theme .button:hover,
.light-theme .active-work,
.light-theme .footer__title,
.light-theme .footer__link,
.light-theme .footer__copy{
  color: var(--title-color);
}
.light-theme .about__box{
  box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, 0.1);
}
.light-theme .skills__content,
.light-theme .services__card,
.light-theme .work__card,
.light-theme .testimonial__card,
.light-theme .contact__card{
  box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, 0.1);
}
.light-theme::-webkit-scrollbar{
  background-color: hsl(var(--second-hue), 8%, 66%);
}
.light-theme::-webkit-scrollbar-thumb{
  background-color: hsl(var(--second-hue), 8%, 66%);
}
.light-theme::-webkit-scrollbar-thumb:hover{
  background-color: hsl(var(--second-hue), 8%, 44%);
}
/*=============== REUSABLE CSS CLASSES ===============*/
.container {
  max-width: 968px;
  margin-left: 1rem;
  margin-right: 1rem;
}

.grid {
  display: grid;
  gap: 1.25rem;
}

.main {
  overflow: hidden;
  margin-top: 2rem;
}

.section {
  padding: 4.5rem 0 1rem;
}

.section__title, 
.section__subtitle {
  text-align: center;
}

.section__title {
  font-size: var(--h2-font-size);
  color: var(--first-color);
  margin-bottom: 2rem;
}

.section__subtitle {
  display: block;
  font-size: var(--smaller-font-size);
  color: var(--text-color-light);
}

/*=============== HEADER & NAV===============*/
.header{
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: var(--body-color);
  box-shadow: none;
  z-index: var(--z-fixed);
  transition: 0.4s;
}
.nav{
  height: var(--header-height);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav__right {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav__logo{
  color: var(--first-color);
  font-weight: var(--font-medium);
  transition: .4s;
}
.nav__logo:hover{
  color: var(--first-color-alt);
}
.nav__menu{
  position: fixed;
  bottom: 1rem;
  background-color: hsla(var(--second-hue), 32%, 16%, .8);
  width: 90%;
  border-radius: 4rem;
  padding: 1rem 2.25rem;
  backdrop-filter: blur(10px);
}
.nav__list{
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav__link{
  color: var(--text-color);
  font-size: 1.25rem;
  padding: .4rem;
  display: flex;
  border-radius: 5rem;
}

/* Smaller back button style */
.nav__link--small {
  font-size: var(--normal-font-size) !important;
  padding: 0.5rem 1rem !important;
  background: var(--container-color);
  border-radius: 0.5rem !important;
  transition: all 0.3s ease;
  align-items: center;
  gap: 0.5rem;
}

.nav__link--small:hover {
  background: var(--first-color);
  color: white;
  transform: translateY(-2px);
}

/* Active link */
.active-link{
  background: linear-gradient(180deg, 
              hsla(var(--first-hue), var(--sat), var(--lig), 1),
              hsla(var(--first-hue), var(--sat), var(--lig), 0.2));
  box-shadow: 0 0 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.4);
  color: var(--title-color);
}

/*=============== TOP RIGHT AUTH SECTION ===============*/
.nav__auth {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav__auth-buttons {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav__auth-btn {
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  text-decoration: none;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.nav__login-btn {
  background-color: transparent;
  color: var(--text-color);
  border-color: var(--first-color);
}

.nav__login-btn:hover {
  background-color: var(--first-color);
  color: var(--title-color);
  transform: translateY(-2px);
}

.nav__signup-btn {
  background-color: var(--first-color);
  color: var(--title-color);
}

.nav__signup-btn:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.nav__profile {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background-color: var(--first-color);
  color: var(--title-color);
  border-radius: 25px;
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: fit-content;
}

.nav__profile i {
  font-size: 1.25rem;
}

.nav__username {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  white-space: nowrap;
}

.nav__subscription-badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-pro {
  background: #3b82f6;
  color: white;
}

.badge-enterprise {
  background: #7c3aed;
  color: white;
}

.nav__profile:hover {
  background-color: var(--first-color-alt);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
}

/* Profile dropdown */
.nav__profile-dropdown {
  position: relative;
}

.nav__profile-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background-color: var(--container-color);
  border-radius: 0.5rem;
  /* padding: 0.5rem 0; */
  box-shadow: 0 4px 12px hsla(0, 0%, 0%, 0.15);
  min-width: 120px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 100;
}

.nav__profile-dropdown:hover .nav__profile-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__profile-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  color: var(--text-color);
  text-decoration: none;
  font-size: var(--small-font-size);
  transition: all 0.3s ease;
  border-radius: 0.5rem 0.5rem 0.5rem 0.5rem;
}

.nav__profile-item:hover {
  background-color: var(--first-color);
  color: var(--title-color);
}

/* Responsive adjustments for auth section */
@media screen and (max-width: 480px) {
  .nav__auth-btn {
    padding: 0.4rem 0.8rem;
    font-size: var(--smaller-font-size);
  }
  
  .nav__profile {
    padding: 0.4rem 0.8rem;
    font-size: var(--smaller-font-size);
  }
  
  .nav__username {
    display: none;
  }
  
  .nav__subscription-badge {
    display: none;
  }
  
  .nav__profile i {
    font-size: 1rem;
  }
}

/*=============== HOME ===============*/
.home {
  position: relative;
  overflow: hidden;
}

.home__container{
  position: relative;
  row-gap: 4.5rem;
  padding-top: 2rem;
  z-index: 1;
}
.home__data{
  text-align: center;
}
.home__greating,
.home__education{
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}
.home__greating{
  display: block;
  color: var(--title-color);
  margin-bottom: .25rem;
}
.home__education{
  color: var(--text-color);
  margin-bottom: 2.5rem;
}
.home__name{
  font-size: var(--biggest-font-size);
}
.home__img{
  width: 300px;
}
.home__handle{
  justify-self: center;
  /* background: linear-gradient(180deg, 
              hsla(var(--first-hue), var(--sat), var(--lig), 1),
              hsla(var(--first-hue), var(--sat), var(--lig), 0.2)); */
  border-radius: 10rem 10rem 1rem 1rem;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
 }
 .home__buttons{
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.5rem;
 }
 .home__social,
 .home__scroll{
  position: absolute;
 }
 .home__social{
  bottom: 5rem;
  left: 0;
  display: grid;
  row-gap: .5rem;
 }
 .home__social-link{
  width: max-content;
  background-color: var(--container-color);
  color: var(--first-color);
  padding: .25rem;
  border-radius: .25rem;
  display: flex;
  font-size: 1rem;
  transition: .4s;
}
.home__social-link:hover{
  background-color: var(--first-color);
  color: #fff;
}
.home__social::after{
  content: '';
  width: 32px;
  height: 2px;
  background-color: var(--first-color);
  transform: rotate(90deg) translate(16px, 3px);
}
.home__scroll{
  color: var(--first-color);
  right: -1.5rem;
  bottom: 4rem;
  display: grid;
  row-gap: 2.25rem;
  justify-items: center;
}
.home__scroll-icon{
  font-size: 1.25rem;
}
.home__scroll-name{
  font-size: var(--small-font-size);
  transform: rotate(90deg);
}
/*=============== BUTTONS ===============*/
.button{
  display: inline-block;
  background-color: var(--first-color);
  color: var(--body-color);
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: 0.4s;
}
.button:hover{
  background-color: var(--first-color-alt);
  color: var(--body-color);
}
.button--ghost{
  background-color: transparent;
  border: 2px solid var(--first-color);
  color: var(--first-color);
}
/*=============== ABOUT ===============*/
.about__container{
  row-gap: 2.5rem;
}
.about__img{
  /* width: 360px; */
  border-radius: 1.5rem;
  justify-self: center;
}
.about__data{
  text-align: center;
}
.about__info{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
  margin-bottom: 2rem;
}
.about__box{
  background-color: var(--container-color);
  border-radius: 0.75rem;
  padding: 0.75rem 0.5rem;
  width: 100%;
}
.about__icon{
  font-size: 1.5rem;
  color: var(--first-color);
  margin-bottom: 0.5rem;
}
.about__title{
  font-size: var(--small-font-size);
}
.about__subtitle{
  font-size: var(--tiny-font-size);
}
.about__description{
  margin-bottom: 2rem;
}
/*=============== SKILLS ===============*/
.skills__container{
  row-gap: 2rem;
  padding-top: 1rem;
}
.skills__content{
  background-color: var(--container-color);
  padding: 1.5rem;
  border-radius: 1.25rem;
}
.skills__title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  color: var(--first-color);
  text-align: center;
  margin-bottom: 1.5rem;
}
.skills__box{
  display: flex;
  justify-content: center;
  column-gap: 2.5rem;
}
.skills__group{
  display: grid;
  align-content: flex-start;
  row-gap: 1rem;
}
.skills__data{
  display: flex;
  column-gap: 0.5rem;
}
.skills .bxs-badge-check{
  font-size: 1rem;
  columns: var(--first-color);
}
.skills__name{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  line-height: 18px;
}
.skills__level{
  font-size: var(--tiny-font-size);
}

/*=============== SERVICES ===============*/
.services__container{
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  padding-top: 0;
}
.services__card{
  background-color: var(--container-color);
  padding: 1rem 1.5rem 1.5rem;
  border-radius: 1rem;
}
.services__title{
  font-size: var(--h3-font-size);
  margin-bottom: 2.5rem;
}
.services__button{
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
  cursor: pointer;
}
.services__button:hover .services__icon{
  transform: translateX(0.25rem);
}
.services__icon{
  font-size: 1rem;
  transition: 0.4s;
}
/* Services modal */
.services__modal{
  position: fixed;
  inset: 0;
  background-color: hsla(var(--second-hue), 28%,16%, 0.7);
  padding: 2rem 1rem;
  display: grid;
  place-items: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.4;
  z-index: var(--z-modal);
}
.services__modal-content{
  position: relative;
  background-color: var(--body-color);
  padding: 4.5rem 1.5rem 2.5rem;
  border-radius: 1.5rem;
}
.services__modal-title,
.services__modal-description{
  text-align: center;
}
.services__modal-description a{
  color: var(--first-color);
}
.services__modal-title{
  font-size: var(--h3-font-size);
  color: var(--first-color);
  margin-bottom: 1rem;
}
.services__modal-description{
  font-size: var(--small-font-size);
  margin-bottom: 2rem;
}
.services__modal-list{
  display: grid;
  row-gap: 0.75rem;
}
.services__modal-item{
  display: flex;
  align-items: flex-start;
  column-gap: 0.5rem;
}
.services__modal-item a{
  color: var(--first-color);;
}
.services__modal-icon{
  font-size: 1.5rem;
  color: var(--first-color);
}
.services__modal-info{
  font-size: var(--small-font-size);
}
.services__modal-close{
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  font-size: 1.5rem;
  color: var(--first-color);
  cursor: pointer;
}
/*Active modal*/
.active-modal{
  opacity: 1;
  visibility: visible;
}

/*=============== WORK ===============*/
.work__container{
  padding-top: 1rem;
}
.work__filters{
  display: flex;
  justify-content: center;
  align-items: center;
  column-gap: 0.75rem;
  margin-bottom: 2rem;
}
.work__item{
  cursor: pointer;
  color: var(--title-color);
  padding: 0.25rem 0.75rem;
  font-weight: var(--font-medium);
  border-radius: 0.5rem;
}
.work__card{
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 1rem;
}
.work__img{
  border-radius: 1rem;
  margin-bottom: 0.75rem;
}
.work__title{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
}
.work__button{
  width: max-content;
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  column-gap: 0.25rem;
}
.work__button:hover .work__icon{
  transform: translateX(0.25rem);
}
.work__icon{
  font-size: 1rem;
  transition: 0.4s;
}

/* Active item work*/
.active-work{
  background-color: var(--first-color);
  color: var(--body-color);
}
.work__button-more{
  padding-top: 2rem;
  display: flex;
  justify-content: center;
}

/*=============== TESTIMONIAL ===============*/
.testimonial__card{
  background-color: var(--container-color);
  padding: 1.25rem 1.5rem;
  border-radius: 1.5rem;
  margin-bottom: 3rem;
  height: 250px;
}
.testimonial__img{
  width: 75%;
  margin-bottom: 1rem;
}
.testimonial__name{
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  margin-bottom: 0.25rem;
}
.testimonial__description{
  font-size: var(--small-font-size);
}

/* Swiper class */
.swiper-pagination-bullet{
  background-color: var(--text-color-light);
}
.swiper-pagination-bullet-active{
  background-color: var(--first-color);
}
.testimonial__container{
  width: 90%;
}
/*=============== CONTACT ===============*/
.contact__container{
  row-gap: 3rem;
  padding-bottom: 3rem;
}
.contact__title{
  text-align: center;
  font-size: var(--h3-font-size);
  margin-bottom: 1.5rem;
}
.contact__info{
  display: grid;
  gap: 1rem;
}
.contact__card{
  background-color: var(--container-color);
  padding: 1rem;
  border-radius: 0.75rem;
  text-align: center;
}
.contact__card-icon{
  font-size: 2rem;
  color: var(--title-color);
  margin-bottom: 0.25rem;
}
.contact__card-title,
.contact__card-data{
  font-size: var(--small-font-size);
}
.contact__card-title{
  font-weight: var(--font-medium);
}
.contact__card-data{
  display: block;
  margin-bottom: 0.75rem;
}
.contact__button{
  color: var(--first-color);
  font-size: var(--small-font-size);
  display: flex;
  align-items: center;
  justify-content: center;
  column-gap: 0.25rem;
  text-decoration: none;
  padding: 0.5rem 1rem;
  transition: 0.3s;
}
.contact__button:hover .contact__button-icon{
  transform: translateX(0.25rem);
}
.contact__button-icon{
  font-size: 1rem;
  transition: 0.4s;
}
.contact__form-div{
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}
.contact__form input,
.contact__form textarea,
.contact__form select{
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  color: var(--text-color);
  outline: none;
  padding: 1rem;
  border-radius: .75rem;
  z-index: 1;
}
.contact__form label{
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--body-color);
  z-index: 10;
}
.contact__form textarea{
  height: 8rem;
}
.contact__form-area{
  height: 11rem;
}
.contact__form-area textarea{
  resize: none;
}
/*=============== FOOTER ===============*/
.footer{
  background-color: var(--first-color);
  margin-top: 3rem;
}
.footer__container{
  padding: 2rem 0 6rem;
}
.footer__title,
.footer__link{
  color: var(--body-color);
}
.footer__title{
  text-align: center;
  margin-bottom: 2rem;
}
.footer__list{
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-bottom: 2rem;
}
.footer__social{
  display: flex;
  justify-content: center;
  column-gap: 1.25rem;
}
.footer__social-link{
  background-color: var(--body-color);
  color: var(--first-color);
  padding: 0.25rem;
  border-radius: 0.25rem;
  font-size: 1rem;
  display: inline-flex;
}
.footer__copy{
  display: block;
  margin-top: 4.5rem;
  color: var(--container-color);
  text-align: center;
  font-size: var(--smaller-font-size);
}
.section__audio{
  display: flex;
  justify-content: center;
  margin: 1rem 0 1rem 0;
}
.section__audio audio{
  width: 80%;
  max-width: 600px;
}
.section__table{
  display: flex;
  justify-content: center;
}
.section__table table{
  width: 90%;
  max-width: 900px;
  border-collapse: collapse;
}
.section__table table th, td{
  border-bottom: 1px solid black;
}
/*=============== SCROLL BAR ===============*/
::-webkit-scrollbar{
  width: 0.6rem;
  border-radius: 0.5rem;
  background-color: hsl(var(--second-hue), 8%, 38%);
}
::-webkit-scrollbar-thumb{
  background-color: hsl(var(--second-hue), 8%, 26%);
  border-radius: 0.5rem;
}
::-webkit-scrollbar-thumb:hover{
  background-color: hsl(var(--second-hue), 8%, 20%);;
}

/*=============== BREAKPOINTS ===============*/
/* For small devices */
@media screen and (max-width: 320px){
  .nav__menu{
    padding: 1rem 1.5rem;
  }
  .home__buttons{
    flex-direction: column;
  }
  .home__handle{
  }
  .home__img{
    width: 300px;
  }
  .about__info{
    grid-template-columns: repeat(2, 1fr);
  }
  .skills__box{
    column-gap: 1rem;
  }
  .skills__name{
    font-size: var(--small-font-size);
  }
  .services__container{
    grid-template-columns: 145px;
    justify-content: center;
  }
  .work__item{
    font-size: var(--small-font-size);
  }
  .work__filters{
    column-gap: 0.25rem;
  }
  .popup-content{
    width: 80%;
    left: 45%;
  }
}

/* For medium devices */
@media screen and (min-width: 576px){
  .nav__menu{
    width: 328px;
    left: 0;
    right: 0;
    margin: 0 auto;
  }
  .about__info{
    grid-template-columns: repeat(2, 140px);
    justify-content: center;
  }
  .about__description{
    padding: 0 5rem;
  }
  .skills__container{
    justify-content: center;
  }
  .skills__content{
    padding: 2rem 4rem;
  }
  .services__container{
    grid-template-columns: repeat(2, 350px);
    justify-content: center;
  }
  .services__modal-content{
    width: 500px;
    padding: 4.5rem 2.5rem 2.5rem;
  }
  .services__modal-description{
    padding: 0 3.5rem;
  }
  .work__container{
    justify-content: center;
  }
  .work__img{
    width: 295px;
  }
  .contact__Info{
    grid-template-columns: 300px;
    justify-content: center;
  }
  .contact__form{
    width: 90%;
    margin: 0 auto;
  }
  /* .popup-content{
    width: 80%;
    left: 45%;
  } */
}
@media screen and (min-width: 767px){
  .work__container{
    grid-template-columns: repeat(2, max-content);
  }
  .contact__container{
    grid-template-columns: repeat(2, max-content);
    justify-content: center;
    column-gap: 3rem;
  }
  .about__info{
    display: flex;
  }
}
@media screen and (min-width: 992px){
  .container{
    margin-left: auto;
    margin-right: auto;
  }
  .section{
    padding: 2.5rem 0 1rem;
  }
  .section__title{
    margin-bottom: 3.5rem;
  }

  .nav{
    height: cals(var(--header-height) + 1rem);
  }
  .home__handle{
    width: 400px;
    height: 400px;
  }
  .home__img{
    width: 300px;
  }
  .home__social-link{
    padding: 0.4rem;
    font-size: 1.25rem;
  }
  .home__social::after{
    transform: rotate(90deg) translate(16px, 0);
  }
  .home__scroll-icon{
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }
  .about__container{
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    column-gap: 4rem;
  }
  .about__img{
    /* width: 400px; */
  }
  .about__data{
    text-align: initial;
  }
  .about__info{
    justify-content: initial;
    display: flex;
  }
  .about__box{
    text-align: center;
    padding: 1rem 1.25rem;
  }
  .about__description{
    padding: 0 0 0 0;
    margin-bottom: 2.5rem;
  }
  .skills__container{
    grid-template-columns: repeat(2, 500px);
    column-gap: 3rem;
  }
  .services__container{
    grid-template-columns: repeat(3, 320px);
    column-gap: 3rem;
  }
  .services__card{
    /* padding: 5rem 2rem 1.5rem; */
  }
  .work__container{
    gap: 3rem;
    grid-template-columns: repeat(3, max-content);
  }
  .work__card{
    padding: 1.25rem;
  }
  .work__img{
    margin-bottom: 1rem;
  }
  .work__title{
    margin-bottom: 0.5rem;
  }
  .testimonial__continer{
    width: 750px;
  }
  .testimonial__card{
    padding: 1.5rem 2rem;
  }
  .contact__container{
    column-gap: 6rem;
  }
  .footer__social-link{
    font-size: 1.25rem;
    padding: 0.4rem;
    border-radius: 0.5rem;
  }
  
}

/*=============== CREDIT WIDGET ===============*/
.nav__credits {
  position: relative;
  margin-right: 1rem;
}

.credits-widget {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  position: relative;
}

.credits-widget:hover {
  background-color: var(--container-color);
}

.credits-widget i {
  font-size: 1.25rem;
  color: var(--first-color);
  margin-right: 0.25rem;
}

.credits-widget.unlimited i {
  color: gold;
}

.unlimited-text {
  font-size: var(--small-font-size);
  color: gold;
  font-weight: var(--font-medium);
}

.credits-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--container-color);
  border: 1px solid var(--first-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: var(--z-tooltip);
  margin-top: 0.5rem;
}

.credits-widget:hover .credits-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.credits-header h6 {
  margin: 0;
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.credits-header small {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.credits-list {
  padding: 0.75rem;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: var(--small-font-size);
}

.credit-item span:first-child {
  color: var(--text-color);
}

.credit-item .badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: white;
}

.badge.bg-success {
  background-color: #28a745;
}

.badge.bg-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge.bg-danger {
  background-color: #dc3545;
}

.credits-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.credits-footer .btn {
  font-size: var(--small-font-size);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

/* Responsive design for credits widget */
@media screen and (max-width: 768px) {
  .nav__credits {
    margin-right: 0.5rem;
  }
  
  .credits-dropdown {
    min-width: 250px;
    right: -50px;
  }
  
  .credit-item {
    font-size: var(--smaller-font-size);
  }
}

@media screen and (max-width: 480px) {
  .credits-widget .unlimited-text {
    display: none;
  }
  
  .credits-dropdown {
    min-width: 220px;
    right: -80px;
  }
}

/*=============== AUTH STYLES =============== */
.alert {
  padding: 1rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  text-align: center;
  font-weight: var(--font-medium);
}

.alert-error {
  background-color: hsl(0, 70%, 70%);
  color: var(--body-color);
}

.alert-success {
  background-color: hsl(120, 60%, 70%);
  color: var(--body-color);
}

.alert-info {
  background-color: hsl(200, 60%, 70%);
  color: var(--body-color);
}

.form-error {
  color: var(--first-color-alt);
  font-size: var(--small-font-size);
  display: block;
  margin-top: 0.25rem;
}

/* Auth form specific styles */
.auth-container {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.contact__container {
  row-gap: 3rem;
  padding-bottom: 3rem;
}

.contact__content {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
}

.contact__form-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: auto !important;
  margin-bottom: 1rem;
}

.contact__form-check {
  width: auto !important;
  height: auto !important;
  position: relative !important;
  margin: 0 !important;
}

.contact__form-check-label {
  margin: 0 !important;
  font-size: var(--small-font-size);
  color: var(--text-color);
  position: relative !important;
  background: none !important;
  padding: 0 !important;
}

.contact__info {
  text-align: center;
  margin-top: 2rem;
}

.contact__description {
  color: var(--text-color);
  margin-bottom: 1rem;
}

/* Fix button sizing issues */
.contact__button {
  display: inline-block;
  background-color: var(--first-color);
  color: var(--body-color);
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: var(--font-medium);
  transition: 0.4s;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-size: var(--normal-font-size);
  width: auto;
}

.contact__button:hover {
  background-color: var(--first-color-alt);
  color: var(--body-color);
  transform: none !important;
}

.contact__button.button {
  width: 100%;
}

/* Fix form input sizing */
.contact__form-div {
  position: relative;
  margin-bottom: 2rem;
  height: 4rem;
}

.contact__form-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 2px solid var(--text-color-light);
  background: none;
  color: var(--text-color);
  outline: none;
  padding: 1rem;
  border-radius: .75rem;
  z-index: 1;
  font-size: var(--normal-font-size);
}

.contact__form-input:focus {
  border-color: var(--first-color);
}

.contact__form-label {
  position: absolute;
  top: -.75rem;
  left: 1.25rem;
  font-size: var(--smaller-font-size);
  padding: 0.25rem;
  background-color: var(--body-color);
  z-index: 10;
  color: var(--text-color);
}

/* Enhanced Profile page styles */
.profile__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

.flash__messages {
  margin-bottom: 2rem;
}

.alert {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: var(--small-font-size);
  margin-bottom: 1rem;
  background-color: var(--container-color);
  border-left: 4px solid var(--first-color);
  box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, 0.1);
}

/* Profile Header */
.profile__header {
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
  border-radius: 1.5rem;
  padding: 3rem 2rem;
  margin-bottom: 3rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.profile__header::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--first-color) 0%, transparent 70%);
  opacity: 0.1;
  border-radius: 50%;
  transform: translate(50%, -50%);
}

.profile__header-content {
  display: flex;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.profile__avatar-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.profile__avatar {
  width: 120px;
  height: 120px;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: white;
  box-shadow: 0 8px 24px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
  position: relative;
}

.profile__avatar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--first-color), transparent, var(--first-color-alt));
  z-index: -1;
  opacity: 0.3;
}

.profile__status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.status__indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #4CAF50;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.5; }
  100% { opacity: 1; }
}

.profile__info {
  flex: 1;
}

.profile__name {
  font-size: var(--h1-font-size);
  margin-bottom: 0.5rem;
  background: linear-gradient(135deg, var(--title-color) 0%, var(--first-color) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.profile__email,
.profile__joined {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
  margin-bottom: 0.75rem;
}

.profile__email i,
.profile__joined i {
  color: var(--first-color);
}

/* Profile Sections */
.profile__section {
  margin-bottom: 3rem;
}

.section__header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: var(--h2-font-size);
  margin-bottom: 0.5rem;
}

.section__title i {
  color: var(--first-color);
  font-size: 1.5em;
}

.section__subtitle {
  color: var(--text-color-light);
  font-size: var(--normal-font-size);
}

/* Statistics Cards */
.stats__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stats__container--secondary {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.stat__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.stat__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--first-color) 0%, var(--first-color-alt) 100%);
}

.stat__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

/* Card Variants */
.stat__card--primary::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat__card--secondary::before {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.stat__card--accent::before {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.stat__card--success::before {
  background: linear-gradient(90deg, #56ab2f 0%, #a8e6cf 100%);
}

.stat__card--warning::before {
  background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
}

.stat__card--info::before {
  background: linear-gradient(90deg, #74b9ff 0%, #0984e3 100%);
}

.stat__card--purple::before {
  background: linear-gradient(90deg, #a29bfe 0%, #6c5ce7 100%);
}

.stat__card--orange::before {
  background: linear-gradient(90deg, #fd79a8 0%, #fdcb6e 100%);
}

.stat__card--gradient::before {
  background: linear-gradient(90deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/*=============== CREDIT WIDGET ===============*/
.nav__credits {
  position: relative;
  margin-right: 1rem;
}

.credits-widget {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  position: relative;
}

.credits-widget:hover {
  background-color: var(--container-color);
}

.credits-widget i {
  font-size: 1.25rem;
  color: var(--first-color);
  margin-right: 0.25rem;
}

.credits-widget.unlimited i {
  color: gold;
}

.unlimited-text {
  font-size: var(--small-font-size);
  color: gold;
  font-weight: var(--font-medium);
}

.credits-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--container-color);
  border: 1px solid var(--first-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: var(--z-tooltip);
  margin-top: 0.5rem;
}

.credits-widget:hover .credits-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.credits-header h6 {
  margin: 0;
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.credits-header small {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.credits-list {
  padding: 0.75rem;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: var(--small-font-size);
}

.credit-item span:first-child {
  color: var(--text-color);
}

.credit-item .badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: white;
}

.badge.bg-success {
  background-color: #28a745;
}

.badge.bg-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge.bg-danger {
  background-color: #dc3545;
}

.credits-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.credits-footer .btn {
  font-size: var(--small-font-size);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

/* Responsive design for credits widget */
@media screen and (max-width: 768px) {
  .nav__credits {
    margin-right: 0.5rem;
  }
  
  .credits-dropdown {
    min-width: 250px;
    right: -50px;
  }
  
  .credit-item {
    font-size: var(--smaller-font-size);
  }
}

@media screen and (max-width: 480px) {
  .credits-widget .unlimited-text {
    display: none;
  }
  
  .credits-dropdown {
    min-width: 220px;
    right: -80px;
  }
}

/*=============== LOGIN PROMPT FOR CHAT ===============*/
.login-prompt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--body-color);
  height: calc(100% - 60px);
  justify-content: center;
}

.login-prompt-message {
  max-width: 350px;
}

.login-prompt-message i {
  display: block;
  margin: 0 auto 1rem;
}

.login-prompt-message h3 {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
  margin-bottom: 1rem;
}

.login-prompt-message p {
  font-size: var(--normal-font-size);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.login-prompt-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.login-prompt-buttons .button {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive design for login prompt */
@media screen and (max-width: 768px) {
  .login-prompt-content {
    padding: 1.5rem;
  }
  
  .login-prompt-message {
    max-width: 100%;
  }
  
  .login-prompt-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .login-prompt-buttons .button {
    width: 100%;
    min-width: auto;
  }
}

@media screen and (max-width: 480px) {
  .login-prompt-content {
    padding: 1rem;
  }
  
  .login-prompt-message i {
    font-size: 2.5rem !important;
  }
  
  .login-prompt-message h3 {
    font-size: 1.25rem;
  }
  
  .login-prompt-message p {
    font-size: 0.9rem;
  }
}

/*=============== FLASHCARD BUTTONS ===============*/
.vocab-flashcard-btn {
  min-width: 85px !important;
  max-width: 85px !important;
  width: 85px !important;
  height: 38px !important;
  padding: 0.5rem 0.6rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  margin: 2px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  background-color: var(--first-color) !important;
  color: var(--body-color) !important;
}

.vocab-flashcard-btn:hover {
  background-color: var(--first-color-alt) !important;
  transform: translateY(-1px) !important;
}

.vocab-flashcard-btn i {
  margin-right: 3px !important;
  font-size: 0.85rem !important;
  flex-shrink: 0 !important;
}

.vocab-flashcard-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Success state for added flashcards */
.vocab-flashcard-btn[style*="background-color: #28a745"] {
  background-color: #28a745 !important;
  color: white !important;
}

.vocab-flashcard-btn[style*="background-color: #28a745"]:hover {
  background-color: #218838 !important;
}

/* Ensure consistent spacing in vocabulary tables */
.vocabulary-table {
  table-layout: fixed !important;
}

.vocabulary-table td {
  padding: 0.75rem 0.5rem !important;
  vertical-align: middle !important;
  border: 1px solid var(--text-color-light) !important;
}

.vocabulary-table td:last-child {
  text-align: center !important;
  width: 100px !important;
  padding: 0.5rem !important;
}

.vocabulary-table th {
  padding: 0.75rem 0.5rem !important;
  text-align: center !important;
  border: 1px solid var(--text-color-light) !important;
}

.vocabulary-table th:last-child {
  width: 100px !important;
}

/*=============== STORIES & PODCASTS LIST STYLES ===============*/
.stories__container,
.podcasts__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.stories__header,
.podcasts__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.stories__actions,
.podcasts__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stories__filters,
.podcasts__filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--container-color);
  border-radius: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.filter__group label {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.filter__select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--body-color);
  color: var(--text-color);
  font-size: var(--normal-font-size);
}

.stories__grid,
.podcasts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.story__card,
.podcast__card {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.story__card:hover,
.podcast__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.story__card-header,
.podcast__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.story__badges,
.podcast__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.badge--level {
  background: var(--first-color-light);
  color: var(--first-color);
}

.badge--language {
  background: var(--second-color-light);
  color: var(--second-color);
}

.badge--favorite {
  background: #ffebee;
  color: #c62828;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.favorite__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-color-light);
}

.favorite__btn:hover {
  background: var(--first-color-light);
  color: var(--first-color);
}

.favorite__btn i {
  font-size: 1.25rem;
}

.story__content,
.podcast__content {
  margin-bottom: 1rem;
}

.story__title,
.podcast__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.story__preview,
.podcast__preview {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.story__meta,
.podcast__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.meta__item i {
  font-size: 1rem;
}

.story__actions,
.podcast__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.podcast__player {
  margin-bottom: 1rem;
}

.audio__player {
  width: 100%;
  height: 40px;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

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

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

.btn--secondary {
  background: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn--secondary:hover {
  background: var(--first-color-light);
  color: var(--first-color);
}

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

.btn--accent:hover {
  background: var(--second-color-alt);
}

.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--small-font-size);
}

.empty__state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-color-light);
}

.empty__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--first-color-light);
}

.empty__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.empty__description {
  font-size: var(--normal-font-size);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .stories__header,
  .podcasts__header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stories__filters,
  .podcasts__filters {
    flex-direction: column;
  }
  
  .filter__group {
    min-width: auto;
  }
  
  .stories__grid,
  .podcasts__grid {
    grid-template-columns: 1fr;
  }
  
  .story__actions,
  .podcast__actions {
    flex-direction: column;
  }
  
  .empty__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  .stories__container,
  .podcasts__container {
    padding: 1rem 0.5rem;
  }
  
  .story__card,
  .podcast__card {
    padding: 1rem;
  }
  
  .story__meta,
  .podcast__meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/*=============== STORY & PODCAST VIEW STYLES ===============*/
.story-view__container,
.podcast-view__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.story-view__header,
.podcast-view__header {
  margin-bottom: 2rem;
}

.story-view__breadcrumb,
.podcast-view__breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
  text-decoration: none;
  font-size: var(--normal-font-size);
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: var(--first-color);
}

.story-view__meta,
.podcast-view__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.story-view__badges,
.podcast-view__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge--words,
.badge--duration {
  background: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.story-view__actions,
.podcast-view__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn--favorite {
  background: #ffebee !important;
  color: #c62828 !important;
}

.story-view__content,
.podcast-view__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content__section {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vocabulary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.vocab__card {
  background: var(--body-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.vocab__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.language-tag {
  background: var(--first-color-light);
  color: var(--first-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.vocab-count {
  background: var(--second-color-light);
  color: var(--second-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.audio__controls,
.transcript__actions,
.vocab__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.audio__btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--first-color);
  color: var(--white-color);
  font-size: var(--small-font-size);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio__btn:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
}

.audio__btn--secondary {
  background: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.audio__btn--secondary:hover {
  background: var(--first-color-light);
  color: var(--first-color);
}

.podcast__main {
  text-align: center;
}

.podcast__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.podcast__player-main {
  max-width: 600px;
  margin: 0 auto;
}

.audio__controls-main {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.audio__btn--download,
.audio__btn--speed {
  background: var(--second-color);
  color: var(--white-color);
}

.audio__btn--download:hover,
.audio__btn--speed:hover {
  background: var(--second-color-alt);
}

.podcast__transcript {
  font-size: var(--normal-font-size);
  line-height: 1.8;
  color: var(--text-color);
  text-align: justify;
}

.podcast__transcript p {
  margin-bottom: 1rem;
}

.vocab__word {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.vocab__word h3 {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.vocab__favorite {
  background: var(--first-color-light);
  color: var(--first-color);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vocab__favorite:hover {
  background: var(--first-color);
  color: var(--white-color);
}

.vocab__definition,
.vocab__synonym,
.vocab__examples {
  margin-bottom: 0.75rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

.vocab__definition p,
.vocab__synonym p,
.vocab__examples p {
  margin-bottom: 0.5rem;
}

/* Related Actions */
.related__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.action__card {
  background: var(--body-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action__icon {
  background: var(--first-color-light);
  color: var(--first-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.action__content {
  flex: 1;
}

.action__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.action__description {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  line-height: 1.5;
}

.action__badge {
  display: inline-block;
  background: var(--first-color);
  color: white;
  font-size: var(--tiny-font-size);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
  font-weight: var(--font-medium);
}

.action__arrow {
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.action__card:hover .action__arrow {
  transform: translateX(4px);
}

/* Todo List Styles */
.todo__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.todo__header {
    text-align: center;
    margin-bottom: 3rem;
}

.todo__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.todo__title i {
    font-size: 1.5rem;
    color: var(--first-color);
}

.todo__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color-light);
    font-weight: var(--font-medium);
}

/* Progress Section */
.todo__progress-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.todo__progress-card {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px hsla(var(--second-hue), 48%, 8%, 0.25);
    transition: transform 0.3s ease;
}

.todo__progress-card:hover {
    transform: translateY(-2px);
}

.todo__progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.todo__progress-header h3 {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin: 0;
}

.todo__progress-percentage {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
}

.todo__progress-bar {
    width: 100%;
    height: 12px;
    background: var(--text-color-lighten);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.todo__progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.todo__progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.todo__progress-text {
    color: var(--text-color);
    font-size: var(--normal-font-size);
    text-align: center;
    margin: 0;
    font-weight: var(--font-medium);
}

/* Weekly Chart */
.todo__weekly-chart {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px hsla(var(--second-hue), 48%, 8%, 0.25);
}

.todo__weekly-chart h4 {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
    text-align: center;
}

.todo__chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 120px;
    gap: 0.5rem;
}

.todo__chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.todo__chart-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--first-color), var(--first-color-alt));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s ease;
}

.todo__chart-label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: 0.5rem;
    font-weight: var(--font-medium);
}

/* Tasks Section */
.todo__tasks-section {
    margin-bottom: 3rem;
}

.todo__tasks-title {
    color: var(--title-color);
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
    text-align: center;
}

.todo__tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.todo__task-card {
    background: var(--container-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px hsla(var(--second-hue), 48%, 8%, 0.25);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.todo__task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsla(var(--second-hue), 48%, 8%, 0.35);
}

.todo__task-card.completed {
    border-color: var(--first-color);
    /* background: linear-gradient(180deg, 
              hsla(var(--first-hue), var(--sat), var(--lig), 1),
              hsla(var(--first-hue), var(--sat), var(--lig), 0.2)); */
}

.todo__task-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.todo__task-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.todo__task-info {
    flex: 1;
}

.todo__task-title {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
    font-weight: var(--font-semi-bold);
}

.todo__task-description {
    color: var(--text-color);
    font-size: var(--normal-font-size);
    line-height: 1.5;
    margin: 0;
}

.todo__task-actions {
    flex-shrink: 0;
}

.todo__task-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.todo__task-toggle:hover {
    color: var(--first-color);
    background: hsla(var(--first-hue), 100%, 60%, 0.1);
}

.todo__task-card.completed .todo__task-toggle {
    color: var(--first-color);
}

.todo__task-completed {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--text-color-lighten);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

/* Actions Section */
.todo__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.todo__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--container-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.todo__action-btn:hover {
    background: var(--first-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.todo__action-btn i {
    font-size: 1.25rem;
}

/* Profile Todo Progress Styles */
.todo__progress-container {
    margin-bottom: 2rem;
}

.todo__progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.todo__progress-actions {
    margin-left: 1rem;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
}

.todo__progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.todo__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.todo__stat-label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.todo__stat-value {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
}

.todo__weekly-mini-chart {
    display: flex;
    gap: 0.25rem;
    align-items: end;
    height: 40px;
}

.todo__mini-bar {
    width: 6px;
    background: linear-gradient(180deg, var(--first-color), var(--first-color-alt));
    border-radius: 2px;
    min-height: 2px;
    transition: height 0.3s ease;
}

/* Daily Action Card Styles */
.action__card--daily {
    border: 2px solid var(--first-color);
    background: linear-gradient(135deg, var(--container-color), hsla(var(--first-hue), 8%, 95%, 1));
}

.action__card--daily:hover {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: white;
}

.action__card--daily:hover .action__icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action__card--daily:hover .action__content h3,
.action__card--daily:hover .action__content p,
.action__card--daily:hover .action__progress {
    color: white;
}

.action__progress {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--first-color);
    color: white;
    border-radius: 1rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-top: 0.5rem;
}

/* No Tasks Message */
.todo__no-tasks {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--container-color);
    border-radius: 1rem;
    box-shadow: 0 4px 12px hsla(var(--second-hue), 48%, 8%, 0.25);
}

.todo__no-tasks-icon {
    font-size: 4rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.todo__no-tasks h4 {
    color: var(--title-color);
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.todo__no-tasks p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.todo__no-tasks-actions {
    margin-top: 2rem;
}

/* Task Management */
.todo__tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.todo__tasks-title {
    color: var(--title-color);
    font-size: var(--h2-font-size);
    margin: 0;
}

.todo__task-edit,
.todo__task-delete {
    background: none;
    border: none;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.todo__task-edit {
    color: var(--first-color);
}

.todo__task-edit:hover {
    background: hsla(var(--first-hue), 100%, 60%, 0.1);
}

.todo__task-delete {
    color: #ff6b6b;
}

.todo__task-delete:hover {
    background: hsla(0, 70%, 60%, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background: var(--container-color);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--text-color-lighten);
}

.modal__header h3 {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: var(--text-color-lighten);
    color: var(--text-color);
}

.modal__form {
    padding: 2rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.form__group input,
.form__group textarea,
.form__group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--text-color-lighten);
    border-radius: 0.5rem;
    background: var(--container-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: border-color 0.3s ease;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
    outline: none;
    border-color: var(--first-color);
}

.form__group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/*=============== GRAMMAR CHECKER STYLES ===============*/
.grammar-check {
    padding: 2rem 0;
}

.grammar-check__header {
    text-align: center;
    margin-bottom: 3rem;
}

.grammar-check__description {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Wide container for better screen utilization */
.grammar-check__wide-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media screen and (min-width: 968px) {
    .grammar-check__wide-container {
        max-width: 85%;
        padding: 0 2rem;
    }
}

.grammar-check__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start; /* Prevent equal height columns */
}

@media screen and (min-width: 968px) {
    .grammar-check__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Input Section - Fixed size */
.grammar-check__input-section {
    background: var(--container-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content; /* Prevent stretching */
    position: sticky;
    top: 2rem; /* Stick to top when scrolling on desktop */
}

/* Results Section - Scrollable */
.grammar-check__results-section {
    background: var(--container-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-height: 80vh; /* Limit height on large screens */
    overflow-y: auto; /* Make scrollable if content overflows */
}

@media screen and (max-width: 967px) {
    .grammar-check__input-section {
        position: static; /* Remove sticky on mobile */
    }
    
    .grammar-check__results-section {
        max-height: none; /* Remove height limit on mobile */
    }
}

.grammar-check__input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.grammar-check__section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin: 0;
}

.grammar-check__word-count {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    background: var(--body-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.grammar-check__textarea-container {
    margin-bottom: 1.5rem;
}

.grammar-check__textarea {
    width: 100%;
    height: 350px; /* Fixed height instead of min-height */
    background: var(--body-color);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    resize: none; /* Disable resize to maintain fixed layout */
    transition: border-color 0.3s ease;
}

.grammar-check__textarea:focus {
    outline: none;
    border-color: var(--first-color);
}

.grammar-check__textarea::placeholder {
    color: var(--text-color-light);
}

.grammar-check__textarea-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.grammar-check__char-count {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.grammar-check__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.grammar-check__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.grammar-check__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.grammar-check__btn--primary {
    background: var(--first-color);
    color: white;
}

.grammar-check__btn--primary:hover:not(:disabled) {
    background: var(--first-color-alt);
    transform: translateY(-2px);
}

.grammar-check__btn--secondary {
    background: hsl(174, 63%, 62%);
    color: white;
}

.grammar-check__btn--secondary:hover:not(:disabled) {
    background: hsl(174, 63%, 58%);
    transform: translateY(-2px);
}

.grammar-check__btn--outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color-light);
}

.grammar-check__btn--outline:hover:not(:disabled) {
    background: var(--text-color-light);
    color: var(--body-color);
    transform: translateY(-2px);
}

/* Results Section */
.grammar-check__results {
    min-height: 300px; /* Minimum height for consistency */
    max-height: 60vh; /* Limit height and make scrollable */
    overflow-y: auto;
}

/* Custom scrollbar for results */
.grammar-check__results::-webkit-scrollbar {
    width: 8px;
}

.grammar-check__results::-webkit-scrollbar-track {
    background: var(--body-color);
    border-radius: 4px;
}

.grammar-check__results::-webkit-scrollbar-thumb {
    background: var(--first-color);
    border-radius: 4px;
}

.grammar-check__results::-webkit-scrollbar-thumb:hover {
    background: var(--first-color-alt);
}

@media screen and (max-width: 967px) {
    .grammar-check__results {
        max-height: none; /* Remove height limit on mobile */
        overflow-y: visible;
    }
}

.grammar-check__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-color-light);
}

.grammar-check__placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--first-color);
}

.grammar-check__placeholder h4 {
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.grammar-check__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: hsl(356, 66%, 75%);
}

.grammar-check__error i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Grammar Results Styles */
.grammar-results__overview {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--body-color);
    border-radius: 0.75rem;
}

.grammar-results__score {
    flex-shrink: 0;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid;
    position: relative;
}

.score-circle.score-excellent {
    border-color: #28a745;
    color: #28a745;
}

.score-circle.score-good {
    border-color: #17a2b8;
    color: #17a2b8;
}

.score-circle.score-fair {
    border-color: #ffc107;
    color: #ffc107;
}

.score-circle.score-needs-improvement {
    border-color: #fd7e14;
    color: #fd7e14;
}

.score-circle.score-poor {
    border-color: #dc3545;
    color: #dc3545;
}

.score-value {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    line-height: 1;
}

.score-label {
    font-size: var(--small-font-size);
    opacity: 0.8;
}

.grammar-results__language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.grammar-results__section {
    margin-bottom: 2rem;
}

.grammar-results__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--title-color);
    margin-bottom: 1rem;
    font-size: var(--h3-font-size);
}

.grammar-results__title i {
    color: var(--first-color);
    font-size: 1.5em;
}

.grammar-results__subtitle {
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
}

/* Statistics Cards */
.stats__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stats__container--secondary {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.stat__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.stat__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--first-color) 0%, var(--first-color-alt) 100%);
}

.stat__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

/* Card Variants */
.stat__card--primary::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat__card--secondary::before {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.stat__card--accent::before {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.stat__card--success::before {
  background: linear-gradient(90deg, #56ab2f 0%, #a8e6cf 100%);
}

.stat__card--warning::before {
  background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
}

.stat__card--info::before {
  background: linear-gradient(90deg, #74b9ff 0%, #0984e3 100%);
}

.stat__card--purple::before {
  background: linear-gradient(90deg, #a29bfe 0%, #6c5ce7 100%);
}

.stat__card--orange::before {
  background: linear-gradient(90deg, #fd79a8 0%, #fdcb6e 100%);
}

.stat__card--gradient::before {
  background: linear-gradient(90deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/*=============== CREDIT WIDGET ===============*/
.nav__credits {
  position: relative;
  margin-right: 1rem;
}

.credits-widget {
  display: flex;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
  position: relative;
}

.credits-widget:hover {
  background-color: var(--container-color);
}

.credits-widget i {
  font-size: 1.25rem;
  color: var(--first-color);
  margin-right: 0.25rem;
}

.credits-widget.unlimited i {
  color: gold;
}

.unlimited-text {
  font-size: var(--small-font-size);
  color: gold;
  font-weight: var(--font-medium);
}

.credits-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  background: var(--container-color);
  border: 1px solid var(--first-color);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  min-width: 280px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: var(--z-tooltip);
  margin-top: 0.5rem;
}

.credits-widget:hover .credits-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

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

.credits-header h6 {
  margin: 0;
  color: var(--title-color);
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
}

.credits-header small {
  color: var(--text-color-light);
  font-size: var(--small-font-size);
}

.credits-list {
  padding: 0.75rem;
}

.credit-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  font-size: var(--small-font-size);
}

.credit-item span:first-child {
  color: var(--text-color);
}

.credit-item .badge {
  padding: 0.25rem 0.5rem;
  border-radius: 12px;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  color: white;
}

.badge.bg-success {
  background-color: #28a745;
}

.badge.bg-warning {
  background-color: #ffc107;
  color: #212529;
}

.badge.bg-danger {
  background-color: #dc3545;
}

.credits-footer {
  padding: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.credits-footer .btn {
  font-size: var(--small-font-size);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.3s ease;
}

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

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

/* Responsive design for credits widget */
@media screen and (max-width: 768px) {
  .nav__credits {
    margin-right: 0.5rem;
  }
  
  .credits-dropdown {
    min-width: 250px;
    right: -50px;
  }
  
  .credit-item {
    font-size: var(--smaller-font-size);
  }
}

@media screen and (max-width: 480px) {
  .credits-widget .unlimited-text {
    display: none;
  }
  
  .credits-dropdown {
    min-width: 220px;
    right: -80px;
  }
}

/*=============== LOGIN PROMPT FOR CHAT ===============*/
.login-prompt-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  background: var(--body-color);
  height: calc(100% - 60px);
  justify-content: center;
}

.login-prompt-message {
  max-width: 350px;
}

.login-prompt-message i {
  display: block;
  margin: 0 auto 1rem;
}

.login-prompt-message h3 {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
  margin-bottom: 1rem;
}

.login-prompt-message p {
  font-size: var(--normal-font-size);
  margin-bottom: 2rem;
  opacity: 0.8;
}

.login-prompt-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.login-prompt-buttons .button {
  min-width: 120px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

/* Responsive design for login prompt */
@media screen and (max-width: 768px) {
  .login-prompt-content {
    padding: 1.5rem;
  }
  
  .login-prompt-message {
    max-width: 100%;
  }
  
  .login-prompt-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .login-prompt-buttons .button {
    width: 100%;
    min-width: auto;
  }
}

@media screen and (max-width: 480px) {
  .login-prompt-content {
    padding: 1rem;
  }
  
  .login-prompt-message i {
    font-size: 2.5rem !important;
  }
  
  .login-prompt-message h3 {
    font-size: 1.25rem;
  }
  
  .login-prompt-message p {
    font-size: 0.9rem;
  }
}

/*=============== FLASHCARD BUTTONS ===============*/
.vocab-flashcard-btn {
  min-width: 85px !important;
  max-width: 85px !important;
  width: 85px !important;
  height: 38px !important;
  padding: 0.5rem 0.6rem !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  box-sizing: border-box !important;
  margin: 2px !important;
  transition: all 0.3s ease !important;
  border: none !important;
  border-radius: 0.5rem !important;
  cursor: pointer !important;
  background-color: var(--first-color) !important;
  color: var(--body-color) !important;
}

.vocab-flashcard-btn:hover {
  background-color: var(--first-color-alt) !important;
  transform: translateY(-1px) !important;
}

.vocab-flashcard-btn i {
  margin-right: 3px !important;
  font-size: 0.85rem !important;
  flex-shrink: 0 !important;
}

.vocab-flashcard-btn:disabled {
  opacity: 0.7 !important;
  cursor: not-allowed !important;
  transform: none !important;
}

/* Success state for added flashcards */
.vocab-flashcard-btn[style*="background-color: #28a745"] {
  background-color: #28a745 !important;
  color: white !important;
}

.vocab-flashcard-btn[style*="background-color: #28a745"]:hover {
  background-color: #218838 !important;
}

/* Ensure consistent spacing in vocabulary tables */
.vocabulary-table {
  table-layout: fixed !important;
}

.vocabulary-table td {
  padding: 0.75rem 0.5rem !important;
  vertical-align: middle !important;
  border: 1px solid var(--text-color-light) !important;
}

.vocabulary-table td:last-child {
  text-align: center !important;
  width: 100px !important;
  padding: 0.5rem !important;
}

.vocabulary-table th {
  padding: 0.75rem 0.5rem !important;
  text-align: center !important;
  border: 1px solid var(--text-color-light) !important;
}

.vocabulary-table th:last-child {
  width: 100px !important;
}

/*=============== STORIES & PODCASTS LIST STYLES ===============*/
.stories__container,
.podcasts__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.stories__header,
.podcasts__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  gap: 1rem;
}

.stories__actions,
.podcasts__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.stories__filters,
.podcasts__filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--container-color);
  border-radius: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

.filter__group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 150px;
}

.filter__group label {
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
  color: var(--text-color);
}

.filter__select {
  padding: 0.5rem;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background: var(--body-color);
  color: var(--text-color);
  font-size: var(--normal-font-size);
}

.stories__grid,
.podcasts__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1.5rem;
}

.story__card,
.podcast__card {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.story__card:hover,
.podcast__card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.story__card-header,
.podcast__card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.story__badges,
.podcast__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge {
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--smaller-font-size);
  font-weight: var(--font-medium);
  white-space: nowrap;
}

.badge--level {
  background: var(--first-color-light);
  color: var(--first-color);
}

.badge--language {
  background: var(--second-color-light);
  color: var(--second-color);
}

.badge--favorite {
  background: #ffebee;
  color: #c62828;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.favorite__btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: var(--text-color-light);
}

.favorite__btn:hover {
  background: var(--first-color-light);
  color: var(--first-color);
}

.favorite__btn i {
  font-size: 1.25rem;
}

.story__content,
.podcast__content {
  margin-bottom: 1rem;
}

.story__title,
.podcast__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.story__preview,
.podcast__preview {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.story__meta,
.podcast__meta {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}

.meta__item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

.meta__item i {
  font-size: 1rem;
}

.story__actions,
.podcast__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.podcast__player {
  margin-bottom: 1rem;
}

.audio__player {
  width: 100%;
  height: 40px;
}

.btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  font-size: var(--normal-font-size);
  font-weight: var(--font-medium);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

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

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

.btn--secondary {
  background: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.btn--secondary:hover {
  background: var(--first-color-light);
  color: var(--first-color);
}

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

.btn--accent:hover {
  background: var(--second-color-alt);
}

.btn--sm {
  padding: 0.375rem 0.75rem;
  font-size: var(--small-font-size);
}

.empty__state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-color-light);
}

.empty__icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  color: var(--first-color-light);
}

.empty__title {
  font-size: var(--h2-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 1rem;
}

.empty__description {
  font-size: var(--normal-font-size);
  margin-bottom: 2rem;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.empty__actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
  .stories__header,
  .podcasts__header {
    flex-direction: column;
    align-items: stretch;
  }
  
  .stories__filters,
  .podcasts__filters {
    flex-direction: column;
  }
  
  .filter__group {
    min-width: auto;
  }
  
  .stories__grid,
  .podcasts__grid {
    grid-template-columns: 1fr;
  }
  
  .story__actions,
  .podcast__actions {
    flex-direction: column;
  }
  
  .empty__actions {
    flex-direction: column;
    align-items: center;
  }
}

@media screen and (max-width: 480px) {
  .stories__container,
  .podcasts__container {
    padding: 1rem 0.5rem;
  }
  
  .story__card,
  .podcast__card {
    padding: 1rem;
  }
  
  .story__meta,
  .podcast__meta {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/*=============== STORY & PODCAST VIEW STYLES ===============*/
.story-view__container,
.podcast-view__container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.story-view__header,
.podcast-view__header {
  margin-bottom: 2rem;
}

.story-view__breadcrumb,
.podcast-view__breadcrumb {
  margin-bottom: 1rem;
}

.breadcrumb__link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-color-light);
  text-decoration: none;
  font-size: var(--normal-font-size);
  transition: color 0.3s ease;
}

.breadcrumb__link:hover {
  color: var(--first-color);
}

.story-view__meta,
.podcast-view__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.story-view__badges,
.podcast-view__badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.badge--words,
.badge--duration {
  background: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.story-view__actions,
.podcast-view__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.btn--favorite {
  background: #ffebee !important;
  color: #c62828 !important;
}

.story-view__content,
.podcast-view__content {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.content__section {
  background: var(--container-color);
  border-radius: 1rem;
  padding: 2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.vocabulary__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.vocab__card {
  background: var(--body-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.vocab__card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.language-tag {
  background: var(--first-color-light);
  color: var(--first-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.vocab-count {
  background: var(--second-color-light);
  color: var(--second-color);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: var(--small-font-size);
  font-weight: var(--font-medium);
}

.audio__controls,
.transcript__actions,
.vocab__actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.audio__btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 0.5rem;
  background: var(--first-color);
  color: var(--white-color);
  font-size: var(--small-font-size);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio__btn:hover {
  background: var(--first-color-alt);
  transform: translateY(-2px);
}

.audio__btn--secondary {
  background: var(--container-color);
  color: var(--text-color);
  border: 1px solid var(--border-color);
}

.audio__btn--secondary:hover {
  background: var(--first-color-light);
  color: var(--first-color);
}

.podcast__main {
  text-align: center;
}

.podcast__title {
  font-size: var(--h1-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.podcast__player-main {
  max-width: 600px;
  margin: 0 auto;
}

.audio__controls-main {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.audio__btn--download,
.audio__btn--speed {
  background: var(--second-color);
  color: var(--white-color);
}

.audio__btn--download:hover,
.audio__btn--speed:hover {
  background: var(--second-color-alt);
}

.podcast__transcript {
  font-size: var(--normal-font-size);
  line-height: 1.8;
  color: var(--text-color);
  text-align: justify;
}

.podcast__transcript p {
  margin-bottom: 1rem;
}

.vocab__word {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.vocab__word h3 {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semi-bold);
  color: var(--title-color);
}

.vocab__favorite {
  background: var(--first-color-light);
  color: var(--first-color);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.vocab__favorite:hover {
  background: var(--first-color);
  color: var(--white-color);
}

.vocab__definition,
.vocab__synonym,
.vocab__examples {
  margin-bottom: 0.75rem;
  font-size: var(--normal-font-size);
  color: var(--text-color);
}

.vocab__definition p,
.vocab__synonym p,
.vocab__examples p {
  margin-bottom: 0.5rem;
}

/* Related Actions */
.related__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
}

.action__card {
  background: var(--body-color);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-decoration: none;
  color: var(--text-color);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.action__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.action__icon {
  background: var(--first-color-light);
  color: var(--first-color);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.action__content {
  flex: 1;
}

.action__title {
  font-size: var(--h3-font-size);
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.5rem;
}

.action__description {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  line-height: 1.5;
}

.action__badge {
  display: inline-block;
  background: var(--first-color);
  color: white;
  font-size: var(--tiny-font-size);
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  margin-top: 0.5rem;
  font-weight: var(--font-medium);
}

.action__arrow {
  font-size: 1.5rem;
  color: var(--first-color);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.action__card:hover .action__arrow {
  transform: translateX(4px);
}

/* Todo List Styles */
.todo__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.todo__header {
    text-align: center;
    margin-bottom: 3rem;
}

.todo__title {
    font-size: var(--h1-font-size);
    color: var(--title-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.todo__title i {
    font-size: 1.5rem;
    color: var(--first-color);
}

.todo__subtitle {
    font-size: var(--h3-font-size);
    color: var(--text-color-light);
    font-weight: var(--font-medium);
}

/* Progress Section */
.todo__progress-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

.todo__progress-card {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px hsla(var(--second-hue), 48%, 8%, 0.25);
    transition: transform 0.3s ease;
}

.todo__progress-card:hover {
    transform: translateY(-2px);
}

.todo__progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.todo__progress-header h3 {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin: 0;
}

.todo__progress-percentage {
    font-size: var(--h2-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
}

.todo__progress-bar {
    width: 100%;
    height: 12px;
    background: var(--text-color-lighten);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.todo__progress-fill {
    height: 100%;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    border-radius: 6px;
    transition: width 0.5s ease;
    position: relative;
}

.todo__progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.todo__progress-text {
    color: var(--text-color);
    font-size: var(--normal-font-size);
    text-align: center;
    margin: 0;
    font-weight: var(--font-medium);
}

/* Weekly Chart */
.todo__weekly-chart {
    background: var(--container-color);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: 0 4px 12px hsla(var(--second-hue), 48%, 8%, 0.25);
}

.todo__weekly-chart h4 {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin-bottom: 1.5rem;
    text-align: center;
}

.todo__chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 120px;
    gap: 0.5rem;
}

.todo__chart-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
}

.todo__chart-fill {
    width: 100%;
    background: linear-gradient(180deg, var(--first-color), var(--first-color-alt));
    border-radius: 4px 4px 0 0;
    min-height: 4px;
    transition: height 0.3s ease;
}

.todo__chart-label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-top: 0.5rem;
    font-weight: var(--font-medium);
}

/* Tasks Section */
.todo__tasks-section {
    margin-bottom: 3rem;
}

.todo__tasks-title {
    color: var(--title-color);
    font-size: var(--h2-font-size);
    margin-bottom: 2rem;
    text-align: center;
}

.todo__tasks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
}

.todo__task-card {
    background: var(--container-color);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 12px hsla(var(--second-hue), 48%, 8%, 0.25);
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.todo__task-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px hsla(var(--second-hue), 48%, 8%, 0.35);
}

.todo__task-card.completed {
    border-color: var(--first-color);
    /* background: linear-gradient(180deg, 
              hsla(var(--first-hue), var(--sat), var(--lig), 1),
              hsla(var(--first-hue), var(--sat), var(--lig), 0.2)); */
}

.todo__task-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.todo__task-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
}

.todo__task-info {
    flex: 1;
}

.todo__task-title {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin-bottom: 0.5rem;
    font-weight: var(--font-semi-bold);
}

.todo__task-description {
    color: var(--text-color);
    font-size: var(--normal-font-size);
    line-height: 1.5;
    margin: 0;
}

.todo__task-actions {
    flex-shrink: 0;
}

.todo__task-toggle {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color-light);
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 50%;
}

.todo__task-toggle:hover {
    color: var(--first-color);
    background: hsla(var(--first-hue), 100%, 60%, 0.1);
}

.todo__task-card.completed .todo__task-toggle {
    color: var(--first-color);
}

.todo__task-completed {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--text-color-lighten);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color-light);
    font-size: var(--small-font-size);
}

/* Actions Section */
.todo__actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.todo__action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--container-color);
    color: var(--text-color);
    text-decoration: none;
    border-radius: 0.75rem;
    font-weight: var(--font-medium);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.todo__action-btn:hover {
    background: var(--first-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px hsla(var(--first-hue), var(--sat), var(--lig), 0.3);
}

.todo__action-btn i {
    font-size: 1.25rem;
}

/* Profile Todo Progress Styles */
.todo__progress-container {
    margin-bottom: 2rem;
}

.todo__progress-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.todo__progress-actions {
    margin-left: 1rem;
}

.btn--small {
    padding: 0.5rem 1rem;
    font-size: var(--small-font-size);
}

.todo__progress-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1rem;
}

.todo__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.todo__stat-label {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    margin-bottom: 0.25rem;
}

.todo__stat-value {
    font-size: var(--h3-font-size);
    font-weight: var(--font-semi-bold);
    color: var(--first-color);
}

.todo__weekly-mini-chart {
    display: flex;
    gap: 0.25rem;
    align-items: end;
    height: 40px;
}

.todo__mini-bar {
    width: 6px;
    background: linear-gradient(180deg, var(--first-color), var(--first-color-alt));
    border-radius: 2px;
    min-height: 2px;
    transition: height 0.3s ease;
}

/* Daily Action Card Styles */
.action__card--daily {
    border: 2px solid var(--first-color);
    background: linear-gradient(135deg, var(--container-color), hsla(var(--first-hue), 8%, 95%, 1));
}

.action__card--daily:hover {
    background: linear-gradient(135deg, var(--first-color), var(--first-color-alt));
    color: white;
}

.action__card--daily:hover .action__icon {
    background: rgba(255, 255, 255, 0.2);
    color: white;
}

.action__card--daily:hover .action__content h3,
.action__card--daily:hover .action__content p,
.action__card--daily:hover .action__progress {
    color: white;
}

.action__progress {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--first-color);
    color: white;
    border-radius: 1rem;
    font-size: var(--small-font-size);
    font-weight: var(--font-medium);
    margin-top: 0.5rem;
}

/* No Tasks Message */
.todo__no-tasks {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--container-color);
    border-radius: 1rem;
    box-shadow: 0 4px 12px hsla(var(--second-hue), 48%, 8%, 0.25);
}

.todo__no-tasks-icon {
    font-size: 4rem;
    color: var(--text-color-light);
    margin-bottom: 1rem;
}

.todo__no-tasks h4 {
    color: var(--title-color);
    font-size: var(--h2-font-size);
    margin-bottom: 1rem;
}

.todo__no-tasks p {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.todo__no-tasks-actions {
    margin-top: 2rem;
}

/* Task Management */
.todo__tasks-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.todo__tasks-title {
    color: var(--title-color);
    font-size: var(--h2-font-size);
    margin: 0;
}

.todo__task-edit,
.todo__task-delete {
    background: none;
    border: none;
    font-size: 1.25rem;
    padding: 0.5rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
}

.todo__task-edit {
    color: var(--first-color);
}

.todo__task-edit:hover {
    background: hsla(var(--first-hue), 100%, 60%, 0.1);
}

.todo__task-delete {
    color: #ff6b6b;
}

.todo__task-delete:hover {
    background: hsla(0, 70%, 60%, 0.1);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal__content {
    background: var(--container-color);
    border-radius: 1rem;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 8px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.modal__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--text-color-lighten);
}

.modal__header h3 {
    color: var(--title-color);
    font-size: var(--h3-font-size);
    margin: 0;
}

.modal__close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-color-light);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal__close:hover {
    background: var(--text-color-lighten);
    color: var(--text-color);
}

.modal__form {
    padding: 2rem;
}

.form__group {
    margin-bottom: 1.5rem;
}

.form__group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--title-color);
    font-weight: var(--font-medium);
}

.form__group input,
.form__group textarea,
.form__group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--text-color-lighten);
    border-radius: 0.5rem;
    background: var(--container-color);
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    transition: border-color 0.3s ease;
}

.form__group input:focus,
.form__group textarea:focus,
.form__group select:focus {
    outline: none;
    border-color: var(--first-color);
}

.form__group textarea {
    resize: vertical;
    min-height: 80px;
}

.modal__actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

/*=============== GRAMMAR CHECKER STYLES ===============*/
.grammar-check {
    padding: 2rem 0;
}

.grammar-check__header {
    text-align: center;
    margin-bottom: 3rem;
}

.grammar-check__description {
    max-width: 600px;
    margin: 1rem auto 0;
    color: var(--text-color-light);
    line-height: 1.6;
}

/* Wide container for better screen utilization */
.grammar-check__wide-container {
    max-width: 95%;
    margin: 0 auto;
    padding: 0 1rem;
}

@media screen and (min-width: 968px) {
    .grammar-check__wide-container {
        max-width: 85%;
        padding: 0 2rem;
    }
}

.grammar-check__container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start; /* Prevent equal height columns */
}

@media screen and (min-width: 968px) {
    .grammar-check__container {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

/* Input Section - Fixed size */
.grammar-check__input-section {
    background: var(--container-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content; /* Prevent stretching */
    position: sticky;
    top: 2rem; /* Stick to top when scrolling on desktop */
}

/* Results Section - Scrollable */
.grammar-check__results-section {
    background: var(--container-color);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    height: fit-content;
    max-height: 80vh; /* Limit height on large screens */
    overflow-y: auto; /* Make scrollable if content overflows */
}

@media screen and (max-width: 967px) {
    .grammar-check__input-section {
        position: static; /* Remove sticky on mobile */
    }
    
    .grammar-check__results-section {
        max-height: none; /* Remove height limit on mobile */
    }
}

.grammar-check__input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.grammar-check__section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--h3-font-size);
    color: var(--title-color);
    margin: 0;
}

.grammar-check__word-count {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
    background: var(--body-color);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.grammar-check__textarea-container {
    margin-bottom: 1.5rem;
}

.grammar-check__textarea {
    width: 100%;
    height: 350px; /* Fixed height instead of min-height */
    background: var(--body-color);
    border: 2px solid transparent;
    border-radius: 0.75rem;
    padding: 1.5rem;
    color: var(--text-color);
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    resize: none; /* Disable resize to maintain fixed layout */
    transition: border-color 0.3s ease;
}

.grammar-check__textarea:focus {
    outline: none;
    border-color: var(--first-color);
}

.grammar-check__textarea::placeholder {
    color: var(--text-color-light);
}

.grammar-check__textarea-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.grammar-check__char-count {
    font-size: var(--small-font-size);
    color: var(--text-color-light);
}

.grammar-check__buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.grammar-check__btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    border: none;
    border-radius: 0.5rem;
    font-family: var(--body-font);
    font-size: var(--normal-font-size);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.grammar-check__btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.grammar-check__btn--primary {
    background: var(--first-color);
    color: white;
}

.grammar-check__btn--primary:hover:not(:disabled) {
    background: var(--first-color-alt);
    transform: translateY(-2px);
}

.grammar-check__btn--secondary {
    background: hsl(174, 63%, 62%);
    color: white;
}

.grammar-check__btn--secondary:hover:not(:disabled) {
    background: hsl(174, 63%, 58%);
    transform: translateY(-2px);
}

.grammar-check__btn--outline {
    background: transparent;
    color: var(--text-color);
    border: 2px solid var(--text-color-light);
}

.grammar-check__btn--outline:hover:not(:disabled) {
    background: var(--text-color-light);
    color: var(--body-color);
    transform: translateY(-2px);
}

/* Results Section */
.grammar-check__results {
    min-height: 300px; /* Minimum height for consistency */
    max-height: 60vh; /* Limit height and make scrollable */
    overflow-y: auto;
}

/* Custom scrollbar for results */
.grammar-check__results::-webkit-scrollbar {
    width: 8px;
}

.grammar-check__results::-webkit-scrollbar-track {
    background: var(--body-color);
    border-radius: 4px;
}

.grammar-check__results::-webkit-scrollbar-thumb {
    background: var(--first-color);
    border-radius: 4px;
}

.grammar-check__results::-webkit-scrollbar-thumb:hover {
    background: var(--first-color-alt);
}

@media screen and (max-width: 967px) {
    .grammar-check__results {
        max-height: none; /* Remove height limit on mobile */
        overflow-y: visible;
    }
}

.grammar-check__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 100%;
    min-height: 300px;
    color: var(--text-color-light);
}

.grammar-check__placeholder i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--first-color);
}

.grammar-check__placeholder h4 {
    color: var(--title-color);
    margin-bottom: 0.5rem;
}

.grammar-check__error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    color: hsl(356, 66%, 75%);
}

.grammar-check__error i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

/* Grammar Results Styles */
.grammar-results__overview {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: var(--body-color);
    border-radius: 0.75rem;
}

.grammar-results__score {
    flex-shrink: 0;
}

.score-circle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid;
    position: relative;
}

.score-circle.score-excellent {
    border-color: #28a745;
    color: #28a745;
}

.score-circle.score-good {
    border-color: #17a2b8;
    color: #17a2b8;
}

.score-circle.score-fair {
    border-color: #ffc107;
    color: #ffc107;
}

.score-circle.score-needs-improvement {
    border-color: #fd7e14;
    color: #fd7e14;
}

.score-circle.score-poor {
    border-color: #dc3545;
    color: #dc3545;
}

.score-value {
    font-size: 1.5rem;
    font-weight: var(--font-semibold);
    line-height: 1;
}

.score-label {
    font-size: var(--small-font-size);
    opacity: 0.8;
}

.grammar-results__language {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-color);
}

.grammar-results__section {
    margin-bottom: 2rem;
}

.grammar-results__title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--title-color);
    margin-bottom: 1rem;
    font-size: var(--h3-font-size);
}

.grammar-results__title i {
    color: var(--first-color);
    font-size: 1.5em;
}

.grammar-results__subtitle {
    color: var(--text-color-light);
    font-size: var(--normal-font-size);
}

/* Statistics Cards */
.stats__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.stats__container--secondary {
  margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.stat__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.stat__card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--first-color) 0%, var(--first-color-alt) 100%);
}

.stat__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

/* Card Variants */
.stat__card--primary::before {
  background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.stat__card--secondary::before {
  background: linear-gradient(90deg, #f093fb 0%, #f5576c 100%);
}

.stat__card--accent::before {
  background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
}

.stat__card--success::before {
  background: linear-gradient(90deg, #56ab2f 0%, #a8e6cf 100%);
}

.stat__card--warning::before {
  background: linear-gradient(90deg, #f7971e 0%, #ffd200 100%);
}

.stat__card--info::before {
  background: linear-gradient(90deg, #74b9ff 0%, #0984e3 100%);
}

.stat__card--purple::before {
  background: linear-gradient(90deg, #a29bfe 0%, #6c5ce7 100%);
}

.stat__card--orange::before {
  background: linear-gradient(90deg, #fd79a8 0%, #fdcb6e 100%);
}

.stat__card--gradient::before {
  background: linear-gradient(90deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e 100%);
}

/* Gradient variant icon */
.stat__card--gradient .stat__icon {
  background: linear-gradient(135deg, #ff7675 0%, #74b9ff 50%, #00b894 100%);
}

.stat__content {
  flex: 1;
}

.stat__number {
  font-size: 2.5rem;
  font-weight: var(--font-semibold);
  color: var(--title-color);
  margin-bottom: 0.25rem;
}

.stat__label {
  color: var(--text-color);
  font-size: var(--normal-font-size);
  margin-bottom: 0.5rem;
}

.stat__trend {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: var(--small-font-size);
  color: var(--text-color-light);
}

/* Trend Colors */
.trend-up {
  color: #4CAF50 !important;
}

.trend-up i {
  color: #4CAF50 !important;
}

.trend-down {
  color: #f44336 !important;
}

.trend-down i {
  color: #f44336 !important;
}

.trend-neutral {
  color: var(--text-color-light) !important;
}

.trend-neutral i {
  color: var(--text-color-light) !important;
}

.trend-success {
  color: #56ab2f !important;
}

.trend-success i {
  color: #56ab2f !important;
}

.trend-warning {
  color: #f7971e !important;
}

.trend-warning i {
  color: #f7971e !important;
}

.trend-info {
  color: #74b9ff !important;
}

.trend-info i {
  color: #74b9ff !important;
}

/* Action Cards */
.actions__container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.action__card {
  background: var(--container-color);
  border-radius: 1.25rem;
  padding: 2rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 16px hsla(var(--second-hue), 48%, 8%, 0.1);
}

.action__card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  transition: left 0.6s ease;
}

.action__card:hover::after {
  left: 100%;
}

.action__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px hsla(var(--second-hue), 48%, 8%, 0.2);
}

.action__card--featured {
  border: 2px solid var(--first-color);
  background: linear-gradient(135deg, var(--container-color) 0%, hsla(var(--first-hue), var(--sat), 20%, 0.1) 100%);
}

.action__icon {
  width: 60px;
  height: 60px;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  background: linear-gradient(135deg, var(--first-color) 0%, var(--first-color-alt) 100%);
  color: white;
}

/* Success variant icon */
.stat__card--success .stat__icon {
  background: linear-gradient(135deg, #56ab2f 0%, #a8e6cf 100%);
}

/* Warning variant icon */
.stat__card--warning .stat__icon {
  background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
}

/* Info variant icon */
.stat__card--info .stat__icon {
  background: linear-gradient(135deg, #74b9ff 0%, #0984e3 100%);
}

/* Purple variant icon */
.stat__card--purple .stat__icon {
  background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
}

/* Orange variant icon */
.stat__card--orange .stat__icon {
  background: linear-gradient(135deg, #fd79a8 0%, #fdcb6e);