body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}



.sheet-title {
  display: flex;
  align-items: center;
  gap: 8px;
}



.formula-bar {
  
  width: 100%;
  display: flex;
  align-items: center;
  padding: 4px 8px;
  border-bottom: 1px solid #e0e0e0;
  
  background: white;
  
}

.selected-cell-display {
  min-width: 60px;
  padding: 4px 8px;
  height: 25px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-right: 8px;
  font-size: 14px;
  font-weight: bold;
  justify-content: center;
  justify-items: center;
  color: #000000;
}

.formula-input {
  flex-grow: 1;
  padding: 4px 8px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  font-size: 14px;
}

.container {
  display: grid;
  grid-template-areas: 
    "junction head-row"
    "serial-no main-body";
  grid-template-columns: 50px 1fr;
}

.junction {
  grid-area: junction;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
}

.head-row {
  margin-top: 2px;
  grid-area: head-row;
  display: flex;
  background: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
}

.serial-no {
  grid-area: serial-no;
  background: #f8f9fa;
  border-right: 1px solid #e0e0e0;
}

.main-body {
  grid-area: main-body;
  overflow: auto;
}
.main-body::-webkit-scrollbar {
  display: none;
}

.col-head {
  min-width: 100px;
  padding: 2px;
  text-align: center;
  border-right: 1px solid #e0e0e0;
  font-weight: 500;
}

.serial-cell {
  padding: 2px;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  font-weight: 500;
}

.row {
  display: flex;
}

.cell {
  min-width: 100px;
  padding: 2px;
  border-right: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  outline: none;
}

.cell.selected {
  border: 2px solid #1a73e8;
  padding: 1px;
}

.cell[data-format="currency"] {
  text-align: right;
}

.cell[data-format="percentage"] {
  text-align: right;
}

.cell[data-format="decimal"] {
  text-align: right;
}

.cell.bold {
  font-weight: bold;
}

.cell.italic {
  font-style: italic;
}
/* Toolbar Styling */
#textFormattingForm {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f3f3f3;
  padding: 10px;
  
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Dropdown Styling */
#textFormattingForm select {
  padding: 5px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background: white;
  cursor: pointer;
}

/* Font Size Input */
#fontSizeInput {
  width: 50px;
  text-align: center;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 3px;
}

/* Buttons Styling */
#textFormattingForm button {
  border: none;
  background: white;
  padding: 6px 10px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: 0.2s;
}

#textFormattingForm button:hover {
  background: #ddd;
}

#textFormattingForm button.active {
  background: rgb(6, 139, 255);
  color: white;
}

#textColor {
  width: 35px;
  height: 30px;
  border: none;
  cursor: pointer;
}

.toolbarfull {
  
    width: 100%;
    background-color: white;
    z-index: 1000;
    border-bottom: 1px solid #dadce0;
    display: flex; /* Make toolbar items align horizontally */
    align-items: center;
    justify-content: space-between; /* Ensure left & right elements align properly */
    padding: 8px 16px;
}

.title {
  display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
  padding: 8px 16px;
}

/* Left side container */
.title > div:first-child {
  display: flex;
    align-items: center;
    justify-content: flex-end; 
    flex-direction: row;  /* Ensures items are in a row */
    flex-wrap: nowrap;  /* Prevents wrapping */
    gap: 10px; /* Adjust spacing */
}

.logo {
  height: 40px;
  width: 40px;
}

.fileName {
  border: none;
  font-size: 18px;
  padding: 8px;
  border-radius: 4px;
  outline: none;
}

.fileName:hover {
  background-color: #f1f3f4;
}

.star {
  background-color: transparent;
  border: none;
  padding: 8px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.star:hover {
  background-color: #f1f3f4;
}

/* Right side container */
.toolbarfull > div:last-child {
  display: flex;
  align-items: center;
  gap: 15px; /* Adds spacing between buttons */
}

.title > div:last-child {
  display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-direction: row; /* Force horizontal alignment */
    flex-wrap: nowrap; /* Prevents wrapping */
}

.join {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  height: 40px;
  width: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background-color: transparent;
  
}

.share {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 36px;
  padding: 0 16px;
  border-radius: 18px;
  border: none;
  background-color: #c2e7ff;
  cursor: pointer;
}

.shareText {
  font-weight: 500;
  font-size: 14px;
}

.user {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  object-fit: cover;
  display: flex;
    align-items: center;
    margin-right: 25px;
}

.join:hover {
  background-color: #f1f3f4;
}

.share:hover {
  background-color: #b3deff;
}

.buttons{
  display: flex;
    gap: 10px;
    align-items: center;
}

.buttons button{
  background-color: white;
  border: none;
  font-size: 14px;
  color: rgb(82, 85, 85);
}
.icons{
  display: flex;
    gap: 8px;
    align-items: center;
}
.file-container{
  display: flex;
    flex-direction: row; /* Ensures elements align horizontally */
    gap: 10px; /* Space between buttons */
    align-items: center; 
  }