/* Reset & base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f8f9fb;
    color: #333;
    margin: 0;
    padding: 0;
}

.tool-container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 24px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.tool-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    color: #111;
}

.tool-header p {
    color: #555;
    font-size: 1rem;
}

.qr-generator {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-top: 24px;
}

/* QR Controls */
.qr-controls {
    flex: 1;
    min-width: 300px;
}

.form-group {
    margin-bottom: 16px;
}

label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: #222;
}

textarea.form-control {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    resize: vertical;
    transition: border 0.2s;
}

textarea.form-control:focus {
    border-color: #5c67f2;
    outline: none;
}

input[type="range"] {
    width: 100%;
}

input[type="color"] {
    padding: 0;
    border: none;
    background: transparent;
    height: 36px;
    width: 50px;
    cursor: pointer;
}

select {
    width: 100%;
    padding: 10px;
    font-size: 1rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    background: #fff;
}

/* Row layout */
.form-row {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.form-row .form-group {
    flex: 1;
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: 10px 20px;
    font-size: 0.95rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.btn-primary {
    background-color: #5c67f2;
    color: #fff;
}

.btn-primary:hover {
    background-color: #4955e0;
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: #e4e6f0;
    color: #333;
}

.btn-secondary:hover {
    background-color: #d4d6e0;
    transform: translateY(-1px);
}

/* QR Preview */
.qr-preview {
    flex: 1;
    min-width: 300px;
    text-align: center;
}

.qr-placeholder,
.qr-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 250px;
    border: 2px dashed #ccc;
    border-radius: 12px;
    background-color: #f1f2f7;
    color: #999;
    font-size: 1.2rem;
    flex-direction: column;
}

.qr-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.qr-image-container img {
    max-width: 100%;
    max-height: 240px;
    object-fit: contain;
}

.qr-actions {
    margin-top: 15px;
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* How it works */
.how-it-works {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #ddd;
}

.how-it-works h3 {
    font-size: 1.4rem;
    margin-bottom: 16px;
    color: #444;
}

.steps {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.step {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #f7f8fc;
    border-radius: 10px;
    border: 1px solid #e0e0e0;
    text-align: center;
}

.step-number {
    background: #5c67f2;
    color: white;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    line-height: 36px;
    margin: 0 auto 10px;
}

.info-box {
    background: #e8f0fe;
    padding: 16px;
    border-radius: 10px;
    border-left: 4px solid #5c67f2;
}

.info-box h4 {
    margin-top: 0;
    margin-bottom: 10px;
}

.info-box ul {
    padding-left: 20px;
    margin: 0;
}

.info-box ul li {
    margin-bottom: 6px;
}

/* Responsive */
@media (max-width: 768px) {
    .qr-generator {
        flex-direction: column;
    }

    .qr-actions {
        flex-direction: column;
    }

    .steps {
        flex-direction: column;
    }
}


.message-box {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    font-size: 0.95rem;
    border-radius: 8px;
    transition: all 0.3s ease;
  }
  
  .message-box.success {
    background-color: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
  }
  
  .message-box.error {
    background-color: #f8d7da;
    color: #721c24;
    border-left: 4px solid #dc3545;
  }
  
  .message-box.info {
    background-color: #d1ecf1;
    color: #0c5460;
    border-left: 4px solid #17a2b8;
  }
  