@font-face {
  font-family: "Scribd-JaSN";
  src: url("../fonts/Scribd-JaSN-Regular.c3012a9d.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Scribd-JaSN";
  src: url("../fonts/Scribd-JaSN-Medium.fccb755d.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Scribd-JaSN";
  src: url("../fonts/Scribd-JaSN-Bold.c3f9079c.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
}

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

body {
  font-family: "Scribd-JaSN", -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  font-weight: 400;
  background-color: #faf9f4;
  color: #333;
}

a {
  text-decoration: none;
  color: #0d6efd;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: 4px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
  transition: background-color 0.2s;
}

.btn-primary {
  background-color: #098647;
  color: white;
}

.btn-primary:hover {
  background-color: #076938;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #faf9f4;
  border-bottom: 1px solid #e0e0e0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.menu-toggle {
  font-size: 20px;
  background: none;
  border: none;
  cursor: pointer;
  color: #555;
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo {
  height: 25px;
  width: auto;
}

.search-container {
  display: flex;
  border: 1px solid #494949;
  border-radius: 6px;
  background-color: #fff;
}

.search-container input {
  border: none;
  padding: 10px 15px;
  font-size: 16px;
  outline: none;
  width: 400px;
  background: transparent;
  border-radius: 6px 0 0 6px;
  font-family: "Scribd-JaSN", sans-serif;
}

.search-container .search-button {
  background-color: #f0f0f0;
  border: none;
  padding: 0 15px;
  cursor: pointer;
  border-left: 1px solid #494949;
  border-radius: 0 6px 6px 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  color: #333;
  font-size: 14px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.nav-link.upload-btn {
  padding: 8px 12px;
  border-radius: 4px;
}

.content-area {
  display: flex;
  padding: 20px;
  gap: 30px;
  max-width: 1400px;
  margin: 0 auto;
  align-items: flex-start;
}

.sidebar {
  flex: 0 0 320px;
  background-color: #fff;
  padding: 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}

.sidebar-info {
  padding-bottom: 20px;
  border-bottom: 1px solid #e0e0e0;
}

.doc-stats {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
}

.doc-stats i {
  margin-right: 5px;
}

.sidebar h1 {
  font-size: 24px;
  line-height: 1.3;
  margin-bottom: 10px;
  font-weight: 700;
}

.sidebar p {
  font-size: 14px;
  line-height: 1.5;
  color: #555;
  margin-bottom: 15px;
}

.uploader-info {
  font-size: 13px;
  color: #666;
}

.uploader-info span {
  display: block;
}

.sidebar-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 20px 0;
  border-bottom: 1px solid #e0e0e0;
}

.action-btn {
  background: #faf9f4;
  border: 1px solid #faf9f4;
  border-radius: 4px;
  padding: 10px 5px;
  font-size: 13px;
  cursor: pointer;
  text-align: center;
  color: #333;
  transition: background-color 0.2s, border-color 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.action-btn i {
  font-size: 18px;
  color: #555;
}

.action-btn:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
}

.sidebar-options {
  display: flex;
  justify-content: space-around;
  font-size: 14px;
  flex-wrap: wrap;
  padding-top: 20px;
}

.sidebar-options a {
  color: #555;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
}

.document-viewer {
  flex-grow: 1;
}

.viewer-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #fff;
  padding: 10px 20px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  margin-bottom: 20px;
}

.page-nav {
  display: flex;
  align-items: center;
  gap: 5px;
}

.page-input {
  width: 40px;
  text-align: center;
  border: 1px solid #494949;
  border-radius: 4px;
  padding: 5px;
}

.viewer-tools {
  display: flex;
  align-items: center;
  gap: 20px;
}
.viewer-tools a {
  color: #333;
  font-size: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.viewer-tools a i {
  font-size: 20px;
}

.document-content {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.document-content img {
  max-width: 100%;
  height: auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  border: 1px solid #ddd;
}

@media (max-width: 1024px) {
  .content-area {
    flex-direction: column;
  }
  .sidebar {
    flex-basis: auto;
    order: 2;
    width: 100%;
  }
  .document-viewer {
    order: 1;
  }
  .search-container input {
    width: 150px;
  }
}

@media (max-width: 768px) {
  .header-left .search-container {
    display: none;
  }
  .header-right {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 61px;
    left: 0;
    background-color: #faf9f4;
    width: 100%;
    padding: 10px 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    align-items: flex-start;
    gap: 0;
  }
  .header-right.active {
    display: flex;
  }
  .header-right .nav-link,
  .header-right .btn {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid #eee;
  }
  .header-right .btn {
    margin-top: 10px;
    justify-content: center;
    border-bottom: none;
  }
  .viewer-controls {
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
  }
  .content-area {
    padding: 10px;
  }
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  color: #555;
  font-size: 18px;
  text-decoration: none;
  transition: all 0.2s;
}

.social-icon:hover {
  background-color: #f0f0f0;
  color: #000;
  border-color: #aaa;
}

/* Main Footer Styles */
.site-footer-main {
  background-color: #fdfdfd;
  color: #333;
  padding: 40px 20px 20px;
  border-top: 1px solid #e0e0e0;
  font-size: 14px;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto 30px;
  gap: 30px 20px;
}

.footer-column {
  flex: 1;
  min-width: 180px;
}

.footer-column h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul a {
  color: #333;
  text-decoration: none;
}

.footer-column ul a:hover {
  text-decoration: underline;
}

.footer-column ul a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.app-buttons img {
  height: 40px;
  width: auto;
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px 0 0;
  border-top: 1px solid #e0e0e0;
  font-size: 13px;
  color: #666;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom-right {
  display: flex;
  gap: 20px;
  align-items: center;
}

.footer-legal {
  max-width: 1400px;
  margin: 20px auto 0;
  padding-top: 20px;
  border-top: 1px solid #eee;
  font-size: 12px;
  color: #666;
}

.footer-legal a {
  color: #333;
  text-decoration: underline;
}
