/* Upload Page Styling */

body {
  background: url('../assets/upload-back.png') center center no-repeat;
  background-size: cover;
  background-attachment: fixed;
  background-position-y: calc(100% + 40px);
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem;
}

.bubble-link {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  font-weight: 600;
}

.bubble-link:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
  text-decoration: none;
  color: white;
}

.upload-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
  margin: 0 auto;
  max-width: 1800px;
  width: 100%;
  margin-top: 2rem;
}

.upload-card h2 {
  text-align: center;
  color: #546cb6;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
}

.form-label {
  display: block;
  font-weight: 600;
  color: #34495e;
  margin-bottom: 0.5rem;
}

.file-drop-area {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  border: 2px dashed #e0e0e0;
  border-radius: 0.5rem;
  background-color: rgba(240, 240, 240, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.file-drop-area:hover {
  background-color: rgba(230, 230, 230, 0.8);
}

.file-drop-area i {
  color: #546cb6;
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.hidden {
  display: none;
}

input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e0e0e0;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.8);
}

input[type="text"]:focus {
  border-color: #546cb6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem 2rem;
  background: rgba(52, 152, 219, 0.05);
  color: #546cb6;
  border: none;
  border-radius: 15px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover:not(:disabled) {
  background: rgba(52, 152, 219, 0.1);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
  color: #546cb6;
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: rgba(52, 152, 219, 0.03);
  color: #546cb6;
}

.btn-primary.ready {
  background: #546cb6 !important;
  color: white !important;
  box-shadow: 0 5px 20px rgba(84, 108, 182, 0.3);
  transform: translateY(-1px);
}

.btn-primary.ready:hover {
  background: #4a5fa3 !important;
  box-shadow: 0 8px 25px rgba(84, 108, 182, 0.4);
  transform: translateY(-2px);
}

.file-name {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: #34495e;
}

.file-name i {
  color: #546cb6;
  margin-right: 0.25rem;
}

.recent-uploads {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid #e0e0e0;
}

.recent-uploads h3 {
  color: #546cb6;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.no-uploads {
  color: #7f8c8d;
  font-style: italic;
}

.upload-item {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  color: #34495e;
}

.upload-item i {
  color: #546cb6;
  margin-right: 0.5rem;
}

.space-y-6 > * + * {
  margin-top: 1.5rem;
}

.space-y-2 > * + * {
  margin-top: 0.5rem;
}

.text-center {
  text-align: center;
}

.text-sm {
  font-size: 0.875rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .upload-card {
    padding: 1.5rem;
  }
}

/* Form styling */
.upload-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.text-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.text-input:focus {
    outline: none;
    border-color: #546cb6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(84, 108, 182, 0.1);
}

/* File drop area styling */
.file-drop-area {
    border: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    padding: 3rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(52, 152, 219, 0.05);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.file-drop-area:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.1);
}

.file-drop-area:active {
    transform: translateY(-1px);
}

.file-input {
    display: none;
}

.upload-content {
    width: 100%;
}

.upload-icon {
    font-size: 4rem;
    color: #546cb6;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
    display: block;
}

.file-drop-area:hover .upload-icon {
    color: #4a5fa3;
    transform: scale(1.1);
}

.upload-text {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
}

.upload-subtext {
    color: #546cb6;
    font-size: 1rem;
    margin-bottom: 0.3rem;
}

.form-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-input:focus {
    outline: none;
    border-color: #546cb6;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-input::placeholder {
    color: rgba(44, 62, 80, 0.6);
}

.upload-btn {
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, #546cb6, #546cb6);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.upload-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(52, 152, 219, 0.3);
}

.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.file-name {
    margin-top: 0.5rem;
    color: #546cb6;
    font-weight: 500;
}

.recent-uploads {
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding-top: 1.5rem;
}

.uploads-title {
    color: white;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.uploads-list {
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.logo {
    align-items: left;
}

.log-sign {
    align-items: right;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.mx-auto { margin-left: auto; margin-right: auto; }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-grow { flex-grow: 1; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.gap-8 { gap: 2rem; }
.gap-10 { gap: 2.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-12 { margin-top: 3rem; }
.py-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }
.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.text-center { text-align: center; }
.hidden { display: none; }
.max-w-2xl { max-width: 42rem; }
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.w-full { width: 100%; }

.bubble-link {
    display: inline-flex;
    align-items: center;
    background-color: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.bubble-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
    background-color: white;
}

.bubble-link i {
    margin-right: 1.5rem;
}

.text-content {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin: 0 0 15px 0;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: #34495e;
    margin-bottom: 30px;
    font-weight: 400;
}

h2 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin: 0 0 25px 0;
}

h3 {
    font-size: 1.2rem;
    font-weight: 500;
    color: #34495e;
    margin-bottom: 1rem;
}

.features {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.feature {
    display: flex;
    align-items: center;
    color: #34495e;
}

.feature i {
    color: #546cb6;
    font-size: 1.25rem;
    margin-right: 0.5rem;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    padding: 15px;
    background: rgba(52, 152, 219, 0.05);
    color: #546cb6;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.1);
    text-decoration: none;
    margin-left: 0;
}

.btn-primary:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
    color: #546cb6;
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    background: rgba(52, 152, 219, 0.03);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-primary i {
    margin-right: 0.5rem;
    color: #546cb6;
}

.upload-card {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.card-header {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.card-content {
    padding: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #34495e;
}

input[type="text"] {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: rgba(255, 255, 255, 0.8);
}

input[type="text"]:focus {
    border-color: #546cb6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

.file-drop-area {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    border: 1px solid rgba(52, 152, 219, 0.1);
    border-radius: 15px;
    background: rgba(52, 152, 219, 0.05);
    cursor: pointer;
    transition: all 0.3s ease;
    min-height: 200px;
}

.file-drop-area:hover {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.1);
}

.file-drop-area i {
    color: #546cb6;
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
}

.file-name {
    padding: 0.75rem 1rem;
    background: rgba(84, 108, 182, 0.1);
    border-radius: 10px;
    color: #2c3e50;
    font-weight: 500;
    margin-top: 0.5rem;
    display: none;
    border: 1px solid rgba(84, 108, 182, 0.2);
}

.file-name.show {
    display: flex;
    align-items: center;
}

.file-name i {
    color: #546cb6;
    margin-right: 0.5rem;
}

/* Button styling */
.upload-actions {
    display: flex;
    justify-content: center;
    margin-top: 1rem;
}

.btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: rgba(52, 152, 219, 0.05);
    color: #546cb6;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    gap: 0.5rem;
    min-width: 160px;
}

.btn-primary:hover:not(:disabled) {
    background: rgba(52, 152, 219, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(52, 152, 219, 0.15);
    text-decoration: none;
    color: #546cb6;
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    background: rgba(52, 152, 219, 0.03);
}

.btn-primary i {
    font-size: 1.2rem;
    color: #546cb6;
}

/* Recent uploads section */
.recent-uploads {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    margin-top: 2rem;
}

.recent-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    text-align: center;
}

.uploads-list {
    min-height: 100px;
}

.no-uploads {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 2rem;
    color: #7f8c8d;
    font-style: italic;
    text-align: center;
}

.no-uploads i {
    font-size: 1.5rem;
    color: #546cb6;
}

.upload-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 1rem;
    background: rgba(84, 108, 182, 0.05);
    border-radius: 10px;
    margin-bottom: 0.5rem;
    border: 1px solid rgba(84, 108, 182, 0.1);
    transition: all 0.3s ease;
}

.upload-item:hover {
    background: rgba(84, 108, 182, 0.1);
    transform: translateY(-2px);
}

.upload-item i {
    color: #546cb6;
    margin-right: 0.75rem;
    font-size: 1.2rem;
}

/* Responsive design */
@media (max-width: 768px) {
    .upload-unified-card {
        width: 98%;
        padding: 1.5rem;
    }
    
    .file-drop-area {
        padding: 2rem 1rem;
        min-height: 150px;
    }
    
    .upload-icon {
        font-size: 3rem;
    }
    
    .upload-text {
        font-size: 1rem;
    }
    
    .upload-subtext {
        font-size: 0.9rem;
    }
    
    .recent-uploads {
        padding: 1.5rem;
    }
}


html, body {
    height: 100%;
}

/* ===== FORCE UPLOAD PAGE WIDTH TO MATCH HOMEPAGE ===== */
/* Override all container widths to match homepage features-card */
.main-wrapper {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
}

.content-container {
  width: 100% !important;
  max-width: 1200px !important;
}

.container {
  width: 100% !important;
  max-width: 1200px !important;
}

/* Override Tailwind classes that are constraining width */
div[class*="lg:w-4/5"] {
  width: 100% !important;
  max-width: 900px !important;
}

div[class*="xl:w-3/4"] {
  width: 100% !important;  
  max-width: 900px !important;
}

/* Force upload card to match homepage size and positioning */
.upload-card {
  background: rgba(255, 255, 255, 0.9) !important;
  backdrop-filter: blur(20px) !important;
  border-radius: 25px !important;
  padding: clamp(1.5rem, 3vw, 2rem) !important;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  width: 100% !important;
  max-width: 770px !important;
  transition: all 0.3s ease !important;
  margin: 0 auto !important;
  margin-top: 11.875rem !important;
  margin-bottom: 5rem !important;
}

/* Center the upload button */
.upload-button-container {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* Remove hover effect to prevent shifting */
.upload-card:hover {
  /* No transform to prevent shifting */
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.12) !important;
}