:root {
    --primary-color: #e53e3e;
    --secondary-color: #fef2f2;
    --border-color: #e2e8f0;
    --light-text: #718096;
    --success-color: #48bb78;
}

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

body {
    font-family: Arial, sans-serif;
    background-color: #f8fafc;
    color: #1a202c;
    line-height: 1.6;
}

.app-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.app-header {
    text-align: center;
    margin: 40px 0;
}

.header-icon {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.app-header h1 {
    color: #2d3748;
    margin-bottom: 10px;
}

.app-header p {
    color: var(--light-text);
}

.main-content {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.section-title {
    display: flex;
    align-items: center;
    color: #2d3748;
    margin-bottom: 20px;
}

.section-title i {
    margin-right: 10px;
    color: var(--primary-color);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.file-input {
    position: relative;
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.file-input:hover {
    border-color: var(--primary-color);
    background-color: #edf2f7;
}

.file-input i {
    font-size: 40px;
    color: var(--light-text);
    margin-bottom: 10px;
}

.file-input p {
    margin-bottom: 15px;
    color: var(--light-text);
}

.file-input .btn {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    display: inline-block;
    cursor: pointer;
    transition: background-color 0.3s;
}

.file-input .btn:hover {
    background-color: #c53030;
}

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

.counter-container {
    display: flex;
    flex-direction: column;
}

.counter-input {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.counter-input input {
    width: 100px;
    padding: 8px;
    text-align: center;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    margin: 0 10px;
}

.counter-btn {
    background-color: #edf2f7;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.counter-btn:hover {
    background-color: #e2e8f0;
}

.error {
    background-color: #fff5f5;
    color: #e53e3e;
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.error i {
    margin-right: 10px;
}

.submit-btn {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s;
    width: 100%;
}

.submit-btn:hover {
    background-color: #c53030;
}

.result-section {
    display: none;
    margin-top: 40px;
}

.result-section.active {
    display: block;
}

.link-box {
    background-color: var(--secondary-color);
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.link-box p {
    margin-bottom: 10px;
}

.link-input {
    display: flex;
    border-radius: 5px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.link-input input {
    flex: 1;
    padding: 10px;
    border: none;
    background-color: white;
}

.link-input button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.link-input button:hover {
    background-color: #c53030;
}

.qrcode-container {
    display: flex;
    justify-content: center;
    margin: 20px 0;
}

.qrcode-box {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.info-section {
    margin-top: 40px;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.info-card {
    background-color: #f8fafc;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.3s;
}

.info-card:hover {
    transform: translateY(-5px);
}

.info-card i {
    font-size: 32px;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.info-card h3 {
    margin-bottom: 5px;
}

.info-card p {
    color: var(--light-text);
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

@media (max-width: 600px) {
    .info-grid {
        grid-template-columns: 1fr;
    }
}