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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    background: #2d2d2d;
    padding: 2rem;
    border-radius: 15px;
    margin-bottom: 2rem;
    border-left: 6px solid #00d5ff;
    text-align: center;
}

.logo h1 {
    color: #00d5ff;
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tagline {
    color: #666;
    font-size: 1.1rem;
}

/* Main Content */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Tool Cards */
.tool-card {
    background: #2d2d2d;
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #3d3d3d;
}

.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #00d5ff;
}

.tool-header h3 {
    color: #00d5ff;
    font-size: 1.4rem;
}

.tool-actions {
    display: flex;
    gap: 0.5rem;
}

/* Buttons */
.primary-btn {
    background: linear-gradient(135deg, #00d5ff, #00b7ff);
    color: #1a1a1a;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 213, 255, 0.4);
}

.download-btn, .copy-btn, .reset-btn {
    background: #3d3d3d;
    color: white;
    border: 2px solid #00d5ff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    cursor: pointer;
}

.download-btn:hover, .copy-btn:hover {
    background: #00d5ff;
    color: #1a1a1a;
}

.reset-btn {
    border-color: #666;
    color: #666;
}

.reset-btn:hover {
    background: #666;
    color: white;
}

/* Mode Selector */
.mode-selector {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.mode-option {
    flex: 1;
    cursor: pointer;
}

.mode-option input {
    display: none;
}

.mode-label {
    display: block;
    padding: 1rem;
    background: #1a1a1a;
    border: 2px solid #3d3d3d;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.mode-option input:checked + .mode-label {
    border-color: #00d5ff;
    background: rgba(0, 213, 255, 0.1);
}

/* Input/Output Sections */
.input-section, .output-section {
    margin-bottom: 1rem;
}

label {
    color: #00d5ff;
    font-weight: bold;
    margin-bottom: 0.5rem;
    display: block;
}

textarea {
    width: 100%;
    background: #1a1a1a;
    border: 2px solid #3d3d3d;
    color: white;
    padding: 1rem;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    min-height: 120px;
}

textarea:focus {
    outline: none;
    border-color: #00d5ff;
}

/* Character Count */
.char-count {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

/* Output Info */
.output-info {
    display: flex;
    justify-content: space-between;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.5rem;
}

#copyStatus {
    color: #4CAF50;
}

/* Quick Actions */
.quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.action-btn {
    background: #1a1a1a;
    color: white;
    border: 2px solid #00d5ff;
    padding: 0.75rem;
    border-radius: 6px;
    cursor: pointer;
}

.action-btn:hover {
    background: rgba(0, 213, 255, 0.1);
}

/* Info Content */
.info-content {
    color: #ccc;
    line-height: 1.8;
}

.info-content p {
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #3d3d3d;
}

.back-link {
    color: #00d5ff;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .tool-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .tool-actions {
        width: 100%;
        justify-content: flex-end;
    }
    
    .mode-selector {
        flex-direction: column;
    }
    
    .quick-actions {
        grid-template-columns: 1fr;
    }
}
