.main-content {
  flex: 1;
  overflow-y: auto;
  /* padding: 40px; */
  box-sizing: border-box;
}

.file-wrapper {
  width: 100%;
  margin: auto;
  /* Temporary Margin */
  margin-top: 20px;
  position: relative;
  overflow: visible; 
  z-index: 5;
  padding: 40px;
}

.tabs {
  width: 90%;
  border-radius: 10px;
  margin-left: 15px;
  padding: 0;
  padding-left: 20px;
  margin-top: 20px;
  position: absolute;
  display: flex;
  justify-content: flex-start;
  border: 2px solid rgb(108,117,125);
  background-color: rgb(245, 231, 195);
}

.tab {
  height: 70px;
  padding: 10px;
  color: rgb(108,117,125);
  background-color: #eeeeee;
  border: 0.5px Solid rgb(108,117,125);
  font-size: 16px;
  border-bottom: none; 
  cursor: pointer;
  transition: background 0.5s;
  text-align: left;
  border-radius: 5px;
  text-shadow: 1px 1px 1px rgba(0,0,0,0.1);
  margin-top: -20px;
  box-shadow: rgba(0, 0, 0, 0.35) 3.4px 3.4px 4.2px;
}

.tab:hover {
  background-color: rgba(255, 255, 255, 1);
}

.tab-sentences { 
  margin-left: 25px;
  z-index: 3;
}

.tab-paragraphs {
  z-index: 2;
}

.tab-purpose    { 
  padding-left: 20px;
  z-index: 1;
}

.tab.active {
  margin-top: -28px;
  color: #eeeeee !important;
  background-color: rgb(205, 50, 58) !important;
  box-shadow: rgba(0, 0, 0, 0.35) 3.4px 3.4px 4.2px;
}

.file-folder {
  min-height: 700px;
  position: relative;
  padding: 20px;
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
  border-radius: 15px;
  overflow: hidden;      
  z-index: 4;
}

.file-folder.class-management {
  padding: 30px 0;
}

.file-folder.students{
  clip-path: polygon(
    0%   60px,   /* start 10% down at left */
    400px  60px,   /* remain 10% down until 15% across */
    440px   0%,   /* slope up to top by 30% across */
    100%  0%,   /* flat at top from 30% to right edge */
    100% 100%,  /* down right edge */
    0%   100%   /* bottom-left corner */
  );
}

.file-folder.my-resources{
  clip-path: polygon(
    0%   60px,   /* start 10% down at left */
    350px  60px,   /* remain 10% down until 15% across */
    390px   0%,   /* slope up to top by 30% across */
    100%  0%,   /* flat at top from 30% to right edge */
    100% 100%,  /* down right edge */
    0%   100%   /* bottom-left corner */
  );
}

@supports ((-webkit-backdrop-filter: none) or (backdrop-filter: none)) {
  .file-folder {
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    background-color: rgb(35, 68, 105);
  }
}

.card-section {
  margin: 10px;
  padding: 40px 10px 10px 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-around;
}

.custom-card {
  width: 300px;
  min-height: 370px;
  border-radius: 5px;
  margin: 10px;
  overflow: hidden;
}

.custom-card .card-img-top {
  height: 50%;
  width: 100%;
  object-fit: cover;
}

.card-text {
  margin-top: 20px;
}

.custom-card .card-button {
  margin: 20px 2px 0px 2px;
}

.sub-sections {
  max-width: 60%;
  height: 50px;
  margin: 10px;
  margin-left: auto;
}

.sentence-toggle {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 16px;
}

.sentence-toggle .btn {
  width: 120px;
  white-space: normal;
  text-align: center;
  line-height: 1.2;
}

.sentence-toggle .btn-outline-primary {
  border-color: rgb(108,117,125); 
  color: rgb(108,117,125);
  background-color: #eeeeee;
  font-style: italic;
}

.sentence-toggle .btn-outline-primary:hover,
.sentence-toggle .btn-outline-primary:focus {
  background-color: #eeeeee;
}

.sentence-toggle .btn-outline-primary.active,
.sentence-toggle .btn-outline-primary.active:focus,
.sentence-toggle .btn-outline-primary:active {
  background-color: rgb(205, 50, 58);
  border-color: rgb(205, 50, 58);
  color: #fff;
}

.xp-status-container {
  padding: 12px 16px;
  border-top: 0.5px solid white;
  background-color: rgb(35, 68, 105);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.xp-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
}

.xp-level {
  color: #65ec65;
}

.xp-next {
  color: #666;
}

.xp-bar-background {
  height: 10px;
  width: 100%;
  background: #ddd;
  border-radius: 20px;
  overflow: hidden;
}

.xp-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #b0f0c8, #74cd74);
  border-radius: 20px 0 0 20px;
  transition: width 0.4s ease-in-out;
}

.xp-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #fff;
  margin-top: 2px;
}
