* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    background: linear-gradient(135deg, #1dd1a1 0%, #10ac84 50%, #0abde3 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
    position: relative;
    touch-action: manipulation;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.background-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

.shape-1 {
    width: 150px;
    height: 150px;
    background: #ffa502;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 100px;
    height: 100px;
    background: #ff6348;
    top: 60%;
    right: 15%;
    animation-delay: 2s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    background: #25D366;
    bottom: 20%;
    left: 20%;
    animation-delay: 4s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    background: #0066cc;
    top: 30%;
    right: 25%;
    animation-delay: 1s;
}

.shape-5 {
    width: 90px;
    height: 90px;
    background: #ffd32a;
    bottom: 10%;
    right: 10%;
    animation-delay: 3s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-30px, 30px) scale(0.9);
    }
}

.container {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 2rem;
    max-width: 600px;
    width: 100%;
}

.logo-container {
    margin-bottom: 2rem;
    animation: bounceIn 1s ease-out;
}

.logo {
    width: 250px;
    max-width: 80%;
    height: auto;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.3));
    animation: pulse 3s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.welcome-title {
    font-size: 4rem;
    color: #fff;
    text-shadow: 
        3px 3px 0 #0a3d62,
        6px 6px 15px rgba(0, 0, 0, 0.3);
    margin-bottom: 3rem;
    animation: slideDown 0.8s ease-out;
    font-weight: bold;
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.buttons-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.button-wrapper {
    animation: fadeInUp 0.8s ease-out backwards;
}

.button-wrapper:nth-child(1) {
    animation-delay: 0.2s;
}

.button-wrapper:nth-child(2) {
    animation-delay: 0.4s;
}

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

.action-button {
    width: 100%;
    padding: 1.5rem 2rem;
    font-size: 1.5rem;
    font-weight: bold;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.action-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.action-button:hover::before {
    width: 300px;
    height: 300px;
}

.join-button {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.join-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(37, 211, 102, 0.5);
}

.admin-button {
    background: linear-gradient(135deg, #ff6348 0%, #e74c3c 100%);
    color: white;
}

.admin-button:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 30px rgba(231, 76, 60, 0.5);
}

.action-button:active {
    transform: translateY(-2px) scale(1.02);
}

.button-icon {
    font-size: 2rem;
    position: relative;
    z-index: 1;
}

.button-text {
    position: relative;
    z-index: 1;
}

.button-hint {
    color: #fff;
    font-size: 1.1rem;
    margin-top: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    font-weight: 600;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.star, .confetti {
    position: absolute;
    font-size: 2rem;
    animation: twinkle 3s infinite;
}

.star-1 {
    top: 15%;
    left: 10%;
    animation-delay: 0s;
}

.star-2 {
    top: 25%;
    right: 15%;
    animation-delay: 1s;
}

.star-3 {
    bottom: 20%;
    left: 15%;
    animation-delay: 2s;
}

.confetti-1 {
    top: 10%;
    right: 10%;
    animation-delay: 0.5s;
}

.confetti-2 {
    bottom: 15%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2) rotate(180deg);
    }
}

.admin-body {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    padding: 2rem;
}

.admin-container {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: fadeIn 0.5s ease-out;
}

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

.admin-header {
    background: linear-gradient(135deg, #1dd1a1 0%, #10ac84 100%);
    color: white;
    padding: 2rem;
    text-align: center;
}

.admin-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.admin-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

.admin-content {
    padding: 2rem;
}

.config-section, .json-section {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.label-icon {
    font-size: 1.3rem;
}

.input-field {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.input-field:focus {
    outline: none;
    border-color: #1dd1a1;
    box-shadow: 0 0 0 3px rgba(29, 209, 161, 0.1);
}

.input-help {
    display: block;
    margin-top: 0.5rem;
    color: #7f8c8d;
    font-size: 0.9rem;
}

.button-group, .json-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.admin-btn {
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex: 1;
    min-width: 150px;
}

.save-btn {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

.test-btn {
    background: linear-gradient(135deg, #0abde3 0%, #0066cc 100%);
    color: white;
}

.test-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(10, 189, 227, 0.3);
}

.export-btn {
    background: linear-gradient(135deg, #ffa502 0%, #ff6348 100%);
    color: white;
}

.export-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 165, 2, 0.3);
}

.import-btn {
    background: linear-gradient(135deg, #a29bfe 0%, #6c5ce7 100%);
    color: white;
}

.import-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(108, 92, 231, 0.3);
}

.divider {
    height: 2px;
    background: linear-gradient(90deg, transparent, #1dd1a1, transparent);
    margin: 2rem 0;
}

.json-section h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.info-box {
    background: #ecf0f1;
    padding: 1.5rem;
    border-radius: 10px;
    margin-top: 1rem;
}

.info-box p {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.info-box ul {
    margin-left: 1.5rem;
    color: #34495e;
}

.info-box li {
    margin-bottom: 0.3rem;
}

.current-config {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #1dd1a1;
}

.current-config h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.config-display p {
    margin-bottom: 0.5rem;
    color: #34495e;
    word-break: break-all;
}

.config-display strong {
    color: #2c3e50;
}

.admin-footer {
    background: #ecf0f1;
    padding: 1.5rem;
    text-align: center;
}

.back-link {
    color: #1dd1a1;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #10ac84;
    text-decoration: underline;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    transform: translateX(400px);
    transition: transform 0.3s ease;
    z-index: 1000;
    max-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    border-left: 4px solid #25D366;
    color: #128C7E;
}

.notification.error {
    border-left: 4px solid #e74c3c;
    color: #c0392b;
}

.notification.info {
    border-left: 4px solid #0abde3;
    color: #0066cc;
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .action-button {
        font-size: 1.2rem;
        padding: 1.2rem 1.5rem;
    }
    
    .logo {
        width: 200px;
    }
    
    .button-group, .json-actions {
        flex-direction: column;
    }
    
    .admin-btn {
        min-width: auto;
    }
}
