@import './donor-account/dashboard';
@import './donor-account/my-donations';
@import './donor-account/donation-detail';
@import './donor-account/my-account';
@import './donor-account/login-form';
@import './donor-account/donations-filter-form';

.gfw-donor-account__title {
  margin: 0 0 1rem 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: #1a1a1a;
}

.giftflow-donor-account {
  display: flex;
  gap: 2rem;
  min-height: 600px;
  margin: 2rem 0;
  
  // Tab Navigation (Left Column)
  &__tabs {
    flex: 0 0 280px;
    
    @media (max-width: 768px) {
      flex: 0 0 100%;
      padding: 16px 0;
      display: flex;
      overflow-x: auto;
      gap: 8px;
    }
  }

  &__tab {
    display: flex;
    align-items: center;
    padding: 1rem 0;
    text-decoration: none;
    transition: all 0.2s ease;
    border: solid #eee;
    border-width: 1px 0 0 0;
    opacity: .4;
    font-weight: bold;
    
    &:hover {
      // color: #3b82f6;
      opacity: 1;
    }
    
    &.active {
      // color: #3b82f6;
      opacity: 1;
    }
    
    @media (max-width: 768px) {
      flex: 0 0 auto;
      white-space: nowrap;
      padding: 12px 16px;
      border-left: none;
      border-bottom: 2px solid transparent;
      margin-bottom: 0;
      
      &.active {

      }
    }
  }

  &__tab-icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;

    
    @media (max-width: 768px) {
      margin-right: 8px;
      
      svg {
        width: 14px;
        height: 14px;
      }
    }
  }

  &__tab-label {
    font-weight: 500;
    font-size: 14px;
    
    @media (max-width: 768px) {
      font-size: 13px;
    }
  }

  // Content Area (Right Column)
  &__content {
    flex: 1;
    
    @media (max-width: 768px) {
      padding-top: 20px;
    }
  }

  &__tab-content {
    
    
    // Content styling
    
    p {
      line-height: 1.6;
      margin: 0 0 16px;
    }
  }
    

  // Responsive Design
  @media (max-width: 768px) {
    flex-direction: column;
    min-height: auto;
    gap: 1rem;
    
    &__tab-content {
      .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
        
        .stat-card {
          padding: 20px;
          
          .stat-value {
            font-size: 24px;
          }
        }
      }
      
      .data-table {
        font-size: 14px;
        
        th, td {
          padding: 12px 8px;
        }
      }
    }
  }
  
  @media (max-width: 480px) {
    &__tab-content {
      .stats-grid {
        grid-template-columns: 1fr;
        
        .stat-card {
          padding: 16px;
          
          .stat-value {
            font-size: 20px;
          }
          
          .stat-label {
            font-size: 12px;
          }
        }
      }
    }
  }
}


.donor-account-empty {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
  background: #f5f5f5;
  border-radius: 1px;
  padding: 2rem 1.5rem;
  margin: 0 0 2rem;

  .empty-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    min-width: 52px;
    margin-right: 0.5rem;
    background: #fafafa;
    border: solid 1px #eee;
    border-radius: 100%;

    svg {
      width: 28px;
    }
  }

  .empty-message {
    flex: 1;
    h4 {
      margin: 0 0 0.5rem 0;
      font-size: 1.2rem;
      font-weight: 600;
    }
    p {
      margin: 0 0 1rem 0;
      font-size: .9rem;
      line-height: 1.6;
    }
    ul {
      margin: 0;
      padding-left: 1.2rem;
      font-size: 0.9rem;
      li {
        margin-bottom: 0.4em;
        list-style: disc;
      }
    }
  }
  @media (max-width: 375px) {
    flex-wrap: wrap;

    .empty-message {
      flex: unset;
    }
  }
}
