
* {
    margin: 0%;
    padding: 0
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

:root {
    --primary-color: #4A90E2;
    --primary-hover: #357ABD;
    --dark-color: #2c3d4d;
    --light-gray: #f8f9fa;
    --text-color: #000000;
    --border-color: #ddd; /* 🌟 FIX: Lighter border color */
}

body {
    background: linear-gradient(-45deg, #f4f7fc, #f8f9fa, #eef1f5, #f8f9fa);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    color: var(--text-color);
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

header {
    text-align: center;
    margin: 40px 0 15px;
    padding: 0 15px;
}

header h1 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 8px;
    font-weight: 700;
}

header h1 i {
    color: var(--primary-color);
}

header p {
    font-size: 1.1rem;
    color: var(--text-color);
    max-width: 600px;
}

/* 🌟 English Motivational Line */
.motivation {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--primary-color);
    margin: -5px 0 25px 0;
    font-style: italic;
}

main.container {
    width: 95%;
    max-width: 1400px;
    margin: 0 auto;
}

.controls {
    
    display: flex;
    margin-left: 5px;
    gap: 15px;
    flex-wrap:5px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 20px;
    

}

.control-group {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 8px;
    
    
}

select, button {
    padding: 12px 20px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 620;
    border: none;
    outline: none;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
   
    
}

select {
    background: #ffffff;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23007bff%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
    background-repeat: no-repeat;
    background-position: right 15px center;
    background-size: 10px;
    padding-right: 40px;
}

button {
    background-color: var(--primary-color);
    color: rgb(255, 255, 255);
    border: none;
    box-shadow: 0 4px 10px rgba(18, 75, 141, 0.3);
}

button:hover {
    background-color: rgb(22, 130, 0);
   color: #ffffff;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 16, 35, 0.859);
}

button i {
    margin-right: 8px;
}

.tracker-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0);
    display: flex;
    justify-content: center;
    align-items: center
}

#tracker {
   
    padding: 5px;
    width: 297mm; /* A4 Landscape Width */
    min-height: 200mm;

    position: relative;
}

.title {
    text-align: center;
    font-weight: 620;
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.titlemo {
    text-align: left;
    font-weight: 600;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

table {
    border-collapse: collapse;
    width: 95%;
    font-size: 0.70rem;
}

.techwage {

    text-align: left;
    font-weight: 500;
    color: #b4b4b4fb;
    font-size: 10px;
    margin-top: 60px;

    display: block;
        position: absolute;
    
        opacity: 0.8;
        z-index: 1000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;

}

/* 🌟 FIX: Changed to a thinner, lighter border for screen and PDF */
th, td {
    border: 0.2px solid #000000;
    text-align: center;
    padding: 6px;
    vertical-align: middle;

    
}

th {
    background-color: #ffffff;
    font-weight: 600;
}

/* 🌟 FIX: Added min-height for blank editable cells */
td.habit-name {
    text-align: left;
    padding: 7px 7px;
    font-weight: 600;
    color: var(--dark-color);
    background: #ffffff;
    cursor: text;
    transition: all 0.2s ease;
    min-height: 32px;
}

td.habit-name:focus {
    background: #f8f8f8;
    outline: 2px solid var(--primary-color);
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.content-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 15px;
    text-align: center;
}

.content-section h2 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.content-section h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--primary-color);
    border-radius: 2px;
    margin: 8px auto 0;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    text-align: left;
}

.card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
    border: 1px solid #eee;
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 15px;
}

.card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--dark-color);
    margin-top: 0;
    margin-bottom: 10px;
}

/* FAQ Styles */
.faq-item {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 10px;
    text-align: left;
    border: 1px solid #eee;
}

.faq-item summary {
    padding: 18px 20px;
    font-weight: 600;
    color: var(--dark-color);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
}

.faq-item summary:hover {
    background: #f9f9f9;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::after {
    content: '\F282'; /* Bootstrap Icon: plus-lg */
    font-family: 'bootstrap-icons';
    font-weight: 900;
    font-size: 0.9rem;
    transition: transform 0.3s ease;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    padding: 0 20px 20px;
    margin: 0;
    line-height: 1.7;
    border-top: 1px solid #eee;
}

.reviews {
    margin: 40px auto;
    text-align: center;
}

.review-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.review-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    flex-basis: 300px;
    flex-grow: 1;
    text-align: left;
}

.review-card h4 {
    margin: 5px 0;
    color: var(--primary-color);
}

.review-card p {
    font-size: 0.9rem;
    line-height: 1.6;
}

footer {
    margin-top: 50px;
    text-align: center;
    background: var(--dark-color);
    color: white;
    padding: 15px 15px;
    width: 100%;
}

footer p {
    margin: 5px 0;
}

footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}
footer a:hover {
    text-decoration: underline;
   
}



@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    header p, .motivation {
        font-size: 1rem;
    }
    .controls {
        flex-direction: column;
        width: 90%;
    }
    .control-group {
        width: 100%;
        justify-content: space-between;
    }
    select { flex-grow: 1; }
    button { width: 100%; padding: 12px; }
}

@media print {
    body {
        background: none;
    }
    body * {
        visibility: hidden;
    }
    #tracker, #tracker * {
        visibility: visible;
    }
    #tracker {
        position: relative;
        left: 0;
        top: 0;
        margin: 0;
        width: 100%;
        height: 100%;
        box-shadow: none;
        border: none;
    }
    
    /* 🌟 FIX: PDF/Print borders set to be very thin */
    #tracker th, #tracker td {
        border: 0.5px solid #aaa !important;
    }
    
    td.habit-name {
        background: #fff !important;
        color: #000 !important;
    }

    .print-watermark {
        display: block;
        position: absolute;
        bottom: 10px;
        right: 15px;
        font-size: 9pt;
        color: #aaaaaa;
        opacity: 0.8;
        z-index: 1000;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

}





.header {
  position: fixed
  top: 0;
  width: 100%;
  box-shadow: 0 4px 20px hsla(207, 24%, 35%, 0.1);
  background-color: #151418;
  z-index: 1;
  margin: 0;

}

.header a{
  text-decoration: none;
  color: #fff;
}

.header ul {
  list-style: none;
    display: flex;

    justify-content: space-between;
   align-items: center;
   dropshadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
}
nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 30px;
}

.logo a {
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
}

.logo a span {
  color: #39fa60;
}

.menu {
  display: flex;
  justify-content: center;
  align-items: center;
}

.menu a {
  display: block;
  padding: 7px 15px;
  font-size: 17px;
  font-weight: 500;
  transition: 0.2s all ease-in-out;
  color: #fff;
}

.menu:hover a {
  opacity: 0.4;
}

.menu a:hover {
  opacity: 1;
  color: #fff;
}

.menu-icon {
  display: none;
}

#menu-toggle {
  display: none;
}

#menu-toggle:checked ~ .menu {
  transform: scale(1, 1);
}

@media only screen and (max-width: 950px) {
  .menu {
    flex-direction: column;
    background-color: #000000da;
    align-items: start;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    z-index: 1;
    transform: scale(1, 0);
    transform-origin: top;
    transition: transform 0.3s ease-in-out;
    box-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
    backdrop-filter: blur(10px);
  }

  .menu a {
    margin-left: 12px;
  }

  .menu li {
    margin-bottom: 10px;
  }

  .menu-icon {
    display: block;
    color: #fff;
    font-size: 28px;
    cursor: pointer;
  }
}
@media only screen and (max-width: 600px) {
  .logo a {
    font-size: 20px;

  }
  .menu a {
    font-size: 16px;
  }

}

