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;
    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 {
    width: 100%;
    margin: 0 auto 80px;
    padding: 0 40px;
    flex: 1;
    box-sizing: border-box;
}

.role-buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    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-fill, minmax(260px, 1fr));
    gap: 30px;
    margin-top: 40px;
    width: 100%;
}

.sub-button {
    background: #004d80;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 22px 16px;
    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%;
    box-sizing: border-box;
}

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

.sub-button.grayed {
    background: #bbb;
    color: #666;
    cursor: not-allowed;
}

.sub-button.grayed:hover {
    background: #bbb;
    transform: none;
}
/* Responsiveness fix */
@media (min-width: 1400px) {
    #dashboard { padding: 0 100px; }
    .dashboard-grid { gap: 40px; }
}

@media (max-width: 1200px) {
    .dashboard-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
    .dashboard-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; padding: 0 20px; }
}

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

.deceased-banner {
    background-color: #ffffff; /* Clean white card */
    border: 2px solid #004d80; /* Strong navy border for importance */
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 900px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0, 77, 128, 0.12); /* Slightly deeper blue shadow */
}

.deceased-banner p {
    font-size: 18px;
    color: #004d80; /* Navy text to match brand */
    margin-bottom: 20px;
    line-height: 1.5;
}

.sign-deceased-btn {
    background-color: #004d80; /* Primary navy */
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 36px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 77, 128, 0.25);
}

.sign-deceased-btn:hover {
    background-color: #006600; /* Brand green on hover – consistent with other buttons */
    transform: translateY(-3px);
}

/* Proof Card (used in witness.html and security-audits.html) */
.proof-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    margin: 40px auto;
    max-width: 800px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.proof-card h4 {
    color: #004d80;
    font-size: 26px;
    margin-bottom: 15px;
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: bold;
    font-size: 20px;
    margin: 20px 0;
}

.status-verified {
    background-color: #d4edda;
    color: #155724;
}

.status-unverified {
    background-color: #f8d7da;
    color: #721c24;
}

/* Verify Button */
.verify-btn {
    background-color: #004d80;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 40px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.verify-btn:hover {
    background-color: #006600;
    transform: translateY(-4px);
}

/* App Footer */
.app-footer {
    background-color: #e8e3db;
    padding: 30px 20px;
    margin-top: auto;
    text-align: center;
    font-size: 16px;
    color: #666;
}

.footer-nav {
    margin-bottom: 20px;
}

.footer-nav a {
    color: #004d80;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: color 0.3s;
}

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

.settings-icon {
    font-size: 28px;
    cursor: pointer;
    margin: 20px 0;
    display: inline-block;
    transition: transform 0.3s;
}

.settings-icon:hover {
    transform: scale(1.2);
}

/* Pie Chart Container */
.pie-chart-container {
    max-width: 600px;
    margin: 40px auto;
}

/* Vesting Tables */
.vesting-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.vesting-table th,
.vesting-table td {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #ddd;
}

.vesting-table th {
    background-color: #004d80;
    color: white;
    font-size: 18px;
}

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

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

/* Section Buttons (in contracts.html) */
.section-button {
    background-color: #004d80;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 14px 30px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    margin: 10px;
    min-width: 220px;
    transition: all 0.3s ease;
}

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

/* Audit Indicator */
.audit-indicator {
    background-color: #d4edda;
    color: #155724;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    font-size: 20px;
    font-weight: bold;
    margin: 30px auto;
    max-width: 800px;
}

/* Code Block */
.code-block {
    background: #f4f4f4;
    border-radius: 10px;
    padding: 20px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    margin: 30px auto;
    max-width: 900px;
}

.code-block code {
    color: #333;
}

/* Mock Modal (security-audits.html) */
.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;
    z-index: 2000;
}

.mock-content {
    background: white;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
}

.mock-close {
    background: #004d80;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    margin-top: 20px;
}

/* Small responsiveness tweaks */
@media (max-width: 768px) {
    .deceased-banner,
    .proof-card,
    .vesting-table,
    .pie-chart-container {
        margin: 20px auto;
        padding: 20px;
    }
    
    .section-button {
        min-width: auto;
        width: 90%;
        margin: 10px auto;
        display: block;
    }
}

@media (max-width: 480px) {
    .logo {
        max-width: 280px;
    }
    
    .hero {
        padding: 40px 20px 60px;
    }
}

/* Auth Header Section */
.auth-section {
    background-color: #e8e3db;
    padding: 12px 20px;
    text-align: center;
    font-size: 18px;
    color: #004d80;
    font-weight: bold;
}

.auth-message {
    margin-bottom: 15px;
}

.connect-wallet-btn {
    background-color: #004d80;
    color: white;
    font-size: 18px;
    font-weight: bold;
    padding: 12px 32px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.connect-wallet-btn:hover {
    background-color: #006600;
    transform: translateY(-3px);
}

.user-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.user-name {
    font-weight: bold;
    color: #004d80;
}

.user-address {
    font-family: 'Courier New', monospace;
    color: #666;
    background: #f0f0f0;
    padding: 6px 12px;
    border-radius: 20px;
}

.sign-out-btn {
    background: none;
    border: none;
    color: #004d80;
    font-size: 20px;
    cursor: pointer;
    transition: color 0.3s;
}

.sign-out-btn:hover {
    color: #c82333;
}

/* Signing Animation Overlay */
.signing-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    justify-content: center;
    align-items: center;
    z-index: 3000;
    flex-direction: column;
    color: white;
    font-size: 24px;
}

.signing-text {
    margin-bottom: 30px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 0.6; }
    50% { opacity: 1; }
    100% { opacity: 0.6; }
}

.spinner {
    width: 60px;
    height: 60px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #006600;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}