.remove-short-link-btn {
  background: rgba(214, 122, 151, .3) !important;
}
.remove-short-link-btn:hover {
  background: rgba(214, 122, 151, .5) !important;
}
/* Trash can button (remove link) custom background */
.remove-short-link-btn {
  background: rgba(214, 122, 151, .3);
}
/* Add gap between adjacent card buttons in card header */
.card-header .card-btn + .card-btn {
  margin-left: 6px;
}
* {
  margin: 0;
  padding: 0;
  -moz-box-sizing: border-box;
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
}

body {
  /*font-family: "Courier New", Courier, monospace;*/
  font-family: 'Open Sans', sans-serif;
  color: #3f3f3f;
}

.bg {
  /*background-color: #8282FF;*/
  background: #191f2c;
}

.tint {
  z-index: 1;
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0px;
  left: 0px;
}

.dropmsg {
  color: rgb(201, 201, 201);
}

#droppy {
  background: rgba(0, 0, 0, .14);
  border: 2px solid #313d56 !important;
}

.dropzone:hover {
  background: rgba(0, 0, 0, .3) !important;
  transition: all 0.12s ease !important;
  opacity: 3 !important;
  cursor: pointer !important;
}

h1 {
  font-weight: normal;
  font-size: 40px;
  text-transform: uppercase;
}
h1 span {
  font-size: 13px;
  display: block;
  padding-left: 4px;
}

.footer {
  color: rgba(201, 201, 201, 1);
  font-size: 12px;
	right: 0;
  bottom: 0;
  left: 0;
  padding: 1rem;
  text-align: center;
}

.ulink {
  text-decoration: none;
  color: rgba(201, 201, 201, 1);
  font-weight: bold;
}

.flink {
  text-decoration: none;
  color: rgba(201, 201, 201, 1);
  padding-right: 10px;
  padding-left: 10px;
  font-weight: bold;
}

.flink:hover {
  transition: all 0.2s ease;
  color: rgba(58, 58, 58, 1);
}

.hlink {
  text-decoration: none;
  color: rgba(201, 201, 201, 1);
  padding-right: 10px;
  padding-left: 10px;
  font-weight: bold;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  outline: none;
}

.hlink:hover {
  transition: all 0.2s ease;
  color: rgba(58, 58, 58, 1);
}

.ulink:hover {
  transition: all 0.2s ease;
  color: rgba(58, 58, 58, 1);
}

.msg {
  color: rgb(201, 201, 201);
  font-size: 110%;
}

.blink {
  text-decoration: none;
  font-weight: normal;
  color: gray;
  padding-right: 8px;
  background-color: rgba(0, 0, 0, 0);
  border: none;
  outline: none;
  font-family: inherit;
  font-size: inherit;
}

.blink:hover {
  transition: all 0.2s ease;
  color: rgba(58, 58, 58, 1);
}

.button {
  font-size: 1em;
  padding: 10px;
  color: #fff;
  border-radius: 20px/50px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease-out;
}

.popup {
  margin: 70px auto;
  padding: 20px;
  background: #cecbcb;
  border-radius: 5px;
  width: 50%;
  position: relative;
  transition: all 2s ease-in-out;
}

.popup .close {
  position: absolute;
  top: 10px;
  right: 10px;
  transition: all 100ms;
  font-size: 15px;
  font-weight: bold;
  text-decoration: none;
  color: #333;
}

.popup .close:hover {
  color: grey;
}

.popup .content {
  max-height: 30%;
  overflow: auto;
}

.overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7);
  transition: opacity 500ms;
  visibility: hidden;
  opacity: 0;
}

.overlay:target {
  visibility: visible;
  opacity: 1;
}

#pre_logo {
  padding-top: 8%;
}

#post_logo {
  padding-top: 25px;
}

#writezone {
  color: #3f3f3f;
}

#writezone2 {
  color: gray;
  text-decoration: none;
  font-weight: normal;
}

#writezone2 table {
  border-collapse: collapse;
  border-spacing: 5px;
  padding: 15px;
  text-align: left;
}

#min_width {
  min-width: 300px;
}

#removal {
  text-align: center;
}

#writezone2 th {
  color: rgba(201, 201, 201, 1);
  padding: 6px 15px 6px 15px;
  background-color: rgba(0, 0, 0, .4) !important;
}

#writezone2 td {
  padding: 2px 15px 2px 15px;
}

#writezone2 a,
#writezone a {
  color: rgba(201, 201, 201, 1);
  text-decoration: none;
  font-weight: normal;
}

/* Modern Card-Based Design */
.cards-container {
  width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.file-card {
  background: rgba(43, 48, 61);
  border: 1px solid rgba(49, 61, 86, 1);
  border-radius: 8px;
  padding: 0;
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.file-card:hover {
  background: rgba(43, 48, 61, 0.4);
  border-color: rgba(49, 61, 86, 0.6);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.26);
}

.file-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.file-icon {
  color: rgba(201, 201, 201, 0.7);
  font-size: 20px;
}

.file-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.file-name {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  color: rgba(201, 201, 201, 1);
}

.file-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.file-name a:hover {
  color: rgba(201, 201, 201, 0.8);
}

.file-status {
  font-size: 12px;
  color: rgba(201, 201, 201, 0.6);
  font-weight: 400;
  letter-spacing: 0.5px;
  text-align: left;
  align-self: flex-start;
}

/* Override uppercase for link URLs */
.file-status.link-url {
  text-transform: none;
  letter-spacing: normal;
}

.file-status .link-url {
  text-transform: none !important;
  letter-spacing: normal;
}

.delete-btn-card {
  /*background: rgba(0, 0, 0, 0.1);*/
  background: rgba(214, 122, 151, .3);
  border: 1px solid rgba(89, 163, 227, 0.3);
  border-radius: 6px 8px;
  padding: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: rgba(201, 201, 201, 1);
}

.delete-btn-card:hover {
  /*background: rgba(0, 0, 0, 0.2);*/
  background: rgba(214, 122, 151, .5);
  border-color: rgba(89, 163, 227, 0.5);
  transform: scale(1.05);
}

.delete-btn-card .material-icons {
  font-size: 18px;
}

.card-body {
  padding: 12px 16px;
  display: flex;
  gap: 8px;
}

.card-btn {
  flex: 0 0 auto;
  min-width: 0;
  font-size: 14px;
  /*background: rgba(0, 0, 0, 0.1);*/
  background: rgba(122,214,200, .1);
  border: 1px solid rgba(89, 163, 227, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(201, 201, 201, 1);
}

.card-btn:hover {
  /*background: rgba(0, 0, 0, 0.2);*/
  background: rgba(122,214,200, .3);
  border-color: rgba(89, 163, 227, 0.5);
  transform: translateY(-1px);
}

.card-btn .material-icons {
  font-size: 16px;
}

.copy-btn .material-icons, .shorten-btn .material-icons {
  font-size: 12px;
}

.delete-cell {
  text-align: center;
  white-space: nowrap;
  width: 80px;
}

.action-btn {
  background: rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(201, 201, 201, 0.3);
  border-radius: 3px;
  padding: 12px 8px;
  margin: 0 2px;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.action-btn:hover {
  background: rgba(0, 0, 0, 0.2);
  transform: scale(1.1);
}

.action-btn .material-icons {
  font-size: 18px;
}

.shorten-btn:hover {
  background: rgba(255, 193, 7, 0.3);
}

.delete-btn:hover {
  background: rgba(220, 53, 69, 0.3);
}

.table-container {
  width: 700px;
  margin: 0 auto;
  border: 2px solid rgba(201, 201, 201, 1) !important;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(0, 0, 0, .1);
}

#writezone2 table {
  width: 100%;
  margin: 0;
  border-collapse: collapse;
}

#writezone2 th {
  background-color: rgba(0, 0, 0, .4) !important;
  border-bottom: 1px solid rgba(201, 201, 201, 0.8);
  border-right: 1px solid rgba(201, 201, 201, 0.6);
}

#writezone2 th:last-child {
  border-right: none;
}

#writezone2 td {
  padding: 8px 12px;
  vertical-align: middle;
  border-bottom: 1px solid rgba(201, 201, 201, 0.4);
  border-right: 1px solid rgba(201, 201, 201, 0.4);
}

#writezone2 td:last-child {
  border-right: none;
}

#writezone2 tr:last-child td {
  border-bottom: none;
}

.custom-file-upload-hidden {
  display: none;
  visibility: hidden;
  position: absolute;
  left: -9999px;
}

.custom-file-upload {
  display: block;
  width: auto;
  font-size: 16px;
  margin-top: 30px;
}
.custom-file-upload label {
  display: block;
  margin-bottom: 5px;
}

.file-upload-wrapper {
  position: relative;
  margin-bottom: 5px;
}

.file-upload-input {
  height: 40px;
  line-height: 40px;
  width: 300px;
  color: #fff;
  font-size: 17px;
  padding: 11px 17px;
  border: none;
  background-color: #7e7e7e;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
  float: left;
  /* IE 9 Fix */
}
.file-upload-input:hover, .file-upload-input:focus {
  background-color: #5604CC;
  outline: none;
}

.file-upload-button {
  height: 40px;
  line-height: 40px;
  line-height: 18px;
  cursor: pointer;
  display: inline-block;
  color: #fff;
  font-size: 15px;
  text-transform: uppercase;
  padding: 11px 20px;
  border: none;
  margin-left: -1px;
  background-color: #6B05FF;
  -moz-transition: all 0.2s ease-in;
  -o-transition: all 0.2s ease-in;
  -webkit-transition: all 0.2s ease-in;
  transition: all 0.2s ease-in;
}
.file-upload-button:hover {
  background-color: #35027F;
}

input::placeholder {
  color: rgba(201, 201, 201, .8);
}

.linkstyle input[type="text"] {
  padding: 10px;
  width: 325px;
  background: rgba(0, 0, 0, .2);
  border: 2px solid #313d56 !important;
  border-radius: 5px;
  color: rgba(201, 201, 201, 1);
  transition: all 0.6s ease;
}

.linkstyle input[type="text"]:hover {
  background: rgba(0, 0, 0, .3) !important;
  transition: all 0.6s ease;
  opacity: 3;
  cursor: pointer;
}

.linkstyle input[type="text"]:focus,
.linkstyle input[type="text"].focus {
  background: rgba(0, 0, 0, .3) !important;
  opacity: 3;
}

/* Single row button for link cards */
.single-row-btn {
  background: rgba(122, 214, 200, 0.1);
  border: 1px solid rgba(89, 163, 227, 0.3);
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(201, 201, 201, 1);
  white-space: nowrap;
}

.single-row-btn:hover {
  background: rgba(122, 214, 200, 0.2);
  border-color: rgba(89, 163, 227, 0.5);
  transform: translateY(-1px);
}

.single-row-btn .material-icons {
  font-size: 16px;
}

/* Override centering for link card text */
.file-card .file-info {
  text-align: left;
  flex: 1;
  min-width: 0; /* Allows flexbox truncation */
  margin-right: 12px; /* Space between text and button */
}

.file-card .file-details {
  text-align: left;
  width: 100%;
  min-width: 0; /* Allows flexbox truncation */
}

.file-card .file-name {
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  max-width: 100%;
}

.file-card .file-name a {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
  width: 100%;
  max-width: 100%;
}

.file-card .card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}