/* Global Styles */
body {
    font-family: Arial, sans-serif;
    padding: 20px;
    background-color: #f5f5f5;
    margin: 0 auto;
    max-width: 900px;
}

h1 {
    text-align: left;
    color: #333;
    margin-top: 0;
    margin-bottom: 20px;
    font-size: 20px;
}

/* Header and Logo */
.header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.logo {
    height: 50px;
    display: flex;
    align-items: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}

.logo img {
    height: 100%;
    width: auto;
    border: none;
    border-radius: 0;
}

/* Container and Sections */
.container {
    display: block;
    max-width: 100%;
}

.tool-section {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 8px;
    width: 100%;
    box-sizing: border-box;
}

.tool-section.empty {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.tool-section.empty .input-group {
    width: 100%;
    max-width: 350px;
}

/* Form Elements */
.input-group {
    margin-bottom: 12px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #555;
}

input[type="file"] {
    display: none;
}

select,
input[type="range"],
input[type="number"] {
    width: 100%;
    padding: 6px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    font-size: 13px;
}

/* Buttons */
button {
    background-color: #001F52;
    color: white;
    padding: 9px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
}

button:hover {
    background-color: #FD5C07;
}

button:disabled {
    background-color: #ddd;
    cursor: not-allowed;
}

/* Info and Status */
.info {
    margin-top: 8px;
    font-size: 12px;
    color: #666;
    word-break: break-word;
}

.info-details {
    margin-top: 3px;
    font-size: 11px;
    color: #999;
}

.loading {
    text-align: center;
    color: #666;
    font-style: italic;
    font-size: 12px;
    margin-top: 8px;
}

/* Image Preview */
img {
    max-width: 100%;
    max-height: 300px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.preview-container {
    display: flex;
    justify-content: space-between;
    margin-top: 15px;
    gap: 15px;
    width: 100%;
}

.preview-box {
    flex: 1;
    text-align: center;
    min-width: 0;
}

.preview-title {
    font-weight: bold;
    margin-bottom: 8px;
    color: #333;
    font-size: 13px;
}

.download-btn {
    background-color: #FD5C07;
    color: white;
    padding: 9px 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 14px;
    margin-top: 12px;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #001F52;
}

.download-btn i {
    margin-right: 6px;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
    text-align: center;
    color: #999;
    font-size: 12px;
}

.footer p {
    margin: 5px 0;
}

.footer a {
    color: #001F52;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #FD5C07;
}

/* Blog */
.blog-empty {
    text-align: center;
    padding: 40px 20px;
    color: #ccc;
    font-style: italic;
}

.blog-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.blog-item {
    background: white;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #FD5C07;
    transition: box-shadow 0.3s ease;
}

.blog-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.blog-item h2 {
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.blog-item h2 a {
    color: #001F52;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-item h2 a:hover {
    color: #FD5C07;
}

.blog-summary {
    color: #666;
    margin-bottom: 10px;
    line-height: 1.6;
}

.blog-meta {
    color: #999;
    font-size: 12px;
    margin: 0;
}

/* Intro Section */
.intro-section {
    margin: 40px 0;
    padding: 40px 0;
    background: transparent;
    border-radius: 0;
    border-left: none;
    box-shadow: none;
}

.intro-header {
    margin-bottom: 30px;
    text-align: left;
}

.intro-header h2 {
    margin: 0 0 12px 0;
    color: #001F52;
    font-size: 28px;
    font-weight: bold;
    line-height: 1.3;
}

.intro-subtitle {
    margin: 0;
    color: #6496ff;
    font-size: 15px;
    font-weight: 500;
}

.intro-content {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.intro-main p {
    margin: 12px 0;
    line-height: 1.8;
    color: #444;
    font-size: 14px;
}

.intro-main p:first-child {
    margin-top: 0;
}

.intro-main p:last-child {
    margin-bottom: 0;
}

.how-to-section h3,
.use-cases h3 {
    margin: 0 0 15px 0;
    color: #001F52;
    font-size: 18px;
    font-weight: bold;
}

.step-list {
    margin: 0;
    padding-left: 20px;
    list-style: decimal;
}

.step-list li {
    margin: 8px 0;
    line-height: 1.6;
    color: #444;
    font-size: 14px;
}

.use-cases ul {
    margin: 0;
    padding-left: 20px;
    list-style: disc;
}

.use-cases ul li {
    margin: 8px 0;
    line-height: 1.6;
    color: #444;
    font-size: 14px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
    margin: 0;
}

.feature-item {
    background: white;
    padding: 18px;
    border-radius: 8px;
    text-align: center;
    border: 1px solid rgba(100, 150, 255, 0.2);
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-color: #6496ff;
    box-shadow: 0 4px 12px rgba(100, 150, 255, 0.15);
    transform: translateY(-2px);
}

.feature-item i {
    font-size: 28px;
    color: #6496ff;
    margin-bottom: 12px;
    display: block;
}

.feature-item h3 {
    margin: 8px 0 8px 0;
    color: #001F52;
    font-size: 14px;
    font-weight: bold;
}

.feature-item p {
    margin: 0;
    color: #666;
    font-size: 12px;
    line-height: 1.5;
}
