* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Open Sans', Arial, sans-serif;
}

body {
    background-color: #1a202c; /* Ezgif dark bg */
    color: #e2e8f0;
    font-size: 15px;
    line-height: 1.6;
}

a {
    color: #63b3ed;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Header & Nav */
header {
    background-color: #1a202c;
    border-bottom: 1px solid #2d3748;
    padding-top: 15px;
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo {
    font-size: 28px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none !important;
}

.logo-sub {
    font-size: 12px;
    font-weight: normal;
    color: #a0aec0;
    margin-top: 5px;
}

.top-ad {
    width: 728px;
    height: 90px;
    background: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    border: 1px solid #4a5568;
}

.main-nav {
    max-width: 1200px;
    margin: 20px auto 0;
    padding: 0 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.main-nav a {
    color: #e2e8f0;
    font-size: 14px;
    padding: 5px 10px;
    border-bottom: 3px solid transparent;
}

.main-nav a.active {
    border-bottom-color: #63b3ed;
}

.main-nav a i {
    margin-right: 5px;
    color: #f6e05e;
}

.sub-nav {
    background: #2d3748;
    padding: 10px 15px;
}

.sub-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 20px;
    font-size: 13px;
}

.sub-nav a {
    color: #cbd5e0;
}

/* Layout */
.wrapper {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 15px;
    display: flex;
    gap: 30px;
}

.sidebar {
    width: 300px;
    flex-shrink: 0;
}

.main-content {
    flex: 1;
}

.sidebar-ad {
    width: 300px;
    height: 600px;
    background: #2d3748;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #718096;
    border: 1px solid #4a5568;
    margin-bottom: 20px;
}

/* Tool Area */
h1 {
    font-size: 24px;
    font-weight: normal;
    color: #fff;
    margin-bottom: 20px;
    border-bottom: 1px solid #2d3748;
    padding-bottom: 10px;
}

.upload-box {
    background: #2d3748;
    padding: 20px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.upload-box h3 {
    font-size: 16px;
    margin-bottom: 15px;
    font-weight: normal;
}

.drag-area {
    border: 1px dashed #718096;
    padding: 40px 20px;
    text-align: center;
    background: #1a202c;
    margin-bottom: 20px;
    cursor: pointer;
}

.drag-area:hover {
    background: #232a38;
}

.drag-area input[type="file"] {
    display: none;
}

.url-input {
    width: 100%;
    background: #1a202c;
    border: 1px solid #4a5568;
    color: #fff;
    padding: 8px 12px;
    margin-top: 5px;
}

.url-input:focus {
    outline: none;
    border-color: #63b3ed;
}

.btn-upload {
    background: #3182ce;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 15px;
}

.btn-upload:hover {
    background: #2b6cb0;
}

.info-text {
    font-size: 13px;
    color: #a0aec0;
    margin-top: 15px;
}

/* GIF Editor / Preview Area */
.editor-area {
    background: #2d3748;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    display: none;
}

.frame-list {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.frame-item {
    background: #1a202c;
    border: 1px solid #4a5568;
    padding: 10px;
    text-align: center;
    width: 150px;
}

.frame-item img {
    max-width: 100%;
    height: 100px;
    object-fit: contain;
    margin-bottom: 10px;
}

.frame-item input {
    width: 60px;
    background: #2d3748;
    border: 1px solid #4a5568;
    color: #fff;
    padding: 3px 5px;
    text-align: center;
}

.btn-generate {
    background: #38a169;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 4px;
    cursor: pointer;
}

.btn-generate:hover {
    background: #2f855a;
}

.result-area {
    margin-top: 30px;
    text-align: center;
    display: none;
}

.result-area img {
    max-width: 100%;
    border: 1px solid #4a5568;
}

.progress-text {
    color: #f6e05e;
    font-weight: bold;
    margin-bottom: 10px;
}

/* Footer */
footer {
    background: #1a202c;
    border-top: 1px solid #2d3748;
    padding: 40px 0;
    margin-top: 50px;
    text-align: center;
    font-size: 13px;
    color: #718096;
}
