* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: #333;
}

/* Navbar */
.navbar {
  background: #0087fe;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-box img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.brand-text {
  color: #fff;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.5px;
}

/* Main Layout */
.main {
  display: flex;
  justify-content: center;
  padding: 40px 20px;
  flex: 1; /* Pushes footer down */
}

.card {
  width: 100%;
  max-width: 650px;
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

/* Ad Unit Placeholders */
.ad-container {
  background: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  margin-bottom: 25px;
  text-align: center;
  overflow: hidden;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Controls Container */
.workspace-controls {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.workspace-controls input {
  flex: 1;
  padding: 15px 18px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 15px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.workspace-controls input:focus {
  border-color: #0087fe;
  box-shadow: 0 0 0 3px rgba(0, 135, 254, 0.1);
}

textarea {
  width: 100%;
  height: 200px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 15px;
  outline: none;
  font-size: 16px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 20px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

textarea:focus {
  border-color: #0087fe;
  box-shadow: 0 0 0 3px rgba(0, 135, 254, 0.1);
}

.upload-controls {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  background: #f8fafc;
  padding: 15px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.upload-controls input[type="file"] {
  flex: 1;
  font-size: 14px;
}

/* General Buttons */
button {
  background: #0A66C2;
  color: white;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  transition: background 0.2s ease, transform 0.1s ease;
}

button:hover {
  background: #004182;
}

button:active {
  transform: scale(0.97);
}

/* File Display List */
.file-box {
  margin-top: 20px;
  padding: 20px;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  text-align: center;
  border: 1px solid #e2e8f0;
}

.file-box h4 {
  margin-bottom: 15px;
  color: #1e293b;
  font-size: 16px;
}

iframe {
  width: 100%;
  height: 400px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #f8fafc;
}

img {
  max-width: 100%;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
}

.file-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Professional Footer & Dark Gradient Background */
.site-footer {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
  padding: 50px 20px 20px;
  text-align: center;
  margin-top: auto;
}

.footer-ad {
  margin: 0 auto 40px;
  max-width: 728px;
  min-height: 90px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.site-footer nav {
  display: flex;
  justify-content: center;
  gap: 30px;
  flex-wrap: wrap;
  margin-bottom: 25px;
}
.nav-links {
  display: flex;
  gap: 30px;
  justify-content: center;
  flex-wrap: wrap;
  color: #e8e8e8;
}

.site-footer nav a {
  color: #cbd5e1;
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  position: relative;
  transition: color 0.3s ease;
  padding-bottom: 4px;
}

.site-footer nav a:hover {
  color: #fff;
}

/* Smooth underline hover effect for footer navigation */
.site-footer nav a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: 0;
  left: 50%;
  background: #0087fe;
  transition: width 0.3s ease, left 0.3s ease;
}

.site-footer nav a:hover::after {
  width: 100%;
  left: 0;
}
.socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}
.copyright {
  color: #94a3b8;
  font-size: 13px;
  letter-spacing: 0.5px;
}

/* Mobile Responsiveness */
@media (max-width: 600px) {
  .workspace-controls, .upload-controls {
    flex-direction: column;
    align-items: stretch;
  }
  
  .site-footer nav {
    flex-direction: column;
    gap: 15px;
  }
}