@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', 'Helvetica Neue';
}
body {
    width: 100%;
    min-height: 100vh;
    background-color: #efeeee;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.4;
}
body:has(> header) {
    justify-content: flex-start;
    align-items: stretch;
}

.wrapper {
  position: relative;
  max-width: 380px;
  width: 100%;
  border-radius: 12px;
  padding: clamp(12px, 3.5vw, 16px) clamp(12px, 5vw, 24px) clamp(65px, 18vw, 95px);
  background: #fff;
  box-shadow: 0 5px 10px rgba(0,0,0,0.3);
  overflow: hidden;
}
.brand {
  text-align: center;
  margin-bottom: 6px;
  position: relative;
  z-index: 2;
}
.brand-logo {
  width: clamp(60px, 18vw, 100px);
  height: clamp(60px, 18vw, 100px);
  object-fit: contain;
  margin-bottom: 4px;
}
.brand-greeting {
  color: #1C488B;
  font-size: clamp(16px, 4vw, 22px);
  font-weight: 600;
  opacity: 0.9;
}
.wrapper.active .brand {
  display: none;
}
.form.signup {
  position: absolute;
  left: 50%;
  bottom: -86%;
  transform: translateX(-50%);
  width: calc(100% + 220px);
  padding: 20px 140px;
  border-radius: 50%;
  height: 100%;
  background: #1C488B;
  transition: all 0.6s ease;
}
.wrapper.active .form.signup {
  bottom: -15%;
  border-radius: 35%;
  box-shadow: 0 -5px 10px rgba(0, 0, 0, 0.1);
}
.form header {
  font-size: clamp(20px, 6vw, 28px);
  text-align: center;
  color: #fff;
  font-weight: 600;
  cursor: pointer;
}
.form.login header {
  color: #1C488B;
}
.form.signup header {
  color: #fff;
  opacity: 0.6;
}
.wrapper.active
.form.signup header {
  opacity: 1;
}
.wrapper.active
.login header {
  opacity: 0.6;
}
.wrapper form {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2.5vw, 14px);
  margin-top: clamp(10px, 3vw, 18px);
}
form input {
  height: clamp(42px, 10vw, 50px);
  outline: none;
  border: none;
  padding: 0 clamp(10px, 3vw, 14px);
  font-size: clamp(15px, 3.2vw, 17px);
  font-weight: 400;
  color: #333;
  border-radius: 8px;
  background: #f0f0f0;
}
.form.signup
  input {
  border: 1px solid #aaa;
}
.form.signup
  input:focus {
  box-shadow: 0 1px 0 #ddd;
}

form a {
  color: #f3653a;
  text-decoration: none;
}
form
  a:hover {
  text-decoration: underline;
}
form
  input[type="submit"] {
  margin-top: 10px;
  padding: none;
  font-size: clamp(13px, 3.2vw, 15px);
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}
form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}
form input[type="submit"]:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
.form.signup
  input[type="submit"] {
  background: #f3653aff;
  color: #fff;
  border: none;
}
.form.signup input[type="submit"]:hover {
  background: #d9552e;
}
.form.login
  input[type="submit"] {
  background: #1C488B;
  color: #fff;
  border: none;
}
.form.login input[type="submit"]:hover {
  background: #163a70;
}

.sso-divider {
  display: flex;
  align-items: center;
  text-align: center;
  color: #999;
  font-size: 13px;
}
.sso-divider::before,
.sso-divider::after {
  content: "";
  flex: 1;
  border-bottom: 1px solid #ddd;
}
.sso-divider span {
  padding: 0 10px;
}

.sso-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: clamp(42px, 10vw, 50px);
  border: 1px solid #ccc;
  border-radius: 8px;
  background: #fff;
  color: #232f3e;
  font-size: clamp(13px, 3vw, 15px);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.sso-button i {
  color: #FF9900;
  font-size: 1.1em;
}
.sso-button:hover {
  background: #f4f4f4;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}
.sso-button:active {
  transform: translateY(0);
  box-shadow: none;
}

header {
    width: 100%;
    margin: 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

nav {
    background-color: #fff;
    padding: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
    height: 60px;
    border-radius: 0;
    margin: 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    height: 100%;
    margin: 0 auto;
    padding: 0 1rem;
    position: relative;
}

.logo {
    height: 110px;
    width: auto;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    transition: all 0.3s ease;
}

.nav-links a {
    text-decoration: none;
    color: #1C488B;
    font-weight: 500;
    transition: all 0.2s;
}

.nav-links a:hover {
    color: #f3653a;
    transform: translateY(-2px);
}

.nav-button {
    background: none;
    border: none;
    color: #1c488b;
    font-size: 1.5rem;
    cursor: pointer;
}


.page-layout {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    width: 100%;
    padding: 20px;
}

.hero {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    z-index: 1;
}

    .hero-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.7);
}

    .hero h1 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3rem;
    font-weight: 900;
    margin: 0;
    z-index: 1;
    text-align: center;
    .hero img{
        weight: 100%;
        height: 30px;
    }
}
.container {
    width: 320px;
    margin: 0;
    flex-shrink: 0;
    overflow: hidden;
    background: #fff;
    border-radius: 15px;
    box-shadow: 4px 4px 30px rgba(0, 0, 0, 0.06);
    padding: 20px;
    overflow-y: scroll;
}

.container::-webkit-scrollbar {
    display: none;
    width: 5px;
    
}

.container form {
    width: 100%;
    border: 2px solid #1C488B;
    border-radius: 50px;
    padding: 6px 10px;
    margin-bottom: 10px;
    color: #4b4a4a;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.container form input[type="text"] {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
    box-shadow: none;
    padding: 8px 10px;
    background: transparent;
}

.container form i {
    padding-left: 10px;
    font-size: 18px;
    color: #f3653a;
}

.filter-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.category-select {
    flex: 1;
    border-radius: 10px;
    padding: 6px 6px;
    font-size: 12px;
    background: #fff;
    cursor: pointer;
    width: 15%;
    border: 1px solid #1C488B;
}

.category-select:focus {
    border-color: #1C488B;
    color: #4b4a4a;
}

.filter-btn {
    background-color: #f3653a;
    border: none;
    border-radius: 6px;
    width: 40px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.filter-btn:hover {
    background-color: #1C488B;
}

.product {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding-bottom: 15px;
}

.product img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    margin-right: 15px;
}

.product .p-details h2 {
    font-size: 16px;
    color: #1C488B;
}

.product .p-details h3 {
    font-size: 14px;
    color: #45424f;
}

.features {
    flex: 1;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    max-width: 900px;
    padding: 0;
    margin: 0;
    box-shadow: none;
}

.features article {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 20px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

.features article img {
    width: 200px;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
}

.features article h3 {
    font-size: 20px;
    color: #1C488B;
    margin: 10px 0;
}

.features article h3 a {
    color: inherit;
    text-decoration: none;
    display: block;
}

.features article h3 a:hover {
    color: #f3653a;
}

.features article p {
    font-size: 15px;
    color: #45424f;
    text-align: left;
}

.features article button {
    background-color: #f3653a;
    border: none;
    border-radius: 6px;
    width: 100px;
    height: 40px;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.features article button:hover {
    background-color: #1C488B;
}

.file-preview {
    background: #f2f2f2;
    border-radius: 15px;
    height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.file-preview i {
    font-size: 100px;
    color: #1C488B;
}

.file-thumbs {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.file-thumb {
    background: #f2f2f2;
    border-radius: 10px;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.2s ease;
}

.file-thumb i {
    font-size: 32px;
    color: #1C488B;
}

.file-thumb.active {
    border-color: #f3653a;
}

.product-title {
    color: #1C488B;
    font-size: 2rem;
    margin-bottom: 15px;
}

.product-subtitle {
    color: #1C488B;
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.product-desc {
    color: #45424f;
    font-size: 1rem;
    margin-bottom: 25px;
}

.download-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

#selected-filename {
    font-size: 1.1rem;
    color: #45424f;
    font-weight: 500;
}

.download-main-btn {
    background-color: #f3653a;
    color: #fff;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.download-main-btn:hover {
    background-color: #1C488B;
}

.drawing-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 4px 4px 30px rgba(0, 0, 0, 0.06);
    padding: 30px;
}
@media (max-width: 768px) {

    .nav-links {
        position: fixed;
        top: 60px;
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        align-items: center;
        padding: 1rem 0;
        clip-path: circle(0px at 10% -10%);
        pointer-events: none;
    }

    .nav-button {
        display: block;
    }

    .nav-links.active {
        clip-path: circle(150% at 10% -10%);
        pointer-events: all;
    }

    .nav-links li {
        margin: 1rem 0;
        opacity: 0;
        transition: opacity 0.3s ease;
    }

    .nav-links.active li {
        opacity: 1;
        transform: translateY(0);
    }

    .nav-links li:nth-child(1) {
        transition-delay: 0.1s;
    }

    .nav-links li:nth-child(2) {
        transition-delay: 0.2s;
    }


    .page-layout {
        flex-direction: column;
    }

    .container {
        margin: 20px auto;
        width: calc(100% - 40px);
    }

    .product img {
        width: 110px;
        height: 110px;
        object-fit: cover;
        border-radius: 5px;
        margin-right: 18px;
    }

        .features {
        width: 100%;
        max-width: 100%;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 15px;
        padding: 0 20px 20px;
    }

    .features article {
        padding: 15px;
    }

    .features article img {
        width: 100%;
        max-width: 200px;
        height: auto;
    }

    .features article h3 {
        font-size: 18px;
    }

    .features article p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {


    .features {
        grid-template-columns: 1fr;
    }
      .wrapper {
    max-width: 90%;
  }

  .form.signup {
    width: calc(100% + 60px);
    padding: 20px 40px;
  }
}


@media (max-width: 700px) {
    .container-login {
        flex-direction: column;
        width: calc(100% - 40px);
    }

    .container-form:first-child {
        border-right: none;
        border-bottom: 1px solid #e2e8f0;

    }

}

.wrapper.simple {
  padding: clamp(12px, 3.5vw, 16px) clamp(12px, 5vw, 24px) clamp(24px, 6vw, 32px);
}

.wrapper.simple .form a {
  display: inline-block;
  margin-top: 4px;
  color: #1C488B;
}

.wrapper.simple .form a:hover {
  color: #f3653a;
  text-decoration: underline;
}

.wrapper.active {
  min-height: 480px;
  padding-bottom: clamp(20px, 5vw, 30px);
}

.wrapper.active .form.signup form {
  justify-content: flex-start;
  gap: clamp(10px, 2.5vw, 14px);
}

.wrapper.active .form.signup input[type="submit"] {
  display: block;
  margin-top: 0;
  height: clamp(42px, 10vw, 50px);
}

.wrapper.active .form.signup form > :not(input):empty {
  display: none;
}


.wrapper:not(:has(.form.signup)) {
  padding-bottom: clamp(20px, 5vw, 28px);
}


.wrapper:not(:has(.form.signup)) form input[type="submit"] {
  margin-top: 0;
}

.wrapper:not(:has(.form.signup)) form > br,
.wrapper:not(:has(.form.signup)) form > :not(input):empty {
  display: none;
}

.wrapper:not(:has(.form.signup)) a {
  display: inline-block;
  margin-top: 14px;
  color: #1C488B;
}
.wrapper:not(:has(.form.signup)) a:hover {
  color: #f3653a;
}

.form.login input[type="submit"]:hover,
.wrapper:not(:has(.form.signup)) form input[type="submit"]:hover {
  background: #f3653a;
}
/* Admin controls */
.admin-box {
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e3e3e3;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.admin-box input[type="file"] {
    font-family: inherit;
    font-size: 15px;
}
.admin-box input[type="file"]::file-selector-button {
    font-family: inherit;
    font-size: 15px;
    padding: 10px 18px;
    margin-right: 14px;
    border: 2px solid #e06d47;
    border-radius: 10px;
    background: #fff;
    color: #e06d47;
    cursor: pointer;
}
.admin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.admin-btn {
    border: none;
    cursor: pointer;
    font-family: inherit;
}
.admin-btn-danger {
    background: #b5412f;
}
.admin-btn-danger:hover {
    background: #9c3626;
}
#admin-message {
    margin: 0;
    font-size: 14px;
    min-height: 1em;
}
#upload-version {
    padding: 10px 12px;
    border: 1px solid #c9c9c9;
    border-radius: 8px;
    font-size: 15px;
    max-width: 200px;
}

#admin-message {
    font-size: 20px;
    font-weight: 600;
    margin-top: 4px;
}
#admin-message:empty {
    display: none;
}

/* Admin layout v2 */
#upload-input { display: none; }
.row-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
.upload-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
}
#upload-filename {
    font-size: 16px;
    color: #555;
    word-break: break-all;
}
.admin-btn.admin-btn-outline {
    background: #fff;
    color: #e06d47;
    box-shadow: inset 0 0 0 2px #e06d47;
}
.admin-btn.admin-btn-outline:hover {
    background: #fdf1ed;
}


/* Admin layout v3 */
.upload-row { justify-content: space-between; }
.upload-actions { display: flex; gap: 16px; margin-left: auto; }
.admin-btn.admin-btn-danger { background: #1C488B; }
.admin-btn.admin-btn-danger:hover { background: #1C488B; filter: brightness(0.9); }
