@import url("https://fonts.googleapis.com/css2?family=Inter:wght@100;170;200;271;300;400;500;700;900&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Open+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400;1,500;1,600;1,700;1,800&family=Oswald:wght@200;300;400;500;600;700&family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap");

* {
  margin: 0;
  padding: 0;
  border: 0;
  box-sizing: border-box;
}

:root {
  --white-text: #fff;
  --mid-grey: #f9fafb;
  --active-grey: #d1d5db;
  --hover-grey: #e5e7eb;
  --excel-green: #34a853;
}

body {
  font-family: "Inter", sans-serif, monospace;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* navigation bar  */

.navigation-bar {
  background-color: var(--excel-green);
  width: 100%;
  height: 2.5rem;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  padding-left: 0.7rem;
  padding-right: 0.7rem;
  color: var(--white-text);
  overflow: auto;
  scrollbar-width: none;
}

.navigation-single {
  padding: 0 0.7rem;
  font-size: 0.9rem;
  cursor: pointer;
}

.file-name {
  outline: none;
  margin-left: 0.5rem;
  padding: 0.25rem 0.6rem;
  border-radius: 0.1rem;
  flex: 1 1;
  max-width: 10rem;
  height: 65%;
  font-size: 0.85rem;
  color: #6b7280;
  text-transform: capitalize;
}

.navigation-bar::-webkit-scrollbar {
  display: none;
}

/* tool bar  */

.toolbar-container {
  width: 100%;
  height: 3rem;
  background-color: var(--mid-grey);
  border-bottom: var(--active-grey) 1px solid;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.4rem;
  overflow-x: auto;
  column-gap: 1.2rem;
  position: relative;
  scrollbar-width: none;
}

.toolbar-container::-webkit-scrollbar {
  display: none;
}

.toolbar-container > span {
  font-size: 1.3rem;
  cursor: pointer;
  padding: 0.2rem;
}

.select {
  padding: 0.4em 0.1rem;
  border-radius: 0.2rem;
  outline: none;
  background-color: var(--mid-grey);
}

option {
  padding: 0.6rem;
  outline: var(--active-grey);
  border: none;
  text-decoration: none;
}

.toolbar-container > span:hover {
  background-color: var(--hover-grey);
  border-radius: 0.2rem;
}

.toolbar-container > select:hover {
  background-color: var(--hover-grey);
  border-radius: 0.2rem;
}

.toolbar-container .color .color-hide {
  max-width: 1.5rem;
  position: absolute;
  opacity: 0;
}

/* formula cell  */

.formula-and-cell-container {
  width: 100%;
  height: 3rem;
  background-color: var(--mid-grey);
  border-bottom: var(--active-grey) 1px solid;
  display: flex;
  padding: 0.52rem 1.4rem;
  align-items: center;
  column-gap: 1.3rem;
  overflow: scroll;
  scrollbar-width: none;
}

.formula-and-cell-container .address-bar {
  border-radius: 0.2rem;
  border: var(--active-grey) solid 1px;
  background-color: #fff;
  height: 1.9rem;
  width: 4rem;
  font-size: 1.2rem;
  padding: 0.3rem 0.5rem;
  outline: none;
  overflow: hidden;
  text-align: center;
  min-width: 4rem;
}

.formula-and-cell-container .formula-icon {
  height: 1.5rem;
  width: 1.5rem;
  min-width: 1.5rem;
}

.formula-and-cell-container .formula-icon img {
  height: 100%;
  width: 100%;
}

.formula-and-cell-container .formula-bar {
  background-color: #fff;
  border-radius: 0.2rem;
  height: 1.9rem;
  border: solid 1px var(--active-grey);
  width: calc(100vw - 1.4rem - 5.5rem - 2.6rem);
  max-width: 60rem;
  outline: none;
  padding: 0.2rem 0.5rem;
  min-width: 17.5rem;
}

.formula-and-cell-container::-webkit-scrollbar {
  display: none;
}

/* cell container  */

.cell-row-column-container {
  width: 100%;
  background-color: var(--mid-grey);
  height: calc(100vh - 2rem - 6rem - 3rem);
  position: relative;
  overflow: auto;
  scrollbar-width: thin;
}

.left-dummy-box {
  top: 0;
  left: 0;
  width: 2.5rem;
  height: 2rem;
  position: sticky;
  z-index: 10;
  padding: 0.3rem;
  background-color: var(--mid-grey);
  border-bottom: 1px solid var(--active-grey);
  border-right: 1px solid var(--active-grey);
}

.dummy-box {
  width: 100%;
  height: 100%;
  background-color: var(--active-grey);
  clip-path: polygon(100% 0, 0% 100%, 100% 100%);
}

/* container that hold address of all row  */

.row-address-container {
  position: sticky;
  top: 2rem;
  left: 0;
  z-index: 1;
  max-width: 2.5rem;
}

/* container that hold cells and address of column  */

.cells-container {
  position: absolute;
  top: 0;
  left: 2.5rem;
}

/* container that holds address of column  */

.col-address-container {
  display: flex;
  position: sticky;
  top: 0;
}

/* single row address  */

.single-row-number {
  border-bottom: 1px solid var(--active-grey);
  border-right: 1px solid var(--active-grey);
  height: 2rem;
  width: 2.5rem;
  padding: 0.4rem;
  text-align: center;
  z-index: 5;
  background-color: var(--mid-grey);
}

.single-row-number:hover {
  background-color: var(--active-grey);
}

/* single column container  */

.single-column-number {
  border-bottom: var(--active-grey) 1px solid;
  border-right: var(--active-grey) 1px solid;
  height: 2rem;
  width: 5rem;
  padding: 0.4rem;
  text-align: center;
  z-index: 5;
  background-color: var(--mid-grey);
}

.single-column-number:hover {
  background-color: var(--active-grey);
}

.cell-row {
  display: flex;
  align-items: center;
}

.cell {
  border-bottom: 1px solid var(--active-grey);
  border-right: 1px solid var(--active-grey);
  height: 2rem;
  width: 5rem;
  padding: 0.4rem;
  cursor: cell;
  outline: none;
  overflow: hidden;
  white-space: nowrap;
}

.active-cell {
  border: 2px solid var(--excel-green);
}

/* custom scroll bar  */

.cell-row-column-container::-webkit-scrollbar {
  width: 20px;
}

.cell-row-column-container::-webkit-scrollbar-track {
  background-color: transparent;
}

.cell-row-column-container::-webkit-scrollbar-thumb {
  background-color: var(--active-grey);
  border-radius: 2rem;
  border: 4.5px solid transparent;
  background-clip: content-box;
}

.cell-row-column-container::-webkit-scrollbar-thumb:hover {
  background-color: #4b5563;
}

/* sheet container  */

.sheet-container {
  background-color: var(--mid-grey);
  border-top: var(--active-grey) 1px solid;
  width: 100%;
  height: 2.5rem;
  display: flex;
  align-items: center;
  padding: 0.5rem 1.4rem 0.5rem 1.4rem;
  column-gap: 1.3rem;
  font-weight: 500;
}

.sheet-container .sheet-icon {
  font-size: 1.6rem;
  cursor: pointer;
}

.sheet-container .active-sheet {
  border-bottom: #000000 2px solid;
}

.sheet-container .sheet-list {
  cursor: pointer;
  padding: 0.2rem;
}

.sheet-container > span:hover {
  background-color: var(--hover-grey);
  border-radius: 0.2rem;
}

.sheet-container-active {
  background-color: var(--hover-grey);
  border-radius: 0.2rem;
}
