:root {
            --primary-color: #007bff;
            --secondary-color: #28a745;
            --background-color: #f8f9fa;
            --text-color: #343a40;
            --card-bg-color: #fff;
            --card-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
            --log-bg-color: #e9ecef;
        }

        body {
            margin: 0;
            font-family: 'Noto Sans TC', sans-serif;
            background-color: var(--background-color);
            color: var(--text-color);
            line-height: 1.6;
        }

        .navbar {
            background-color: #fff;
            padding: 0.75rem 2rem;
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
            display: flex;
            justify-content: space-between;
            align-items: center;
            position: sticky;
            top: 0;
            z-index: 1020;
        }
        
        .navbar .logo {
            color: var(--primary-color);
            text-decoration: none;
            font-size: 1rem;
            font-weight: 700;
        }

        .navbar .nav-links a {
             font-size: 0.9rem;
             font-weight: 700;
             margin-left: 1rem;
             text-decoration: none;
             color: var(--primary-color);
        }

        .container {
            padding: 2rem;
            max-width: 900px;
            margin: 2rem auto;
        }

        h1 {
            font-weight: 700;
            text-align: center;
        }

        /* --- MODIFIED: Title Bar CSS --- */
        .title-bar {
            position: relative; 
            display: flex;
            justify-content: center; 
            align-items: center;
            margin-bottom: 2rem;
        }

        .title-bar h1 {
            margin: 0;
        }

        /* --- MODIFIED: Icon Button CSS --- */
        .btn-secondary {
            position: absolute; 
            right: 0;
            top: 50%;
            transform: translateY(-50%);

            width: 40px;
            height: 40px;
            padding: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            
            background-color: transparent;
            border: 1px solid var(--primary-color);
            border-radius: 50%; 
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-secondary:hover {
            background-color: var(--primary-color);
            color: #fff;
        }
        
        /* --- NEW: SVG Icon CSS --- */
        .btn-secondary svg {
            width: 20px;
            height: 20px;
            stroke: var(--primary-color); 
            transition: all 0.2s;
        }

        .btn-secondary:hover svg {
            stroke: #fff; 
        }


        #loading-spinner {
            display: flex;
            justify-content: center;
            padding: 4rem;
        }

        .spinner {
            width: 3rem;
            height: 3rem;
            border: .3em solid #ddd;
            border-right-color: var(--primary-color);
            border-radius: 50%;
            animation: spinner-border .75s linear infinite;
        }

        .requests-grid {
            display: grid;
            grid-template-columns: 1fr;
            gap: 1.5rem;
        }

        .request-card {
            background-color: var(--card-bg-color);
            border-radius: 8px;
            box-shadow: var(--card-shadow);
            padding: 1.5rem;
            display: flex;
            flex-direction: column;
        }

        .card-header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
        }

        .card-header-badges {
            display: flex;
            gap: 0.5rem;
            flex-wrap: wrap;
        }

        .card-header .badge.people-needed-badge {
            background-color: #fd7e14;
            color: #fff;
        }

        .card-header .badge {
            align-self: flex-start;
            background-color: var(--primary-color);
            color: #fff;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.9rem;
            font-weight: 700;
            margin-bottom: 1rem;
        }

        .card-body {
            display: flex;
            flex-direction: column; /* Default for mobile */
            gap: 1.5rem;
        }

        @media (min-width: 600px) {
            .card-body {
                flex-direction: row;
                align-items: center; /* Vertically center items */
            }
        }

        .card-photo-container {
            flex-shrink: 0; /* Prevent shrinking */
            width: 100%; /* Full width on mobile */
        }

        @media (min-width: 600px) {
            .card-photo-container {
                width: 150px;
            }
        }

        .card-photo-container .photo {
            width: 100%;
            height: 150px;
            object-fit: cover;
            border-radius: 4px;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        .card-photo-container:hover .photo {
            transform: scale(2.2);
            z-index: 10;
        }

        .card-content {
            flex-grow: 1; /* Allow text content to take remaining space */
        }

        .description, .progress-log {
            background-color: #f8f9fa;
            padding: 1rem;
            border-radius: 4px;
            margin-top: 0.5rem;
            margin-bottom: 1rem;
            word-break: break-all;
        }

        .progress-log ul {
            padding-left: 20px;
            margin: 0;
        }

        .log-toggle {
            font-size: 0.9rem;
            color: var(--primary-color);
            cursor: pointer;
            margin-left: 8px;
        }
        
        .btn {
            display: inline-block;
            width: 100%;
            padding: 0.7rem 1rem;
            font-size: 1.1rem;
            font-weight: 700;
            color: #fff;
            background-color: var(--secondary-color);
            border: none;
            border-radius: 4px;
            cursor: pointer;
            text-align: center;
            transition: background-color 0.2s;
            margin-top: 1.5rem;
        }

        .btn:hover { background-color: #218838; }
        .btn:disabled { background-color: #6c757d; cursor: not-allowed; }

        @keyframes spinner-border {
            to { transform: rotate(360deg); }
        }

        .site-footer {
            background-color: #e9ecef;
            padding: 1.5rem 2rem;
            margin-top: 3rem;
            text-align: center;
            font-size: 0.9rem;
            color: #6c757d;
        }
        .footer-container a {
            color: #6c757d;
            text-decoration: none;
            margin: 0 10px;
        }
        .footer-container a:hover {
            text-decoration: underline;
        }
        .footer-separator {
            color: #ced4da;
        }
        .footer-contact {
            margin-top: 1rem;
        }

        @media (min-width: 768px) {
            .navbar .logo {
                font-size: 1.2rem;
            }
            .navbar .nav-links a {
                font-size: 1rem;
                margin-left: 1.5rem;
            }
        }

        .pagination {
            display: flex;
            justify-content: center;
            align-items: center;
            margin-top: 2rem;
        }

        .pagination button {
            background-color: #fff;
            border: 1px solid #dee2e6;
            color: var(--primary-color);
            padding: 0.5rem 0.75rem;
            margin: 0 2px;
            cursor: pointer;
            transition: background-color 0.2s;
            border-radius: 4px;
        }

        .pagination button:hover {
            background-color: #e9ecef;
        }

        .pagination button.active {
            background-color: var(--primary-color);
            color: #fff;
            border-color: var(--primary-color);
        }

        .pagination button:disabled {
            color: #6c757d;
            cursor: not-allowed;
            background-color: #fff;
        }