/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    padding: 20px;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Main Content */
.main-content {
    padding: 20px 0;
}

/* Tool Section */
.tool-section {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 40px;
    margin-bottom: 40px;
}

.tool-header {
    text-align: center;
    margin-bottom: 40px;
}

.tool-header h2 {
    color: #333;
    font-size: 28px;
    margin-bottom: 10px;
}

.tool-header p {
    color: #666;
    font-size: 16px;
}

.tool-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* Input Section */
.input-section {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s ease;
    background: #fff;
}

.form-group input::placeholder {
    color: #999;
    opacity: 1;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #e52d27;
    box-shadow: 0 0 0 3px rgba(229, 45, 39, 0.1);
}

.helper-text {
    color: #666;
    font-size: 12px;
    margin-top: 4px;
}

.btn-primary {
    background: #e52d27;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #c41d1a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 45, 39, 0.3);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #e52d27;
    color: #e52d27;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e52d27;
    color: white;
}

/* Output Section */
.output-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

.qr-preview {
    width: 300px;
    height: 300px;
    border: 2px dashed #e9ecef;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    position: relative;
    overflow: hidden;
}

.placeholder {
    text-align: center;
    color: #666;
}

.placeholder-icon {
    font-size: 48px;
    margin-bottom: 10px;
}

.qr-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    justify-content: center;
}

/* YouTube Logo in QR Code */
.youtube-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: #e52d27;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.youtube-logo::before {
    content: '';
    width: 0;
    height: 0;
    border-left: 15px solid white;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    margin-left: 3px;
}

/* Recent Activity */
.recent-activity {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    padding: 30px;
}

.recent-activity h3 {
    margin-bottom: 20px;
    color: #333;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    border-color: #e52d27;
    background: #f8f9fa;
}

.activity-qr .mini-qr {
    width: 50px;
    height: 50px;
    background: #333;
    border-radius: 4px;
    position: relative;
}

.activity-qr .mini-qr::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 15px;
    height: 15px;
    background: #e52d27;
    border-radius: 3px;
}

.activity-info h4 {
    color: #333;
    margin-bottom: 4px;
}

.activity-info p {
    color: #666;
    font-size: 12px;
}

/* Success Message */
.success-message {
    color: #28a745;
    font-weight: 500;
    text-align: center;
    margin-top: 10px;
}

/* Loading Spinner */
.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #e52d27;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        padding: 10px;
    }
    
    .tool-container {
        grid-template-columns: 1fr;
    }
    
    .qr-actions {
        flex-direction: column;
        width: 100%;
    }
    
    .qr-actions button {
        width: 100%;
    }
    
    .tool-section {
        padding: 20px;
    }
    
    .qr-preview {
        width: 250px;
        height: 250px;
    }
}