* {
            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;
        }

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

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

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

        .logo {
            height: 100px;
            margin-right: 20px;
        }

        .header h1 {
            color: #333;
            font-size: 32px;
            margin-bottom: 10px;
        }

        .header p {
            color: #666;
            font-size: 16px;
        }

        .claims-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
            gap: 25px;
        }

        .claim-card {
            background: white;
            border-radius: 15px;
            padding: 25px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.2);
            transition: transform 0.3s ease;
        }

        .claim-card:hover {
            transform: translateY(-5px);
        }

        .claim-header {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 2px solid #f0f0f0;
        }

        .claim-title {
            font-size: 22px;
            font-weight: 600;
            color: #333;
        }

        .status-badge {
            background: #f11c1c;
            color: white;
            padding: 6px 14px;
            border-radius: 20px;
            font-size: 12px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .pending-days {
            background: #ffe5e5;
            color: #ff4757;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
        }

        .email-section {
            background: #f8f9fa;
            padding: 20px;
            border-radius: 10px;
            margin-bottom: 20px;
        }

        .email-header {
            font-size: 14px;
            color: #666;
            margin-bottom: 10px;
            font-weight: 600;
        }

        .email-body {
            background: white;
            padding: 15px;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.6;
            color: #444;
            max-height: 300px;
            overflow-y: auto;
            border-left: 3px solid #667eea;
        }

        .email-meta {
            font-size: 12px;
            color: #888;
            margin-bottom: 12px;
            padding-bottom: 10px;
            border-bottom: 1px solid #e0e0e0;
        }

        .email-meta strong {
            color: #555;
        }

        .email-content {
            white-space: pre-wrap;
        }

        .attachments {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .attachment-section-title {
            font-size: 14px;
            font-weight: 600;
            color: #333;
            margin-bottom: 12px;
        }

        .attachment-btn {
            flex: 1;
            min-width: 200px;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
            color: white;
            border: none;
            padding: 15px 20px;
            border-radius: 10px;
            cursor: pointer;
            font-size: 14px;
            font-weight: 600;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            transition: all 0.3s ease;
        }

        .attachment-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }

        .attachment-btn.email-attachment {
            background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
        }

        .attachment-btn.email-attachment:hover {
            box-shadow: 0 5px 15px rgba(245, 87, 108, 0.4);
        }

        .attachment-btn svg {
            width: 20px;
            height: 20px;
        }

        #emailModal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.8);
            z-index: 1000;
            overflow-y: auto;
        }

        .email-modal-content {
            max-width: 800px;
            margin: 50px auto;
            background: white;
            border-radius: 15px;
            padding: 30px;
            position: relative;
        }

        #closeModal {
            position: absolute;
            top: 20px;
            right: 20px;
            background: #ff4757;
            color: white;
            border: none;
            width: 35px;
            height: 35px;
            border-radius: 50%;
            cursor: pointer;
            font-size: 20px;
            font-weight: bold;
        }

        @media (max-width: 768px) {
            .claims-grid {
                grid-template-columns: 1fr;
            }

            .attachment-btn {
                min-width: 100%;
            }
        }

        /* New Styles */
        .followup-card {
            background: #f0f8ff;
        }

        .followup-card .email-body {
            border-left: 3px solid #1e90ff;
        }

        .client-card {
            background: #fff8dc;
        }

        .client-card .claim-details p {
            margin-bottom: 10px;
        }

        .client-followup-card {
            background: #f5f5f5;
        }

        .client-followup-card .attachment-btn {
            background: linear-gradient(135deg, #ff8c00 0%, #ff0080 100%);
        }

        .no-reply {
            background: #ffe5e5;
            color: #ff4757;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
        }

        .ff-card {
            background: #ffdddd;
            border-left: 5px solid #f11c1c;
        }

        .unpaid-message {
            background: #ffe5e5;
            color: #ff4757;
            padding: 12px 20px;
            border-radius: 10px;
            font-size: 15px;
            font-weight: 600;
            margin-bottom: 20px;
            text-align: center;
        }

        .section-break {
            grid-column: 1 / -1;
            height: 2px;
            background-color: #e0e0e0;
            margin: 20px 0;
        }

        .followup-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 25px;
            grid-column: 1 / -1;
        }

.contact-info {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.contact-info a {
    color: #667eea;
    text-decoration: none;
}

.contact-info a:hover {
    text-decoration: underline;
}
