body {
    font-family: 'Arial', sans-serif;
    background-color: #f5f0e8;
    color: #333;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.demo-header {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #e8e3db;
    background-attachment: fixed;
    color: #888;
    text-align: center;
    padding: 15px 20px;
    font-size: 18px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.demo-header .demo-note {
    font-size: 20px;
    margin-bottom: 10px;
}

.role-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.role-nav a {
    color: #888;
    text-decoration: none;
    font-size: 18px;
    padding: 8px 16px;
    border-radius: 20px;
    transition: background 0.3s;
}

.role-nav a:hover {
    background-color: #d4edda;
}

.hero {
    text-align: center;
    padding: 60px 20px 80px;
    background-color: #f5f0e8;
    margin-top: 80px;
}

.logo {
    max-width: 340px;
    height: auto;
    margin-bottom: 30px;
}

#dashboard {
    max-width: 1200px;
    margin: 0 auto 80px;
    padding: 0 20px;
    flex: 1;
}

.role-buttons {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin: 50px 0;
}

.role-buttons button {
    background-color: #004d80;
    color: white;
    font-size: 21px;
    font-weight: bold;
    padding: 18px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    min-width: 220px;
    transition: all 0.3s ease;
}

.role-buttons button:hover {
    background-color: #006600;
    transform: translateY(-4px);
}

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

.sub-button {
    background: #004d80;
    color: white;
    font-size: 20px;
    font-weight: bold;
    padding: 25px 20px;
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

.sub-button:hover {
    background: #006600;
    transform: translateY(-8px);
}

.sub-button.grayed {
    background: #ccc;
    color: #666;
    cursor: not-allowed;
    box-shadow: none;
}

.sub-button.grayed:hover {
    background: #ccc;
    transform: none;
}

.video-placeholder {
    background: #e8e3db;
    padding: 60px 20px;
    border-radius: 20px;
    font-size: 20px;
    color: #004d80;
    margin: 30px auto;
    max-width: 800px;
    font-style: italic;
    text-align: center;
    cursor: pointer;
}

.deceased-banner {
    background-color: #004d80;
    color: white;
    text-align: center;
    padding: 40px 20px;
    margin: 0 0 50px 0;
}

.deceased-banner p {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.sign-deceased-btn {
    background-color: white;
    color: #004d80;
    font-size: 20px;
    font-weight: bold;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.sign-deceased-btn:hover {
    background-color: #d4edda;
    transform: translateY(-3px);
}

.proof-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    max-width: 1000px;
    margin: 40px auto;
    text-align: left;
}

.proof-card h4 {
    color: #004d80;
    font-size: 28px;
    margin-bottom: 30px;
    text-align: center;
}

.beneficiary-list {
    margin-bottom: 40px;
}

.beneficiary {
    background: #e8e3db;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.beneficiary:hover {
    background: #d4edda;
}

.beneficiary h5 {
    color: #006600;
    font-size: 22px;
    margin: 0 0 10px;
}

.vesting-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.vesting-table th, .vesting-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #ccc;
    cursor: pointer;
}

.vesting-table th {
    background: #004d80;
    color: white;
}

.vesting-table tr:nth-child(even) {
    background: #f0f0f0;
}

.vesting-table tr:hover {
    background: #d4edda;
}

.verify-btn {
    background: #006600;
    color: white;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    font-size: 20px;
    cursor: pointer;
    display: block;
    margin: 40px auto 0;
}

.mock-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    justify-content: center;
    align-items: center;
}

.mock-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.mock-content p {
    font-size: 20px;
    color: #004d80;
    margin-bottom: 20px;
}

.mock-close {
    background: #006600;
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
}

.section-button {
    background: #004d80;
    color: white;
    font-size: 22px;
    padding: 16px 40px;
    border: none;
    border-radius: 50px;
    margin: 20px;
    cursor: pointer;
}

.section-button:hover {
    background: #006600;
}

#plain, #verbose {
    padding: 40px 0;
}

.pie-chart-container {
    max-width: 400px; /* Smaller pie chart */
    margin: 40px auto;
}

.audit-indicator {
    background: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 20px;
    text-align: center;
    font-size: 24px;
    margin-bottom: 40px;
}

.code-block {
    background: #f0f0f0;
    padding: 20px;
    border-radius: 12px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 14px;
}

.app-footer {
    background-color: #e8e3db;
    padding: 30px 20px;
    text-align: center;
    margin-top: auto;
}

.footer-nav {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.footer-nav a {
    color: #004d80;
    text-decoration: none;
    font-size: 18px;
    font-weight: bold;
    padding: 10px 20px;
    border-radius: 20px;
    transition: background 0.3s;
}

.footer-nav a:hover {
    background-color: #d4edda;
}

.settings-icon {
    font-size: 32px;
    cursor: pointer;
    color: #004d80;
}

@media (max-width: 768px) {
    .role-nav { flex-direction: column; }
    .sub-button { padding: 20px; font-size: 18px; }
    .vesting-table th, .vesting-table td { padding: 10px; font-size: 16px; }
    .role-buttons button { font-size: 18px; padding: 16px 30px; min-width: 180px; }
}