﻿:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --secondary-gradient: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --success-gradient: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --card-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 15px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    /*padding: 20px 0;*/
}

header {
    background: rgba(255, 255, 255, 0.9);
}

.qr-container {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qr-header {
    background: var(--primary-gradient);
    padding: 40px 0;
    margin-bottom: 25px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

    .qr-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 300px;
        height: 300px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

    .qr-header::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 200px;
        height: 200px;
        background: rgba(255, 255, 255, 0.1);
        border-radius: 50%;
    }

.header-icon {
    font-size: 4rem;
    color: white;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.1);
    }
}

.qr-header h1 {
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.qr-header .lead {
    color: rgba(255, 255, 255, 0.9);
}

.card {
    border-radius: 20px;
    transition: all 0.3s ease;
}

.config-card:hover,
.preview-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.card-header.bg-gradient {
    background: var(--primary-gradient) !important;
    border-radius: 20px 20px 0 0 !important;
    padding: 15px 20px;
}

.card-header h5 {
    font-weight: 600;
}

.form-label {
    color: #495057;
    font-size: 0.95rem;
}

.form-control,
.form-select {
    border-radius: 10px;
    border: 2px solid #e1e8ed;
    padding: 12px 15px;
    transition: all 0.3s ease;
}

    .form-control:focus,
    .form-select:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
    }

.form-control-color {
    height: 50px;
    border-radius: 10px 0 0 10px;
}

.btn-group-wrapper {
    margin-bottom: 10px;
}

.btn-group label {
    padding: 12px 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-check:checked + label {
    background: var(--primary-gradient) !important;
    border-color: transparent !important;
    color: white !important;
}

.btn-outline-primary {
    border-color: #667eea;
    color: #667eea;
}

    .btn-outline-primary:hover {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        border-color: transparent;
        color: white !important;
    }

.btn-generate {
    background: var(--primary-gradient);
    border: none;
    border-radius: 15px;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

    .btn-generate:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    }

    .btn-generate:active {
        transform: translateY(-1px);
    }

.qr-preview-area {
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

    .qr-preview-area::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: repeating-linear-gradient( 45deg, transparent, transparent 10px, rgba(255, 255, 255, 0.1) 10px, rgba(255, 255, 255, 0.1) 20px );
        animation: slide 20s linear infinite;
    }

@keyframes slide {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50%, 50%);
    }
}

.placeholder-content {
    position: relative;
    z-index: 1;
}

#qrPreview img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    animation: zoomIn 0.5s ease;
    position: relative;
    z-index: 1;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.5);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

#qrActions .btn {
    border-radius: 10px;
    font-weight: 600;
    padding: 10px 15px;
    transition: all 0.3s ease;
}

    #qrActions .btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    }

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

.btn-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    border: none;
}

.history-list {
    max-height: 400px;
    overflow-y: auto;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    cursor: pointer;
}

    .history-item:hover {
        transform: translateX(5px);
        box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    }

    .history-item img {
        width: 60px;
        height: 60px;
        border-radius: 8px;
        margin-right: 15px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

.history-info {
    flex: 1;
}

.history-type {
    display: inline-block;
    padding: 3px 10px;
    background: var(--primary-gradient);
    color: white;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.history-content {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.history-date {
    font-size: 0.75rem;
    color: #999;
}

.history-list::-webkit-scrollbar {
    width: 8px;
}

.history-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.history-list::-webkit-scrollbar-thumb {
    background: var(--primary-gradient);
    border-radius: 10px;
}

    .history-list::-webkit-scrollbar-thumb:hover {
        background: #555;
    }

.form-range {
    height: 8px;
}

    .form-range::-webkit-slider-thumb {
        background: var(--primary-gradient);
        width: 20px;
        height: 20px;
    }

    .form-range::-moz-range-thumb {
        background: var(--primary-gradient);
        width: 20px;
        height: 20px;
        border: none;
    }

.badge {
    padding: 8px 15px;
    font-size: 0.9rem;
    font-weight: 600;
}

.accordion-button {
    font-weight: 600;
    color: #495057;
    border-radius: 10px !important;
}

    .accordion-button:not(.collapsed) {
        background: var(--primary-gradient);
        color: white;
    }

    .accordion-button:focus {
        box-shadow: none;
        border-color: transparent;
    }

.accordion-item {
    border-radius: 10px !important;
    overflow: hidden;
    margin-bottom: 10px;
}

#logoPreview img {
    max-width: 100px;
    max-height: 100px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.qr-footer {
    background: rgba(255, 255, 255, 0.9);
    padding: 30px 0;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

    .qr-footer p {
        color: #666;
        font-size: 0.9rem;
    }

.spinner-border-custom {
    width: 3rem;
    height: 3rem;
    border: 4px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
}

@media (max-width: 768px) {
    .qr-header {
        padding: 40px 0;
    }

    .header-icon {
        font-size: 3rem;
    }

    .qr-header h1 {
        font-size: 2rem;
    }

    .btn-group label {
        font-size: 0.8rem;
        padding: 10px 15px;
    }

    .card-body {
        padding: 20px !important;
    }

    .qr-preview-area {
        min-height: 250px;
    }
}

.alert {
    animation: slideDown 0.5s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.content-section {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qrcodeClass table {
    margin: 24px 0;
    max-width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.qrcodeClass th {
    padding: 8px 16px;
    border: 1px solid #ccc;
}

.qrcodeClass td {
    padding: 8px 16px;
    border: 1px solid #ccc;
}

.qrcodeClass blockquote {
    margin: 24px;
    padding: 8px 24px;
    border-left: 4px solid #ccc;
    background: #f9f9f9;
}

#backtotop {
    bottom: 20px;
    display: none;
    margin: 0 20px 20px 0;
    position: fixed;
    right: 0;
    z-index: 2;
}

    #backtotop button {
        background: url(../assets/img/arrow.png) no-repeat scroll 50% 50% rgba(0, 0, 0, 0.5);
        border: 0 none;
        display: block;
        height: 40px;
        text-decoration: none;
        transition: all 0.1s ease-in-out 0s;
        width: 40px;
        border-radius: 5px;
    }


/* Share Section Enhanced */
.share-section {
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
    overflow: hidden;
}

    .share-section::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -50%;
        width: 200%;
        height: 200%;
        background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
        animation: rotate 20s linear infinite;
    }

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.share-content {
    position: relative;
    z-index: 1;
}

.share-title {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 1rem;
}

.share-subtitle {
    color: rgba(255,255,255,0.9);
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.social-grid {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.social-btn {
    width: 56px;
    height: 56px;
    background: white;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 24px;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
}

    .social-btn:hover {
        transform: translateY(-8px) rotate(10deg);
        box-shadow: var(--shadow-xl);
    }

    .social-btn.facebook {
        color: #1877f2;
    }

    .social-btn.twitter {
        color: #1da1f2;
    }

    .social-btn.whatsapp {
        color: #25d366;
    }

    .social-btn.telegram {
        color: #0088cc;
    }

    .social-btn.pinterest {
        color: #bd081c;
    }

    .social-btn.linkedin {
        color: #0077b5;
    }

    .social-btn.reddit {
        color: #ff4500;
    }

    .social-btn.tumblr {
        color: #35465c;
    }