*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Tahoma,sans-serif;
}

body{

    background:#edf2f7;

    min-height:100vh;

    display:flex;

    flex-direction:column;

}

header{

    position:fixed;

    top:0;

    left:0;

    right:0;

    height:70px;

    background:#0f172a;

    color:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:24px;

    font-weight:bold;

    z-index:999;

    box-shadow:0 2px 10px rgba(0,0,0,.2);

}

footer{

    background:#0f172a;

    color:white;

    height:55px;

    display:flex;

    justify-content:center;

    align-items:center;

    margin-top:auto;

}

.container{

    width:100%;

    display:flex;

    justify-content:center;

    align-items:center;

    padding-top:120px;

    padding-bottom:60px;

}

.card{

    background:white;

    width:420px;

    border-radius:15px;

    padding:35px;

    box-shadow:0 10px 30px rgba(0,0,0,.15);

}

.card h2{

    text-align:center;

    margin-bottom:30px;

    color:#0f172a;

}

.input-group{

    margin-bottom:20px;

}

.input-group label{

    display:block;

    margin-bottom:8px;

    font-size:15px;

}

.input-group input{

    width:100%;

    height:50px;

    border:1px solid #ddd;

    border-radius:8px;

    padding:12px;

    font-size:16px;

}

.input-group input:focus{

    outline:none;

    border:1px solid #2563eb;

}

button{

    width:100%;

    height:50px;

    background:#2563eb;

    color:white;

    border:none;

    border-radius:8px;

    font-size:18px;

    cursor:pointer;

    transition:.3s;

}

button:hover{

    background:#1d4ed8;

}

.error{

    background:#fee2e2;

    color:#dc2626;

    padding:12px;

    border-radius:8px;

    margin-bottom:20px;

    text-align:center;

}

@media(max-width:500px){

.card{

width:92%;

padding:25px;

}

header{

font-size:20px;

}

}


.header{

width:100%;

display:flex;

justify-content:space-between;

align-items:center;

padding:0 30px;

}

.logout{

color:white;

text-decoration:none;

background:#dc2626;

padding:8px 18px;

border-radius:6px;

}

.logout:hover{

background:#b91c1c;

}

.upload-card{

background:white;

width:700px;

padding:35px;

border-radius:15px;

box-shadow:0 10px 30px rgba(0,0,0,.15);

}

.upload-card h2{

text-align:center;

margin-bottom:25px;

}

#dropArea{

border:3px dashed #2563eb;

padding:45px;

text-align:center;

border-radius:12px;

cursor:pointer;

transition:.3s;

}

#dropArea:hover{

background:#eff6ff;

}

#dropArea p{

margin:10px;

}

#selectButton{

margin-top:15px;

width:220px;

}

#fileInfo{

margin-top:25px;

font-weight:bold;

text-align:center;

}

.progress{

width:100%;

height:30px;

background:#ddd;

border-radius:50px;

margin-top:25px;

overflow:hidden;

}

.progress-bar{

height:100%;

width:0%;

background:#22c55e;

color:white;

display:flex;

justify-content:center;

align-items:center;

transition:.2s;

}

#uploadButton{

margin-top:25px;

}

#status{

margin-top:20px;

font-size:18px;

text-align:center;

font-weight:bold;

}

@media(max-width:760px){

.upload-card{

width:95%;

}

.header{

padding:0 15px;

}

}

.infoTable{

width:100%;

border-collapse:collapse;

margin-top:20px;

}

.infoTable td{

padding:15px;

border-bottom:1px solid #ddd;

}

.downloadButton{

display:block;

width:100%;

padding:15px;

text-align:center;

background:#16a34a;

color:white;

text-decoration:none;

border-radius:10px;

font-size:20px;

transition:.3s;

}

.downloadButton:hover{

background:#15803d;

}

/* =========================================
   Upload System
========================================= */

.upload-description {
    text-align: center;
    color: #64748b;
    margin-top: -15px;
    margin-bottom: 25px;
}


.drop-area {
    border: 2px dashed #2563eb;
    border-radius: 14px;
    padding: 35px 20px;
    text-align: center;
    cursor: pointer;
    transition: .25s;
}


.drop-area:hover,
.drop-area.drag-over {
    background: #eff6ff;
    border-color: #1d4ed8;
}


.drop-icon {
    font-size: 42px;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 10px;
}


.drop-area p {
    margin: 7px;
    color: #64748b;
}


.file-info {
    margin-top: 20px;
}


.selected-file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 9px;
    padding: 12px;
    margin-bottom: 8px;
}


.selected-file-size {
    color: #64748b;
    font-size: 13px;
    margin-top: 4px;
}


.remove-file {
    width: 35px;
    height: 35px;
    padding: 0;
    background: #fee2e2;
    color: #dc2626;
    font-size: 22px;
    border-radius: 7px;
}


.remove-file:hover {
    background: #fecaca;
}


.selection-summary {
    text-align: center;
    margin-top: 15px;
    color: #475569;
    font-weight: bold;
}


.progress-container {
    margin-top: 20px;
}


.progress {
    width: 100%;
    height: 28px;
    background: #e2e8f0;
    border-radius: 30px;
    overflow: hidden;
}


.progress-bar {
    width: 0%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2563eb;
    color: white;
    font-weight: bold;
    transition: width .15s;
}


.upload-main-button {
    margin-top: 20px;
}


.upload-main-button:disabled {
    opacity: .6;
    cursor: not-allowed;
}


.status {
    margin-top: 18px;
    text-align: center;
    font-weight: bold;
}


.success-status {
    color: #16a34a;
}


.error-status {
    color: #dc2626;
}


.uploading-status {
    color: #2563eb;
}


.result-area {
    margin-top: 20px;
}


.result-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px;
}


.result-title {
    text-align: center;
    font-size: 19px;
    font-weight: bold;
    color: #16a34a;
}


.result-count {
    text-align: center;
    color: #64748b;
    margin-top: 5px;
}


.share-link-row {
    display: flex;
    gap: 8px;
    margin-top: 18px;
}


.share-link-row input {
    flex: 1;
    min-width: 0;
    height: 48px;
    padding: 10px;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
}


.share-link-row button {
    width: 100px;
    height: 48px;
}


.copy-message {
    text-align: center;
    color: #16a34a;
    font-weight: bold;
    margin-top: 10px;
}


@media(max-width:600px) {

    .upload-card {
        padding: 20px;
    }


    .share-link-row {
        flex-direction: column;
    }


    .share-link-row button {
        width: 100%;
    }

}

/* =========================================
   Shared Files / Preview
========================================= */

.share-card {
    width: 100%;
}


.share-card h2 {
    text-align: center;
    margin-bottom: 5px;
}


.share-date {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 25px;
}


.shared-files {
    display: flex;
    flex-direction: column;
    gap: 20px;
}


.shared-file-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,.05);
}


.file-preview {
    width: 100%;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}


/* IMAGE */

.image-preview-link {
    display: block;
    width: 100%;
    text-align: center;
}


.image-preview {
    display: block;
    max-width: 100%;
    max-height: 500px;
    width: auto;
    height: auto;
    margin: auto;
    cursor: zoom-in;
}


/* PDF */

.pdf-preview {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}


/* VIDEO */

.video-preview {
    display: block;
    width: 100%;
    max-height: 600px;
    background: #000;
}


/* GENERIC FILE */

.generic-preview {
    width: 100%;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}


.file-extension {
    width: 120px;
    height: 120px;
    border-radius: 18px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: bold;
    color: #334155;
}


/* FILE INFORMATION */

.file-details {
    padding: 18px;
}


.shared-file-name {
    font-size: 18px;
    font-weight: bold;
    word-break: break-word;
}


.shared-file-meta {
    margin-top: 8px;
    color: #64748b;
    font-size: 13px;
    word-break: break-word;
}


.downloadButton {
    display: block;
    width: 100%;
    box-sizing: border-box;
    margin-top: 18px;
    padding: 13px;
    text-align: center;
    background: #16a34a;
    color: #ffffff;
    text-decoration: none;
    border-radius: 9px;
    font-weight: bold;
    transition: .2s;
}


.downloadButton:hover {
    background: #15803d;
}


@media (max-width: 600px) {

    .pdf-preview {
        height: 450px;
    }


    .video-preview {
        max-height: 400px;
    }


    .generic-preview {
        min-height: 170px;
    }


    .file-extension {
        width: 100px;
        height: 100px;
        font-size: 25px;
    }

}
/* =========================================
   STEP / STP 3D Preview
========================================= */

.step-preview {
    width: 100%;
    min-height: 260px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        linear-gradient(
            135deg,
            #f8fafc,
            #eef2ff
        );
}


.step-view-card {

    width: 100%;
    max-width: 650px;

    min-height: 210px;

    display: flex;
    align-items: center;

    gap: 25px;

    padding: 25px;

    text-decoration: none;

    color: #0f172a;

    background: rgba(255,255,255,.95);

    border: 1px solid #dbe3ef;

    border-radius: 18px;

    box-shadow:
        0 8px 25px
        rgba(15,23,42,.08);

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        border-color .2s ease;

}


.step-view-card:hover {

    transform:
        translateY(-4px);

    border-color:
        #93c5fd;

    box-shadow:
        0 14px 35px
        rgba(15,23,42,.13);

}


/* -----------------------------------------
   3D ICON
----------------------------------------- */

.step-model-icon {

    width: 125px;
    height: 125px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            #dbeafe,
            #eff6ff
        );

}


/* Fake 3D cube */

.cube {

    width: 75px;
    height: 75px;

    position: relative;

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        #2563eb;

    border-radius: 10px;

    transform:
        rotate(-8deg);

    box-shadow:
        10px 10px 0 #1d4ed8,
        -7px 7px 0 #60a5fa;

}


.cube-front {

    color: white;

    font-size: 23px;

    font-weight: 800;

    letter-spacing: 1px;

    transform:
        rotate(8deg);

}


/* -----------------------------------------
   TEXT
----------------------------------------- */

.step-content {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 7px;

}


.step-title {

    font-size: 21px;

    font-weight: 700;

}


.step-filename {

    font-size: 13px;

    color: #64748b;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    max-width: 390px;

}


.step-open {

    margin-top: 10px;

    display: inline-flex;

    align-items: center;

    gap: 9px;

    width: fit-content;

    padding: 9px 15px;

    border-radius: 8px;

    background:
        #2563eb;

    color: white;

    font-size: 13px;

    font-weight: 600;

    transition:
        background .2s ease;

}


.step-view-card:hover
.step-open {

    background:
        #1d4ed8;

}


.step-play {

    font-size: 10px;

}


/* -----------------------------------------
   MOBILE
----------------------------------------- */

@media(max-width:600px) {

    .step-preview {

        padding: 12px;

        min-height: 210px;

    }


    .step-view-card {

        min-height: 170px;

        padding: 18px;

        gap: 16px;

        border-radius: 15px;

    }


    .step-model-icon {

        width: 85px;

        height: 85px;

        border-radius: 12px;

    }


    .cube {

        width: 52px;

        height: 52px;

        box-shadow:
            7px 7px 0 #1d4ed8,
            -5px 5px 0 #60a5fa;

    }


    .cube-front {

        font-size: 16px;

    }


    .step-title {

        font-size: 17px;

    }


    .step-filename {

        max-width: 210px;

        font-size: 12px;

    }


    .step-open {

        padding: 8px 11px;

        font-size: 12px;

    }

}
/* =========================================
   GLB PREVIEW new
========================================= */

.glb-preview-box {

    width: 100%;

    padding: 18px;

    background: #f8fafc;

}


.glb-preview-link {

    width: 100%;

    min-height: 150px;

    display: flex;

    align-items: center;

    gap: 20px;

    padding: 22px;

    text-decoration: none;

    color: #0f172a;

    background: #ffffff;

    border: 1px solid #e2e8f0;

    border-radius: 14px;

    cursor: pointer;

    transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        border-color 0.15s ease;

}


.glb-preview-link:hover {

    transform: translateY(-2px);

    border-color: #93c5fd;

    box-shadow:
        0 8px 25px
        rgba(15, 23, 42, 0.10);

}


/* 3D icon */

.glb-preview-icon {

    width: 85px;

    height: 85px;

    min-width: 85px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: #2563eb;

    color: #ffffff;

    font-size: 24px;

    font-weight: 800;

}


/* Text */

.glb-preview-content {

    min-width: 0;

    display: flex;

    flex-direction: column;

    gap: 6px;

}


.glb-preview-title {

    font-size: 19px;

    font-weight: 700;

}


.glb-preview-name {

    max-width: 500px;

    overflow: hidden;

    text-overflow: ellipsis;

    white-space: nowrap;

    font-size: 13px;

    color: #64748b;

}


.glb-preview-action {

    width: fit-content;

    margin-top: 8px;

    padding: 8px 13px;

    border-radius: 7px;

    background: #2563eb;

    color: #ffffff;

    font-size: 12px;

    font-weight: 600;

}


/* Mobile */

@media (max-width: 600px) {

    .glb-preview-box {

        padding: 10px;

    }


    .glb-preview-link {

        min-height: 125px;

        padding: 15px;

        gap: 14px;

        border-radius: 12px;

    }


    .glb-preview-icon {

        width: 65px;

        height: 65px;

        min-width: 65px;

        border-radius: 11px;

        font-size: 18px;

    }


    .glb-preview-title {

        font-size: 16px;

    }


    .glb-preview-name {

        max-width: 210px;

        font-size: 11px;

    }


    .glb-preview-action {

        margin-top: 5px;

        padding: 7px 10px;

        font-size: 11px;

    }

}

