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

body {
    font-family: 'Segoe UI', system-ui, sans-serif;
    background-color: #1a1a1a;
    color: #fff;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 800px;
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    padding: 20px;
    margin: 20px 10px;
}

h1, h2 {
    text-align: center;
    color: #fff;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

h1 {
    font-size: 2em;
    margin-top: 10px;
}

h2 {
    font-size: 1.5em;
    margin-top: 30px;
}

.input-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

input, textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    transition: all 0.3s ease;
}

input:focus, textarea:focus {
    outline: none;
    border-color: #666;
    background: rgba(255, 255, 255, 0.1);
}

textarea {
    resize: vertical;
    min-height: 100px;
}

button {
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: white;
    border: none;
    padding: 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #444, #555);
}

button:active {
    transform: translateY(0);
}

#message-container {
    margin-top: 20px;
    max-height: 60vh;
    overflow-y: auto;
    padding: 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.message {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    transition: all 0.3s ease;
    position: relative;
}

.message:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateX(5px);
}

.message-content {
    flex: 1;
    min-width: 0;
    padding-right: 50px;
}

.message-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.message p {
    margin: 0;
    word-break: break-word;
    font-size: 0.95rem;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.9);
}

.message strong {
    font-size: 1rem;
    font-weight: 600;
}

.timestamp {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.tx-link {
    position: absolute;
    right: 15px;
    top: 15px;
    background: linear-gradient(135deg, #2196f3, #1976d2);
    color: #ffffff;
    padding: 4px 8px;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
    opacity: 0.8;
}

.tx-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(33, 150, 243, 0.3);
    background: linear-gradient(135deg, #1976d2, #1565c0);
    opacity: 1;
}

.alert {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    text-align: center;
    font-size: 0.9rem;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: rgba(40, 167, 69, 0.1);
    border: 1px solid rgba(40, 167, 69, 0.2);
    color: #28a745;
}

.alert-error {
    background: rgba(220, 53, 69, 0.1);
    border: 1px solid rgba(220, 53, 69, 0.2);
    color: #dc3545;
}

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

/* Mobil Optimizasyonları */
@media (max-width: 768px) {
    .container {
        margin: 10px;
        padding: 15px;
    }

    h1 {
        font-size: 1.5em;
    }

    h2 {
        font-size: 1.2em;
    }

    input, textarea {
        padding: 10px;
        font-size: 0.9rem;
    }

    button {
        padding: 10px;
        font-size: 0.9rem;
    }

    .message {
        padding: 12px;
    }

    .message p {
        font-size: 0.9rem;
    }

    .message-content {
        padding-right: 40px;
    }

    .tx-link {
        padding: 3px 6px;
        font-size: 0.7rem;
        right: 10px;
        top: 10px;
    }

    #message-container {
        max-height: 50vh;
    }
}

/* Küçük Mobil Cihazlar için Ek Optimizasyonlar */
@media (max-width: 480px) {
    .container {
        margin: 5px;
        padding: 10px;
    }

    .message {
        flex-direction: column;
    }

    .message-content {
        padding-right: 0;
        margin-bottom: 8px;
    }

    .tx-link {
        position: static;
        align-self: flex-end;
        margin-top: 8px;
    }
}
