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

html, body {
    height: 100%;
    font-family: 'Arial', sans-serif;
    background: linear-gradient(to right, #0e3d43, #06031a); 
    color: #e0e0e0;
    overflow-x: hidden;
}

/* ==== SIDEBAR ==== */
ul {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 240px;
    background: rgba(18, 24, 32, 0.9);
    backdrop-filter: blur(10px);
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 30px;
    list-style: none;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.6);
}

/* ==== SIDEBAR LINKS ==== */
ul li {
    margin-bottom: 10px;
}

.countdown {
    color: black;
}

/* ==== SPRINT ITEM LAYOUT ==== */
.sprint-items .backlog-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.sprint-items .backlog-item .story-details {
    margin-top: 6px;
    padding-left: 0;
}

/* Tighten spacing between countdown and sprint header */
.sprint-items #countdown {
    margin-bottom: 4px;
}
.sprint-items .backlog-title {
    margin-top: 0;
    margin-bottom: 8px;
}

/* ==== MENU LINKS ==== */
ul li a.menu {
    display: block;
    padding: 16px 24px;
    text-decoration: none;
    color: #d0d6db;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    border-left: 4px solid transparent;
}

ul li a.menu:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    border-left: 4px solid #04AA6D;
}

ul li a.active {
    background-color: #045e4d;
    color: #ffffff;
    border-left: 4px solid #04AA6D;
}

/* ==== MAIN CONTENT ==== */
.main {
    margin-left: 240px;
    padding: 60px 40px;
}

/* ==== TYPOGRAPHY ==== */
h1 {
    text-align: center;
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: 1px;
}

.title {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
}

h2 {
    text-align: center;
    margin-bottom: 10px;
    color: #ffffff;
    letter-spacing: 1px;
}

hr {
    height: 2px;
    width: 60px;
    background-color: #04AA6D;
    border: none;
    margin: 20px auto;
    border-radius: 2px;
}

p {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    font-size: 18px;
    line-height: 1.8;
    color: #cfcfcf;
}

.ez {
    color: #89f1ff;
}

/* ==== TEAM SECTION ==== */
.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
}

.team-member {
    text-align: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    max-width: 280px;
    width: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.team-member:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 18px rgba(0,0,0,0.4);
}

.team-member img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 15px;
}

.team-member .name {
    font-size: 20px;
    font-weight: bold;
    color: #ffffff;
    margin-bottom: 5px;
}

.team-member .role {
    font-size: 16px;
    color: #aad9db;
    margin-bottom: 5px;
}

.team-member .email {
    font-size: 14px;
    color: #4f8cff;
    text-decoration-line: underline;
    word-break: break-word;
}

/* ==== BACKLOG CONTAINER ==== */
.backlog-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 40px;
    flex-wrap: nowrap;
    padding: 20px 40px 100px;
    box-sizing: border-box;
}

/* ==== BACKLOG BOXES ==== */
.product-backlog, .sprint-items {
    background-color: #e0e0e0;
    border-radius: 25px;
    width: 400px;
    min-height: 600px;
    padding: 30px 20px 20px;
    border: 3px solid black;
    box-shadow: 0 8px 20px rgba(255, 255, 255, 0.163);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.backlog-title {
    color: black;
    font-size: 24px;
    text-align: center;
    margin-bottom: 20px;
}

/* ==== BACKLOG ITEMS ==== */
.backlog-items {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.backlog-item {
    background-color: #111;
    color: white;
    padding: 12px 16px;
    border-radius: 999px;
    font-size: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 500;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.backlog-item small {
    display: block;
    color: #333;
    font-size: 12px;
    margin-top: 4px;
}

/* ==== BUTTONS + PAGINATION ==== */
.backlog-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: 20px;
}

.backlog-btn {
    background-color: #5a4bcf;
    color: white;
    border: none;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.backlog-btn:hover {
    background-color: #4638b3;
}

.arrow-btn {
    font-size: 20px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0 10px;
    color: #333;
    transition: color 0.2s ease;
}

.arrow-btn:hover {
    color: #111;
}

.page-label {
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.other-pages-info {
    font-size: 13px;
    color: black;     
    margin-left: auto;
    font-style: italic;
}

/* ==== Sprint selectors container ==== */
.sprint-selectors {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

/* Active sprint button styling */
.sprint-btn {
    background-color: #4638b3;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}

.active-sprint-btn {
    background-color: #01BF30;
}

.close-btn {
    color: red;
}

/* ==== CHECKMARK IMAGE ==== */
.checkmark {
    margin-left: 10px;
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: opacity 0.3s ease, filter 0.3s ease;
    opacity: 1;
    filter: grayscale(0);
}

.checkmark.inactive {
    opacity: 0.4;
    filter: grayscale(0.75);
}

/* ==== BACKLOG ITEM CHECKED STATE ==== */
.backlog-item.checked {
    opacity: 0.6;
    text-decoration: line-through;
    color: #999;
    transition: opacity 0.3s ease, color 0.3s ease, text-decoration 0.3s ease;
}

.editable-input {
    flex-grow: 1;
    border: none;
    outline: none;
    background: transparent;
    font-size: 1rem;
    font-family: inherit;
    margin-right: 8px;
    color: white;
}

/* ==== RESPONSIVE ==== */
@media screen and (max-width: 1024px) {
    .backlog-container {
        flex-wrap: wrap;
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }

    .product-backlog, .sprint-items {
        width: 90%;
        min-height: auto;
    }
}

@media screen and (max-width: 768px) {
    ul {
        position: relative;
        width: 100%;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        backdrop-filter: blur(8px);
    }

    ul li {
        margin-bottom: 0;
    }

    ul li a {
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 14px;
    }

    ul li a.active {
        border-bottom: 3px solid #04AA6D;
        background-color: transparent;
    }

    .main {
        margin-left: 0;
        padding: 40px 20px;
    }

    h1 {
        font-size: 36px;
    }

    p {
        font-size: 16px;
    }
}

@media screen and (max-width: 480px) {
    ul {
        flex-direction: column;
        align-items: center;
    }

    ul li a {
        padding: 12px 20px;
        font-size: 14px;
    }

    .team-member {
        width: 90%;
        max-width: none;
    }

    .team-member img {
        width: 150px;
        height: 150px;
    }

    .backlog-container {
        flex-direction: column;
        align-items: center;
    }
}

.page-controls {
  flex-basis: 100%;       /* takes full width in the footer flexbox */
  display: flex;
  justify-content: center; /* center arrows + label */
  align-items: center;
  gap: 8px;                /* space between elements */
  margin-top: 4px;
}

.page-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.arrow-btn-action {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0 10px;
  color: #00ed3b;
  transition: color 0.2s ease;
}

.story-details {
  font-size: 0.85em;
  color: #ccc;
  margin-top: 4px;
  padding-left: 10px;
}

.story-title {
  font-weight: bold;
}

.story-details {
  display: block; /* or flex-direction: column if using flex */
  margin-top: 5px;
  color:black;
}

.save-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 10px 14px;
  font-size: 14px;
  background-color: #6c63ff;
  color: white;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.save-btn:hover {
  background-color: #574b90;
}

.help-link {
  position: absolute;
  bottom: 10px;
  left: 280px;
  background-color: #ffcc00;
  color: black;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: bold;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background-color 0.3s;
}

.help-link:hover {
  background-color: #ffaa00;
}

/* ==== PRICING PLANS ==== */
.pricing-container {
    display: flex;
    justify-content: center;
    align-items: stretch; /* Makes cards have equal height */
    gap: 30px;
    padding: 40px;
    flex-wrap: wrap; /* Allows cards to wrap on smaller screens */
  }
  
  .pricing-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    flex: 1; /* Allows cards to grow and shrink */
    max-width: 350px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }
  
  .pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.4);
  }
  
  .pricing-card.pro-card {
    background: #04AA6D;
    color: #fff;
  }
  
  .pricing-card.pro-card .price {
    color: #fff;
  }
  
  .pricing-card h2 {
    font-size: 28px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #fff;
  }
  
  .price {
    font-size: 60px;
    font-weight: 700;
    color: #04AA6D;
    margin-bottom: 20px;
  }
  
  .per-month {
    font-size: 18px;
    font-weight: normal;
    color: #ccc;
  }
  
  .plan-details p {
    margin-bottom: 10px;
    font-size: 16px;
    color: #e0e0e0;
    text-align: center;
  }
  
  .pricing-card.pro-card .plan-details p {
    color: #fff;
  }
  
  .select-btn {
    display: block;
    width: 100%;
    padding: 12px 20px;
    margin-top: 30px;
    border: none;
    border-radius: 8px;
    background-color: #5a4bcf;
    color: white;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  .select-btn:hover {
    background-color: #4b3bb3;
  }
  
  .pro-btn {
    background-color: #fff;
    color: #04AA6D;
  }
  
  .pro-btn:hover {
    background-color: #f0f0f0;
  }
  
  /* Responsive adjustments for smaller screens */
  @media screen and (max-width: 768px) {
    .pricing-container {
      padding: 20px;
      flex-direction: column;
      align-items: center;
    }
  
    .pricing-card {
      max-width: 100%;
    }
  }
