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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s, color 0.3s;
}

body.dark-theme {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
    color: #e0e0e0;
}

body.dark-theme .card {
    background: #0f3460;
    color: #e0e0e0;
}

body.dark-theme h2 {
    color: #7b9cff;
}

body.dark-theme .info-item {
    border-bottom-color: #1a1a2e;
}

body.dark-theme .donation-item {
    background: #1a1a2e;
    color: #e0e0e0;
}

body.dark-theme .donation-item.success {
    background: #0d3d2d;
}

body.dark-theme .donation-item.pending {
    background: #3d1a0d;
}

body.dark-theme .form-group input,
body.dark-theme .form-group textarea {
    background: #1a1a2e;
    color: #e0e0e0;
    border-color: #667eea;
}

body.dark-theme .total-info {
    background: #1a1a2e;
    border-color: #667eea;
}

body.dark-theme button {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

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

h1 {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    font-size: 2.5em;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.theme-toggle {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2em;
    transition: all 0.3s;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.card {
    background: white;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

h2 {
    color: #667eea;
    margin-bottom: 15px;
}

button {
    background: #667eea;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

button:hover {
    background: #764ba2;
}

.donation-item {
    background: #f5f5f5;
    padding: 15px;
    margin: 10px 0;
    border-radius: 8px;
    border-left: 4px solid #667eea;
    transition: all 0.3s;
}

.donation-item.success {
    border-left-color: #4caf50;
    background: #f1f8f4;
}

.donation-item.pending {
    border-left-color: #f44336;
    background: #ffebee;
}

.donation-item strong {
    color: #667eea;
    font-size: 1.2em;
}

.donation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.status-success {
    background: #4caf50;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

.status-pending {
    background: #ff9800;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

.status-failed {
    background: #f44336;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
}

.donation-message {
    font-style: italic;
    color: #666;
    margin: 8px 0;
    padding: 8px;
    background: white;
    border-radius: 4px;
}

.donation-id {
    font-size: 0.75em;
    color: #999;
    margin-top: 8px;
}

.commission-info {
    font-size: 0.9em;
    color: #666;
    margin: 5px 0;
}

.info-item {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.info-item:last-child {
    border-bottom: none;
}

.loading {
    text-align: center;
    color: #667eea;
    padding: 20px;
}

.error {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
    font-family: inherit;
}

.total-info {
    background: #f8f9ff;
    border: 2px solid #667eea;
    border-radius: 8px;
    padding: 15px;
    margin: 15px 0;
}

.total-info div {
    padding: 5px 0;
    color: #333;
}

.total-line {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #667eea;
    font-size: 1.1em;
    color: #667eea !important;
}
