* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Playfair Display', 'Cinzel', 'Times New Roman', serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Background image on the left */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('img/background.jpeg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

/* Smoke video overlay - full screen */
.smoke-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.4;
    z-index: 1;
    pointer-events: none;
}

.container {
    width: 100%;
    max-width: 1200px;
    position: relative;
    z-index: 2;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Auth Forms */
.auth-container {
    background-image: url('img/paper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #000000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    width: 100%;
    max-width: 450px;
    position: relative;
    margin: 0 auto;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 46, 31, 0.3);
    border-radius: 10px;
    z-index: 0;
}

.auth-container > * {
    position: relative;
    z-index: 1;
}

.form-container {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

.form-container.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-container h2 {
    color: #000000;
    margin-bottom: 30px;
    text-align: center;
    font-size: 32px;
    font-weight: 700;
    font-family: 'Playfair Display', 'Cinzel', serif;
    letter-spacing: 1px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #000000;
    font-weight: 600;
    font-family: 'Playfair Display', 'Cinzel', serif;
    font-size: 15px;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #000000;
    border-radius: 5px;
    font-size: 16px;
    background-color: transparent;
    color: #000000;
    transition: border-color 0.3s;
    font-family: 'Playfair Display', 'Cinzel', serif;
}

.form-group input::placeholder {
    color: #000000;
    opacity: 0.6;
}

.form-group input:focus {
    outline: none;
    border-color: #000000;
}

.form-group input:read-only {
    background-color: transparent;
    cursor: not-allowed;
    color: #000000;
    /* opacity: 1; */
}

.wallet-status {
    margin-top: 8px;
    font-size: 12px;
}

.wallet-status.connected {
    color: #8bff8b;
    font-weight: 600;
    text-shadow: 0 0 10px rgba(139, 255, 139, 0.5);
}

.button-group {
    display: flex;
    gap: 10px;
    margin-top: 25px;
}

.btn {
    padding: 12px 24px;
    border: 1px solid #000000;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    background-color: transparent;
    color: #000000;
    font-family: 'Playfair Display', 'Cinzel', serif;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: rgba(139, 69, 19, 0.2);
    border-color: #000000;
    color: #000000;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}

.btn-secondary {
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
}

.btn-secondary:hover {
    background-color: rgba(139, 69, 19, 0.2);
    border-color: #000000;
    color: #000000;
}

.btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.switch-form {
    text-align: center;
    margin-top: 20px;
    color: #000000;
}

.switch-form a {
    color: #4a9eff;
    text-decoration: none;
    font-weight: 600;
}

.switch-form a:hover {
    text-decoration: underline;
    color: #6bb4ff;
}

/* Dashboard */
.dashboard-container {
    background-image: url('img/paper.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 2px solid #000000;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    opacity: 0.9;
}

.dashboard-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(58, 46, 31, 0.4);
    border-radius: 10px;
    z-index: 0;
}

.dashboard-container h6 {
    color: #000000;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 30px;
    text-align: center;
}

.dashboard-container > * {
    position: relative;
    z-index: 1;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #000000;
}

.header-buttons {
    display: flex;
    gap: 10px;
}

.dashboard-header h1 {
    color: #000000;
    font-size: 28px;
    font-weight: 600;
}

.user-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-card {
    background: transparent;
    color: #7a4419;
    padding: 20px;
    border-radius: 10px;
    border: 2px solid #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.info-card h3 {
    font-size: 14px;
    margin-bottom: 10px;
    color: #000000;
    font-weight: 500;
}

.info-card p {
    font-size: 18px;
    font-weight: 600;
    word-break: break-all;
    color: #000000;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.dashboard-content section {
    background: transparent;
    padding: 25px;
    border-radius: 10px;
    border: 2px solid #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.dashboard-content h2 {
    color: #000000;
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
    border-bottom: 1px solid #000000;
    padding-bottom: 10px;
}

.task-counter {
    font-size: 18px;
    font-weight: 400;
    color: #000000;
    margin-left: 10px;
}

.tasks-container,
.completed-tasks-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

/* Custom scrollbar styling */
.tasks-container::-webkit-scrollbar,
.completed-tasks-container::-webkit-scrollbar {
    width: 8px;
}

.tasks-container::-webkit-scrollbar-track,
.completed-tasks-container::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 4px;
}

.tasks-container::-webkit-scrollbar-thumb,
.completed-tasks-container::-webkit-scrollbar-thumb {
    background: #000000;
    border-radius: 4px;
}

.tasks-container::-webkit-scrollbar-thumb:hover,
.completed-tasks-container::-webkit-scrollbar-thumb:hover {
    background: #000000;
}

.task-item,
.reward-item {
    background: transparent;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    border: 1px solid #000000;
    color: #000000;
}

.task-item.task-completed {
    border-color: #d4af37;
}

.task-completed-message {
    color: #d4af37;
    margin-top: 10px;
    padding: 10px;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 5px;
    border-left: 3px solid #d4af37;
}

.task-status {
    color: #d4af37;
    font-weight: 600;
    margin-top: 10px;
    padding: 10px;
    text-align: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: 5px;
}

.task-item h4,
.reward-item h4 {
    color: #000000;
    margin-bottom: 10px;
    font-weight: 600;
}

.task-item p,
.reward-item p {
    color: #000000;
    margin-bottom: 15px;
}

.task-description {
    color: #000000;
    margin-bottom: 15px;
    line-height: 1.6;
}

.task-description a {
    color: #4a9eff;
    text-decoration: underline;
    cursor: pointer;
    transition: color 0.3s;
}

.task-description a:hover {
    color: #6bb4ff;
}

.task-input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #000000;
    border-radius: 5px;
    font-size: 16px;
    margin-bottom: 10px;
    background-color: transparent;
    color: #000000;
    transition: border-color 0.3s;
}

.task-input:focus {
    outline: none;
    border-color: #000000;
}

.task-input::placeholder {
    color: #000000;
    opacity: 0.7;
}

.task-submit {
    padding: 12px 24px;
    background-color: transparent;
    color: #000000;
    border: 1px solid #000000;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    font-size: 16px;
}

.task-submit:hover {
    background-color: rgba(139, 69, 19, 0.2);
    border-color: #000000;
    color: #000000;
}

.empty-state {
    text-align: center;
    color: #000000;
    padding: 40px;
    font-style: italic;
    opacity: 0.7;
}

.family-og-badge {
    background: rgba(212, 175, 55, 0.15);
    border: 2px solid #d4af37;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    color: #000000;
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.badge-image {
    max-width: 100%;
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.family-og-badge h3 {
    color: #d4af37;
    font-size: 28px;
    margin-bottom: 10px;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.badge-rank {
    color: #d4af37;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.family-og-badge p {
    color: #000000;
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-content {
        grid-template-columns: 1fr;
    }

    .user-info {
        grid-template-columns: 1fr;
    }

    .button-group {
        flex-direction: column;
    }
}
