/* View: gif-zoetrope — Page-specific styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.zoetrope-page {
    font-family: 'Courier New', monospace;
    background: #000;
    color: #33ff33;
    min-height: 100vh;
    padding: 20px;
}

.zoetrope-container {
    max-width: 700px;
    margin: 0 auto;
    background: #000;
    border: 4px solid #33ff33;
}

.zoetrope-header {
    background: #000;
    color: #33ff33;
    padding: 20px;
    text-align: center;
    border-bottom: 2px solid #33ff33;
}

.zoetrope-header h1 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-weight: bold;
    letter-spacing: 2px;
}

.zoetrope-header p {
    font-size: 0.85rem;
    line-height: 1.4;
}

.main-content {
    padding: 30px;
}

.upload-section {
    margin-bottom: 25px;
}

.upload-zone {
    border: 2px solid #33ff33;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    background: #001100;
}

.upload-zone:hover {
    background: #002200;
}

.upload-zone.dragover {
    background: #003300;
}

.upload-icon {
    font-size: 2rem;
    margin-bottom: 15px;
}

.upload-text {
    font-size: 1rem;
    margin-bottom: 8px;
}

.upload-subtext {
    font-size: 0.8rem;
}

.file-input {
    display: none;
}

.zoetrope-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

.control-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px;
    border: 2px solid #33ff33;
    background: #001100;
}

.control-group label {
    font-weight: bold;
    font-size: 0.9rem;
    flex: 1;
}

.control-input-wrapper {
    display: flex;
    align-items: center;
    gap: 5px;
}

.control-btn {
    width: 45px;
    height: 45px;
    border: 3px solid #33ff33;
    background: #001100;
    color: #33ff33;
    font-size: 1.8rem;
    font-weight: bold;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.control-btn:hover {
    background: #33ff33;
    color: #000;
}

.control-btn:active {
    background: #00ff00;
}

.control-value {
    width: 90px;
    text-align: center;
    font-size: 1.3rem;
    font-weight: bold;
    background: #001100;
    color: #33ff33;
    border: 2px solid #33ff33;
    font-family: 'Courier New', monospace;
    padding: 8px;
}

.control-value::-webkit-outer-spin-button,
.control-value::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.control-value[type=number] {
    -moz-appearance: textfield;
}

.preview-section {
    margin-bottom: 25px;
    display: none;
}

.preview-container {
    background: #001100;
    border: 2px solid #33ff33;
    padding: 20px;
    text-align: center;
}

.preview-image {
    max-width: 300px;
    max-height: 200px;
    border: 1px solid #33ff33;
}

.file-info {
    margin-top: 15px;
    font-size: 0.85rem;
}

.progress-section {
    margin-bottom: 20px;
    display: none;
}

.progress-bar {
    width: 100%;
    height: 20px;
    background: #001100;
    border: 2px solid #33ff33;
}

.progress-fill {
    height: 100%;
    background: #33ff33;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    margin-top: 10px;
    font-size: 0.9rem;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.zoetrope-btn {
    padding: 15px 30px;
    border: 3px solid #33ff33;
    background: #000;
    color: #33ff33;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    font-family: 'Courier New', monospace;
}

.zoetrope-btn:hover:not(:disabled) {
    background: #33ff33;
    color: #000;
}

.zoetrope-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.btn-download {
    display: none;
}

.error-message {
    background: #330000;
    color: #ff3333;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #ff3333;
    display: none;
}

.success-message {
    background: #003300;
    color: #33ff33;
    padding: 15px;
    margin-bottom: 20px;
    border: 2px solid #33ff33;
    display: none;
}

.pink-text-color {
    color: #e622c5;
}

.pink-text-color:hover {
    text-shadow: 0 0 8px #e622c5;
}

@media (max-width: 768px) {
    .action-buttons {
        flex-direction: column;
    }

    .zoetrope-btn {
        width: 100%;
    }
}
