/* Base styles for PesaTask application */

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

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

header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 1rem 0;
}

/* Mobile Header Styles */
.mobile-header {
    display: none;
    flex-direction: column;
    padding: 0 16px;
}

.mobile-header-top {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.mobile-header-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
}

.welcome-text {
    color: #666;
    font-size: 14px;
}

.dashboard-btn {
    padding: 8px 16px;
    font-size: 14px;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Desktop Header */
.desktop-header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
    display: none; /* Hidden by default, shown on desktop */
}

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

.desktop-header .logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #28a745;
    text-decoration: none;
}

.desktop-nav {
    display: flex;
    gap: 30px;
    align-items: center;
}

.nav-link {
    color: #333;
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    background-color: #f8f9fa;
    color: #28a745;
}

.nav-link.logout {
    color: #dc3545;
}

.nav-link.logout:hover {
    background-color: #f8d7da;
    color: #dc3545;
}

/* Desktop Styles */
@media (min-width: 769px) {
    .desktop-header {
        display: block;
    }
}

@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-header {
        display: flex;
    }

    header {
        padding: 16px 0;
    }
}

.logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: #007bff;
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #0056b3;
}

.hero {
    text-align: center;
    padding: 100px 0;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

.hero img {
    max-width: 200px;
    margin-bottom: 20px;
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: 50px 0;
    background-color: #fff;
}

.stat {
    text-align: center;
}

.stat h3 {
    font-size: 2rem;
    color: #007bff;
}

.stat p {
    color: #666;
}

.payment-methods {
    text-align: center;
    padding: 50px 0;
    background-color: #f8f9fa;
}

.payment-methods h3 {
    margin-bottom: 30px;
}

.payment-logos {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.payment-logos img {
    height: 50px;
    max-width: 100px;
}

.testimonial {
    text-align: center;
    padding: 50px 0;
    background-color: #fff;
}

.testimonial blockquote {
    font-style: italic;
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.testimonial cite {
    color: #666;
}

.cta {
    text-align: center;
    padding: 50px 0;
    background-color: #007bff;
    color: #fff;
}

.cta h2 {
    margin-bottom: 20px;
}

.cta .btn {
    background-color: #fff;
    color: #007bff;
}

.cta .btn:hover {
    background-color: #f8f9fa;
}

.surveys {
    padding: 80px 0;
    background-color: #f8f9fa;
}

.survey-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.survey-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.survey-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
}

.survey-card h3 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.3rem;
}

.survey-stats {
    margin-bottom: 25px;
}

.survey-stats p {
    margin: 8px 0;
    color: #666;
    font-size: 0.95rem;
}

.survey-stats .icon {
    margin-right: 8px;
}

.start-task-btn {
    width: 100%;
    padding: 12px;
    background-color: #28a745;
    color: #fff;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.start-task-btn:hover {
    background-color: #218838;
}

.survey-card.completed {
    opacity: 0.7;
    position: relative;
}

.completed-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: bold;
}

.completed-btn {
    background-color: #6c757d !important;
    cursor: not-allowed !important;
}

.completed-btn:hover {
    background-color: #6c757d !important;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.modal h2 {
    margin-bottom: 20px;
    color: #333;
}

.modal .survey-details {
    margin-bottom: 30px;
}

.modal .survey-details p {
    margin: 10px 0;
    color: #666;
}

.modal .modal-actions {
    display: flex;
    gap: 15px;
    justify-content: flex-end;
}

.modal .btn-secondary {
    background-color: #6c757d;
    color: #fff;
}

.modal .btn-secondary:hover {
    background-color: #545b62;
}

footer {
    text-align: center;
    padding: 20px 0;
    background-color: #333;
    color: #fff;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100vh;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: #fff;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
    overflow-y: auto;
}

.navbar.active {
    transform: translateX(0);
}

.navbar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.navbar-logo h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.navbar-close:hover {
    background-color: rgba(255,255,255,0.1);
}

.navbar-content {
    padding: 20px 0;
}

.navbar-user-info {
    display: flex;
    align-items: center;
    padding: 0 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.user-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    margin-right: 15px;
}

.user-details h3 {
    margin: 0 0 5px 0;
    font-size: 1.1rem;
}

.user-details p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.navbar-wallet {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.wallet-balance {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.wallet-label {
    font-size: 0.9rem;
    opacity: 0.8;
}

.wallet-amount {
    font-weight: bold;
    font-size: 1.1rem;
}

.navbar-menu {
    list-style: none;
    padding: 0;
    margin: 20px 0 0 0;
}

.navbar-item {
    margin-bottom: 5px;
}

.navbar-link {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
    border-radius: 8px;
    margin: 0 10px;
}

.navbar-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-icon {
    font-size: 1.2rem;
    margin-right: 15px;
    width: 25px;
    text-align: center;
}

.nav-text {
    font-size: 1rem;
}

.navbar-logout {
    margin-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
}

.navbar-logout .navbar-link {
    color: #ffcccc;
}

.navbar-logout .navbar-link:hover {
    background-color: rgba(255,0,0,0.1);
}

/* Navbar Toggle Button */
.navbar-toggle {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s;
    margin-right: 16px;
    min-width: 44px;
    min-height: 44px;
}

.navbar-toggle:hover {
    transform: scale(1.05);
}

.hamburger-line {
    width: 22px;
    height: 3px;
    background-color: #fff;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 2px;
}

/* Navbar Overlay */
.navbar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

.navbar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Main Content Adjustment */
.main-content {
    margin-left: 0;
    transition: margin-left 0.3s ease;
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2rem;
    }

    .stats {
        flex-direction: column;
        gap: 30px;
    }

    .payment-logos {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        margin: 2% auto;
        width: 95%;
        padding: 20px;
    }

    .question-actions {
        flex-direction: column !important;
        gap: 10px !important;
    }

    .question-actions button {
        width: 100% !important;
    }

/* Welcome Bonus Modal Styles */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    display: none;
}

.modal-content {
    background-color: #fff;
    margin: 2% auto;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.close-btn {
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close-btn:hover {
    color: #333;
}

.option:hover {
    border-color: #28a745 !important;
    background: #f8fff8 !important;
}

    .navbar-toggle {
        width: 44px;
        height: 44px;
    }

    .navbar-toggle .hamburger-line {
        width: 22px;
    }
}

/* Welcome Bonus Modal Specific Styles */
.welcome-bonus-modal {
    max-height: 90vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}

.welcome-bonus-modal .modal-header {
    flex-shrink: 0;
    position: sticky;
    top: 0;
    background-color: #fff;
    z-index: 1;
}

.welcome-bonus-modal .modal-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px 0;
}

.welcome-bonus-modal .modal-footer {
    flex-shrink: 0;
    position: sticky;
    bottom: 0;
    background-color: #fff;
    z-index: 1;
}