/* Variables for colors */
:root {
    --neutral-gray-700: #2F2B4A;
    --neutral-gray-400: #828092;
}

#uploadForm {
    width: 100%;
    max-width: 747px;
    margin-left: auto;
    margin-right: auto;
    padding: 20px;
    border-radius: 16px;
    background: rgba(235, 235, 242, 0.56);
    backdrop-filter: blur(3px);
}
#uploadForm h3 {
    font-size: 23px;
    font-weight: 700;
    line-height: 30px;
}
#uploadForm h4 {
    color: #2F2B4A;
    font-size: 19.2px;
    font-weight: 700;
    line-height: 30px;
    margin-top: 39px;
}
/* Common text styles */
.inter-text {
    color: var(--neutral-gray-700);
}

/* Header Styles */
header {
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    font-size: 24px;
}

header p {
    font-size: 16px;
    color: var(--neutral-gray-400);
}

/* Drop Zone and File Info Styles */
#drop_zone,
#file-info {
    padding: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    border-radius: 8px;
    border: 1px dashed #CBD0DC;
    background: #FFF;
    gap: 16px;
}

.upload-contents {
    display: flex;
    align-items: center;
    gap: 16px;
}

/* Upload Instructions and Details */
.upload-icon, .tick-icon, .finish-icon {
    height: auto; /* Maintain aspect ratio */
    max-width: 100%; /* Restrict size to container */
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 4px;
    object-fit: cover;
}
.file-sizing-info {
    display: flex;
    gap: 10px;
}
/* File Details Layout */
#file-details {
    display: flex;
    align-items: center; /* Center items vertically */
    justify-content: flex-start; /* Align items to the start of the container */
    gap: 12px;
    color: var(--Neutral-Gray-400, #828092);
    font-size: 16px;
    font-weight: 400;
    line-height: 30px; /* 24px */
}

/* File Size and Status */
#file-size, #complete-text {
    display: inline-block; /* Allows elements to sit next to each other */
}
#file-name {
    color: #2F2B4A;
    font-size: 19.2px;
    font-weight: 700;
    line-height: 20px;
}

.file-prompt {
    color: var(--Neutral-Gray-700, #2F2B4A);
    font-size: 19.2px;
    font-style: normal;
    font-weight: 700;
    line-height: 30px; /* 140% */
    margin-top: 0;
    margin-bottom: 4px;
}
#scan-complete {
    color: #2F2B4A;
    font-size: 19.2px;
    font-weight: 700;
    line-height: 30px;
}
#rescan-prompt {
    color: #828092;
    line-height: 30px;
}
.file-formats, .scan-status, .scan-tip {
    color: var(--Neutral-Gray-400, #828092);
    /* Paragraph/P2/Regular */
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 30px; /* 24px */
    margin-top: 0;
    margin-bottom: 0;
}

.fs-recommended-stores .fs-store {
    width: 100px;
    height: 100px;
    align-items: center;
    justify-content: center;
    display: flex;
    border-radius: 10px;
    border: 2px solid #F0F0F4;
    background: #FFF;
    padding: 12px;
    transition: 0.2s;
}
.fs-recommended-stores .fs-store:hover {
    border: 2px solid #393D48;
}

.fs-recommended-stores .fs-store img {
    max-width: 100%;
}
.fs-recommended-stores {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

#browseButton:hover, .rescan-button:hover {
    background-color: #C7D2FE;
}

.delete-button {
    background-color: #fef2f2;
    color: #b91c1c;
}

.delete-button:hover {
    background-color: #fecaca;
}

/* Progress Bar Styles */
.progress-bar-container {
    width: 100%; /* Full width of the container */
    border-radius: 50px;
    background: #F2F2F2;
    display: none; /* Hidden by default */
}

.progress-bar {
    height: 10px;
    width: 0%;
    transition: width 0.5s linear;
    border-radius: 50px;
    background: linear-gradient(90deg, #6647E6 0.04%, #EBFF96 100.68%);
}

/* Result Styles */
#result {
    margin-top: 20px;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    color: #2F2B4A;
    font-size: 16px;
    font-weight: 400;
    line-height: 30px;
}

#result a {
    color: #3B82F6;
    text-decoration: none;
}

#result a:hover {
    text-decoration: underline;
}
#result ul {
    padding-left: 25px;
}
.loading-icon svg {
    animation: spin 2s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Additional CSS for the completion message layout */
#completion-message {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 20px;
    padding: 40px;
    border-top: 1px dashed #CBD5E1;
    width: calc(100% + 80px);
    margin-left: -40px;
    margin-right: -40px;
    padding-bottom: 0;
}

.finish-icon {
    /* Adjust as needed for the size of your icon */
    max-width: 24px;
    max-height: 24px;
}

.completion-texts {
    flex-grow: 1; /* Allow this div to grow and fill space */
    padding-left: 16px; /* Add some space from the icon */
}



/* Buttons */
#deleteButton {
    display: none !important;
}
.fs-btn {
    background-color: #fff;
    transition: 0.4s;
    display: inline-flex;
    padding: 12px 18px;
    justify-content: center;
    align-items: center;
    gap: 6px;
    border-radius: 5px;
    border: 1px solid #6343EF;
    color: #6343EF;
    text-align: center;
    font-size: 13.3px;
    font-weight: 600;
    line-height: 18px; /* 21px */
}

.fs-btn:hover {
    background-color: #F1EDFF;
}

#result .link-recommendation a {
    color: #6343EF;
    position: relative;
    text-decoration: underline;
    text-transform: capitalize;
    font-weight: 600;
    text-decoration-color: #D2CAE7;
    text-decoration-thickness: 2px;
    transition: 0.2s;
}
#result .link-recommendation a:hover {
    text-decoration-color: #6343ef;
}

#result ul li::marker {
    color: #B7D344;
}

.fs-social-icon path:first-child {
    transition: 0.4s;
}
.fs-social-icon:hover path:first-child {
    fill: #714FFF;
}
@media (max-width: 991px) {
    #uploadForm {
        max-width: 664px;
        padding: 16px;
    }
    #drop_zone, #file-info {
        padding: 20px;
    }
}
/* Media Queries for Responsiveness */
@media (max-width: 480px) {
    body {
        margin-left: 0;
        margin-right: 0;
    }
    #uploadForm {
        max-width: calc(100vw - 40px);
    }
    #drop_zone, #file-info {
        flex-direction: column;
    }
    #completion-message {
        width: calc(100% + 48px);
        margin-left: -20px;
        margin-right: -20px;
        padding: 24px;
        flex-direction: column;
        gap: 8px;
    }
    .upload-contents {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 7px;
        text-align: center;
    }
    .file-prompt {
        font-size: 14px;
        line-height: 21px;
    }
    .file-formats, .scan-status, .scan-tip {
        font-size: 12px;
        line-height: 18px;
    }
    .fs-btn {
        font-size: 12px;
        line-height: 18px; /* 150% */
        padding: 12px 18px;   
    }
    .fs-recommended-stores .fs-store {
        width: 80px;
        height: 80px;
    }
    #file-name {
        font-size: 14px;
        font-weight: 600;
    }
    #file-details {
        font-size: 12px;
        line-height: 18px;
    }
    
}

/* Add these to your existing style.css */

.symmetry-result.overall {
    background: #f8f9ff;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
}

.feature-analysis {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

.feature-result {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 20px;
    transition: transform 0.2s;
}

.feature-result:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.detailed-observation {
    margin-top: 12px;
    padding: 16px;
    background: #F8F9FF;
    border-radius: 8px;
    border-left: 3px solid #6343EF;
}

.symmetry-result.overall .detailed-observation {
    background: #F1EDFF;
    border-left: 3px solid #B7D344;
    margin: 16px 0;
}

.detailed-observation p {
    color: #2F2B4A;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.golden-ratio {
    grid-column: 1 / -1;
    background: linear-gradient(135deg, #fff9e6, #fff);
}

.golden-ratio .detailed-observation {
    background: linear-gradient(135deg, #FFF9E6, #FFF);
    border-left: 3px solid #FFB547;
}

.symmetry-context {
    background: #fff5e6;
    border-radius: 8px;
    padding: 20px;
    margin-top: 24px;
}

.symmetry-tip {
    background: #f0f7ff;
    border-left: 4px solid #6343EF;
    padding: 16px;
    margin-top: 16px;
    border-radius: 0 8px 8px 0;
}

@media (max-width: 991px) {
    .feature-analysis {
        grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    }
    
    .detailed-observation {
        padding: 14px;
    }
}

@media (max-width: 480px) {
    .feature-analysis {
        grid-template-columns: 1fr;
    }
    
    .detailed-observation {
        padding: 12px;
    }
    
    .detailed-observation p {
        font-size: 13px;
    }
    
    .feature-result {
        padding: 16px;
    }
    
    .symmetry-tip {
        padding: 14px;
    }
}

/* Related Tools Section */
.related-tools {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #eee;
  }
  
  .related-tools h3 {
    color: var(--Neutral-Gray-700, #2F2B4A);
    font-family: 'Inter', sans-serif;
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 24px;
  }
  
  .tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .tool-card {
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    transition: all 0.3s ease;
    padding: 24px;
  }
  
  .tool-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(99, 67, 239, 0.1);
    border-color: #6343EF;
  }
  
  .tool-card-link {
    display: flex;
    align-items: center;
    flex: 1;
    text-decoration: none;
  }
  
  .tool-icon {
    font-size: 24px;
    margin-right: 16px;
    background: #F1EDFF;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    flex-shrink: 0;
  }
  
  .tool-content {
    flex: 1;
  }
  
  .tool-content h4 {
    color: var(--Neutral-Gray-700, #2F2B4A);
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 4px 0;
  }
  
  .tool-content p {
    color: var(--Neutral-Gray-400, #828092);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    margin: 0;
    line-height: 1.4;
  }
  
  .tool-arrow-wrapper {
    padding-left: 16px;
    display: flex;
    align-items: center;
  }
  
  .tool-arrow {
    color: #6343EF;
    font-size: 20px;
    opacity: 0;
    transform: translateX(-10px);
    transition: all 0.3s ease;
    pointer-events: none;
  }
  
  .tool-card:hover .tool-arrow {
    opacity: 1;
    transform: translateX(0);
  }
  
  @media (max-width: 768px) {
    .tools-grid {
      grid-template-columns: 1fr;
    }
    
    .tool-card {
      padding: 16px;
    }
    
    .tool-icon {
      width: 40px;
      height: 40px;
      font-size: 20px;
    }
  }
  
  @media (max-width: 480px) {
    .related-tools h3 {
      font-size: 19.2px;
    }
    .tool-content h4 {
      font-size: 16px;
    }
    .tool-content p {
      font-size: 14px;
    }
  }

  .legal-links {
    margin-top: 16px;
    color: #9A98AD;
    font-size: 12px;
    text-align: center;
    padding: 0 12px;
    line-height: 1.4;
  }

  .legal-links a {
    color: #828092;
    text-decoration: none;
    transition: color 0.2s;
  }

  .legal-links a:hover {
    color: #6343EF;
    text-decoration: underline;
  }

  @media (max-width: 480px) {
    .legal-links {
      font-size: 11px;
      margin-top: 12px;
    }
  }