/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica', 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Container */
.app-container {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    overflow: hidden;
    min-height: 600px;
}

.app-container iframe {
    width: 100%;
    height: 600px;
    border: none;
    display: block;
}

/* Ad Space */
.ad-space {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  width: 100%;
}

.ad-wrapper {
  width: 728px;
  max-width: 100%;
  margin: 0 auto;
}



/* Footer */
.footer {
    background-color: #2c3e50;
    color: white;
    text-align: center;
    padding: 30px 20px;
    margin-top: 40px;
}

.footer .about-us {
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 10px;
    color: #ecf0f1;
}

.footer .copyright {
    font-size: 14px;
    color: #bdc3c7;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .app-container {
        margin: 0 10px;
        border-radius: 0;
    }

    .app-container iframe {
        height: 500px;
    }

    .ad-space {
        margin: 15px 10px;
        overflow-x: auto;
    }

    .footer {
        padding: 20px 15px;
        margin-top: 20px;
    }

    .footer .about-us {
        font-size: 14px;
    }

    .footer .copyright {
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .app-container iframe {
        height: 450px;
    }

    .ad-space {
        padding: 5px;
    }
}

/* Loading State for iframe */
.app-container::before {
    content: "Loading converter...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 18px;
    color: #666;
    z-index: -1;
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .app-container {
        border: 2px solid #000;
    }

    .footer {
        background-color: #000;
        color: #fff;
    }
}