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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: #f5f5f5;
    color: #333;
    line-height: 1.6;
}

.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-box {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 30px;
    color: #2c3e50;
    font-size: 24px;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
    border: 1px solid #c3e6cb;
}

.message {
    background: #e7f5ff;
    color: #0066cc;
    padding: 12px;
    border-radius: 5px;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.auth-link {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: #7f8c8d;
}

.auth-link a {
    color: #3498db;
    text-decoration: none;
    font-weight: 600;
}

.auth-link a:hover {
    text-decoration: underline;
}

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

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
}

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

.btn-primary {
    width: 100%;
    padding: 12px;
    background: #3498db;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #2980b9;
}

.btn-secondary {
    padding: 10px 20px;
    background: #95a5a6;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

.header {
    background: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h2 {
    font-size: 20px;
    color: #2c3e50;
}

.profile-menu {
    position: relative;
}

.profile-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    object-fit: cover;
    border: 2px solid #3498db;
}

.dropdown-menu {
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    border-radius: 5px;
    min-width: 150px;
    display: none;
    z-index: 1000;
}

.dropdown-menu.show {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: #333;
    text-decoration: none;
    transition: background 0.2s;
}

.dropdown-menu a:hover {
    background: #f5f5f5;
}

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

.coins-display {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    text-align: center;
}

.coins-label {
    font-size: 16px;
    color: #7f8c8d;
    margin-right: 10px;
}

.coins-value {
    font-size: 28px;
    font-weight: bold;
    color: #f39c12;
}

.tasks-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.task-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 15px;
}

.task-card h4 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 18px;
}

.task-card p {
    color: #7f8c8d;
    margin-bottom: 15px;
    font-size: 14px;
}

.task-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.task-reward {
    font-weight: bold;
    color: #27ae60;
}

.task-submitted {
    background: #95a5a6;
    color: white;
    padding: 8px 15px;
    border-radius: 5px;
    font-size: 14px;
}

.btn-task {
    background: #3498db;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.btn-task:hover {
    background: #2980b9;
}

.submit-form {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.submit-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
    min-height: 80px;
    font-size: 14px;
}

.no-data {
    text-align: center;
    color: #95a5a6;
    padding: 40px;
    background: white;
    border-radius: 10px;
}

.profile-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.profile-photo-section {
    text-align: center;
    margin-bottom: 30px;
}

.profile-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #3498db;
    margin-bottom: 15px;
}

.profile-info {
    margin-bottom: 20px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: bold;
    color: #7f8c8d;
}

.info-value {
    color: #2c3e50;
}

.transfer-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.transfer-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.back-button {
    text-align: center;
}

.task-section,
.task-waiting,
.no-tasks {
    margin-top: 20px;
}

.task-section h3,
.task-waiting h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.login-task-form {
    margin-top: 20px;
}

.loading-status {
    text-align: center;
    padding: 20px;
    margin-top: 15px;
}

.spinner {
    border: 4px solid #f3f3f3;
    border-top: 4px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.status-text {
    margin-top: 15px;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
    font-size: 14px;
}

.status-text.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-text.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message {
    background: #e7f5ff;
    color: #0066cc;
    padding: 15px;
    border-radius: 5px;
    margin: 15px 0;
    text-align: center;
}

.code-request-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border-radius: 5px;
    border: 1px solid #ffc107;
}

.transfer-history-section {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.transfer-history-section h3 {
    margin-bottom: 20px;
    color: #2c3e50;
}

.transfer-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.transfer-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 5px;
    gap: 15px;
    flex-wrap: wrap;
}

.transfer-type {
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
}

.transfer-type.sent {
    background: #fee;
    color: #c33;
}

.transfer-type.received {
    background: #d4edda;
    color: #155724;
}

.transfer-details {
    flex: 1;
    font-size: 14px;
    color: #495057;
}

.transfer-date {
    font-size: 12px;
    color: #6c757d;
}

@media (max-width: 768px) {
    .header-content {
        padding: 12px 15px;
    }
    
    .header h2 {
        font-size: 18px;
    }
    
    .profile-icon {
        width: 35px;
        height: 35px;
    }
    
    .container {
        padding: 15px;
    }
    
    .coins-value {
        font-size: 24px;
    }
    
    .task-card {
        padding: 15px;
    }
    
    .task-footer {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .profile-section,
    .transfer-section {
        padding: 20px;
    }
    
    .info-row {
        flex-direction: column;
        gap: 5px;
    }
}
