.univName {
  position: relative; /* img 위치 기준이 될 부모 */
  display: flex;
  align-items: center;
  gap: 5px;
}

.univName img.symbol {
  /* width: auto;
  max-width: 20px; */
  width: 20px;
  height: 20px;
  vertical-align: middle;
}

.univName img.link {
  display: none;
  right: 25px;          /* 오른쪽 여백 (조정 가능) */
}

.result-bars {
  position: absolute;
  top: -55px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 1px;
}

.result-bar {
  width: 20px;
  height: 3px;
  background-color: white;
  border-radius: 0px;
}

.result-bar-green {
  background-color: #16F525;
}

.result-bar-blue {
  background-color: #92A5F7;
}

/* Mobile List Specific Styles for mCalcList.ejs */
#calcList {
    padding: 15px;
    margin-top: 20px;
}

#calcList .calc-block {
    margin-bottom: 15px; /* Space between list items */
    cursor: pointer;
}

.calc-item {
    background-color: #ffffff; /* White background for each item */
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative; /* For absolute positioning of result-bars */
}

.item-content {
    display: flex;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
    align-items: center;
    gap: 8px;
}

.item-content h2 {
    margin: 0;
    font-size: 1.0em; /* Adjust font size for mobile readability */
    color: #333;
}

.item-content .order {
    font-weight: bold;
    color: #007bff; /* Highlight order number */
}

.item-content .univ {
    font-weight: bold;
    color: #28a745; /* Highlight university name */
}

.item-content .dept {
    font-weight: bold;
    color: #6c757d; /* Muted color for department */
}

/* result-bars styling for mCalcList.ejs to match calcList.ejs */
.calc-item .result-bars {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    gap: 1px;
    width: 20px;
}

#calcList .calc-block:last-child {
    margin-bottom: 0;
}

#addBtn {
    display: block; /* Make the button take full width */
    width: calc(100% - 30px); /* Adjust width to account for padding of parent and own padding */
    margin: 20px auto 0 auto; /* Center the button and add top margin */
    padding: 8px 15px; /* Reduced padding */
    background-color: #f0f0f0; /* Very light gray background */
    color: #555; /* Darker gray text */
    border: none;
    border-radius: 8px;
    font-size: 1.0em; /* Slightly reduced font size */
    cursor: pointer;
    box-shadow: none; /* Removed box shadow */
    transition: background-color 0.2s ease;
}

#addBtn:hover {
    background-color: #e0e0e0; /* Slightly darker light gray on hover */
}

#draganddroporder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Added spacing between elements */
    padding: 0 15px;
}

#draganddroporder span {
    font-size: 0.8em; /* Reduced font size */
    color: #888; /* Gray color */
}

.sortable-placeholder {
    border: 2px dashed #ccc; /* Changed border to 1px */
    background-color: #f7f7f7;
    height: 50px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); /* Added box-shadow */
    border-radius: 8px; /* Added border-radius */
}
