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

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.header {
    background: linear-gradient(135deg, #4a6cf7 0%, #3a5bdb 100%);
    color: white;
    padding: 30px 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.app-container {
    display: flex;
    min-height: 700px;
}

.sidebar {
    width: 300px;
    background: #f8f9fa;
    padding: 40px 20px;
    border-right: 1px solid #e9ecef;
}

.step {
    display: flex;
    align-items: center;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0.6;
}

.step.active {
    background: white;
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.1);
    opacity: 1;
    border-left: 4px solid #4a6cf7;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e9ecef;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-right: 15px;
    transition: all 0.3s ease;
}

.step.active .step-number {
    background: #4a6cf7;
    color: white;
}

.step-content h3 {
    font-size: 1rem;
    margin-bottom: 5px;
}

.step-content p {
    font-size: 0.9rem;
    color: #6c757d;
}

.main-content {
    flex: 1;
    padding: 40px;
    overflow-y: auto;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease;
}

.step-content.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

h2 {
    color: #2d3748;
    margin-bottom: 10px;
    font-size: 2rem;
}

.step-description {
    color: #718096;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.templates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.template-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.template-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #4a6cf7;
}

.template-preview {
    height: 200px;
    background: #f8f9fa;
    padding: 20px;
}

.preview-content {
    background: white;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.preview-header {
    background: #4a6cf7;
    color: white;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.preview-logo {
    width: 40px;
    height: 40px;
    background: white;
    color: #4a6cf7;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.preview-title {
    font-weight: bold;
}

.preview-body {
    padding: 15px;
}

.preview-nav {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.8rem;
    color: #6c757d;
}

.preview-hero h3 {
    margin-bottom: 10px;
    color: #2d3748;
}

.preview-hero p {
    color: #718096;
    font-size: 0.9rem;
}

.template-info {
    padding: 20px;
}

.template-info h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #2d3748;
}

.template-info p {
    color: #718096;
    font-size: 0.9rem;
}

/* Form Styles */
.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-weight: 600;
    color: #2d3748;
}

input[type="text"],
input[type="url"],
input[type="color"],
textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #4a6cf7;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.upload-area {
    border: 2px dashed #cbd5e0;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    margin-bottom: 15px;
}

.upload-area:hover {
    border-color: #4a6cf7;
    background: #f8fafc;
}

.upload-icon {
    font-size: 2.5rem;
    color: #a0aec0;
    margin-bottom: 10px;
}

.file-input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}

.preview-container {
    margin-top: 15px;
}

.preview-container img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 8px;
    margin: 5px;
}

.url-input {
    margin-top: 10px;
}

.links-container {
    margin-bottom: 15px;
}

.link-item {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.link-item input {
    flex: 1;
}

.btn-remove-link {
    background: #fed7d7;
    color: #c53030;
    border: none;
    width: 40px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-remove-link:hover {
    background: #fc8181;
    color: white;
}

.btn-add-link {
    background: #edf2f7;
    color: #4a5568;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-add-link:hover {
    background: #e2e8f0;
}

.button-group {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e2e8f0;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-prev {
    background: #edf2f7;
    color: #4a5568;
}

.btn-prev:hover {
    background: #e2e8f0;
}

.btn-next {
    background: #4a6cf7;
    color: white;
}

.btn-next:hover {
    background: #3a5bdb;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(74, 108, 247, 0.3);
}

/* Step 3 Styles */
.preview-section {
    margin-bottom: 40px;
}

.preview-header-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.btn-refresh {
    background: #edf2f7;
    color: #4a5568;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-refresh:hover {
    background: #e2e8f0;
}

.website-preview {
    border: 2px solid #e2e8f0;
    border-radius: 15px;
    padding: 30px;
    background: #f8f9fa;
    min-height: 300px;
    overflow: auto;
}

.deploy-section {
    background: linear-gradient(135deg, #f8fafc 0%, #edf2f7 100%);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.api-key-section {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

.api-key-toggle {
    margin-bottom: 15px;
}

.api-key-toggle label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.btn-deploy {
    background: linear-gradient(135deg, #4a6cf7 0%, #3a5bdb 100%);
    color: white;
    padding: 15px 40px;
    font-size: 1.1rem;
    margin: 20px 0;
    width: 100%;
}

.btn-deploy:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(74, 108, 247, 0.3);
}

.loading {
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 3px solid #e2e8f0;
    border-top-color: #4a6cf7;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.result-section {
    animation: fadeIn 0.5s ease;
}

.success-message {
    text-align: center;
    padding: 30px;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 30px;
}

.success-message i {
    font-size: 4rem;
    margin-bottom: 20px;
}

.cid-display {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.cid-display label {
    display: block;
    margin-bottom: 15px;
    font-weight: 600;
    color: #2d3748;
}

.cid-container {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

#ipfs-cid {
    flex: 1;
    font-family: monospace;
    font-size: 1.1rem;
    color: #2d3748;
    word-break: break-all;
}

.btn-copy {
    background: #4a6cf7;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn-copy:hover {
    background: #3a5bdb;
}

.ipfs-links {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.ipfs-link-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #f7fafc;
    border-radius: 8px;
}

.ipfs-link {
    display: block;
    margin-top: 5px;
    color: #4a6cf7;
    text-decoration: none;
    word-break: break-all;
}

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

.next-steps {
    background: white;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 25px;
}

.next-steps h4 {
    margin-bottom: 15px;
    color: #2d3748;
}

.next-steps ol {
    margin-left: 20px;
}

.next-steps li {
    margin-bottom: 10px;
    color: #718096;
}

.btn-new {
    background: #edf2f7;
    color: #4a5568;
    width: 100%;
    justify-content: center;
}

.btn-new:hover {
    background: #e2e8f0;
}

/* Footer */
.footer {
    text-align: center;
    padding: 25px;
    background: #f8f9fa;
    border-top: 1px solid #e9ecef;
    color: #718096;
}

.footer i.fa-heart {
    color: #fc8181;
}

.disclaimer {
    font-size: 0.9rem;
    margin-top: 10px;
    opacity: 0.7;
}

/* Notification */
.notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #48bb78;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 1000;
}

.notification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Template-specific preview styles */
.personal .preview-header {
    background: #38b2ac;
}

.personal .preview-avatar {
    width: 50px;
    height: 50px;
    background: white;
    color: #38b2ac;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.preview-bio {
    text-align: center;
}

.preview-social {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}

.welcome .preview-header {
    background: #ed8936;
}

.welcome-message {
    text-align: center;
    padding: 30px 0;
}

.about .preview-header {
    background: #9f7aea;
}

.about-content {
    text-align: center;
}

.preview-skills {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.preview-skills span {
    background: #e9d8fd;
    color: #6b46c1;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .app-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        padding: 20px;
    }
    
    .step {
        margin-bottom: 10px;
    }
    
    .main-content {
        padding: 20px;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }
    
    .templates-grid {
        grid-template-columns: 1fr;
    }
    
    .link-item {
        flex-direction: column;
    }
    
    .button-group {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}