/* normalize stylesheet */
@import "./modern-normalize.css";

/* reset stylesheet */
:root {
  line-height: 1.5;
}

h1,
h2,
h3,
h4,
h5,
figure,
p,
ol,
ul {
  margin: 0;
}

ol[role="list"],
ul[role="list"] {
  list-style: none;
  padding-inline: 0;
}

h1,
h2,
h3,
h4,
h5 {
  font-size: inherit;
  font-weight: inherit;
}

img {
  display: block;
  max-inline-size: 100%;
}

/* custom */
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  padding: 10px 150px;
  background-color: rgb(19, 19, 19);
  color: white;
  display: flex;
}

.logo {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 2rem;
  font-weight: 700;
}

.logo > img {
  width: 40px;
}

main {
  padding: 40px 150px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

footer {
  margin-top: auto;
  text-align: center;
  background-color: rgb(19, 19, 19);
  color: white;
  padding-block: 3px;
}

label {
  display: block;
  font-size: 1.2rem;
}

input,
select {
  min-width: 300px;
  padding: 4px 8px;
  margin-block: 10px;
  line-height: 1.5;
}

button {
  cursor: pointer;
  padding: 6px 25px;
  font-size: 1.2rem;
  font-weight: 500;
  border-width: 1px;
  border-radius: 12px;
}

form > div {
  padding-block: 10px;
}

form > button {
  margin-block: 10px;
}

.page-title {
  font-size: 2rem;
  font-weight: 700;
  padding-block: 5px;
}

h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
}

.green {
  color: #127712;
}

table {
  table-layout: fixed;
  width: 100%;
  font-size: 1.1rem;
  text-align: left;
}

.name {
  width: 40%;
}

.created {
  width: 20%;
}

.size {
  width: 15%;
}

.action {
  width: 25%;
}

th,
td {
  padding: 5px 10px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.folder {
  font-weight: 500;
  cursor: pointer;
}

.small {
  width: 20px;
}

.error-msg {
  color: red;
  font-weight: 500;
  font-size: 1.2rem;
}

.error-details {
  color: red;
}

.form-body {
  display: grid;
  grid-template-columns: max-content max-content;
  gap: 15px 30px;
  align-items: center;
}

.folder-area {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.top-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

.bottom-area {
  display: flex;
  gap: 20px;
}

.folder-name {
  padding-left: 50px;
  padding-right: 150px;
}

.rename {
  background-color: #3583f7;
}

.delete {
  background-color: #f53333;
}

.download {
  background-color: #127712;
}

.disable {
  pointer-events: none;
  cursor: default;
  opacity: 0.2;
}

dialog {
  border-radius: 12px;
  border: 2px solid #cbd5e1;
  font-size: 1.2rem;
}

dialog form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.dialog-buttons {
  display: flex;
  justify-content: space-between;
  padding-inline: 8px;
}

.dialog-buttons button,
#copy-link {
  padding: 5px 15px;
  font-weight: 500;
  font-size: 1.1rem;
  border-radius: 8px;
  border-width: 1px;
}

.special-margin {
  margin-top: 25px;
}

.title-margin {
  margin-bottom: 10px;
}

.grid-data {
  display: grid;
  grid-template-columns: max-content auto;
  column-gap: 30px;
}

.grid-data > p:last-child {
  grid-column: 2 / 3;
}

@media (max-width: 600px) {
  header {
    padding-inline: 20px;
  }

  main {
    padding-inline: 20px;
  }

  input {
    min-width: 100%;
  }

  .logo {
    font-size: 1.5rem;
  }

  .logo > img {
    width: 30px;
  }

  .form-body {
    grid-template-columns: auto;
    gap: 7px;
  }

  .folder-name {
    padding-inline: 5px;
  }

  .top-area, .bottom-area {
    gap: 5px;
  }
}
