:root {
    --primary-color: #4f46e5;
    --primary-dark: #4338ca;
    --secondary-color: #06b6d4;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --warning-color: #f59e0b;
    --background: #f9fafb;
    --surface: #ffffff;
    --text-primary: #111827;
    --text-secondary: #6b7280;
    --border: #e5e7eb;
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
}

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

/* Header */
header {
    text-align: center;
    margin-bottom: 3rem;
    position: relative;
}

header h1 {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.tagline {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

.back-link {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.back-link:hover {
    color: var(--primary-dark);
}

/* Main */
main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Sections */
section {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
}

section h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Info Cards */
.info-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem;
    background-color: var(--background);
    border-radius: 6px;
}

.info-row .label {
    font-weight: 600;
    color: var(--text-secondary);
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--background);
    border-radius: 8px;
    border: 2px solid var(--border);
    transition: all 0.3s;
}

.stat-card.signed {
    border-color: var(--success-color);
}

.stat-card.pending {
    border-color: var(--warning-color);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-card.signed .stat-number {
    color: var(--success-color);
}

.stat-card.pending .stat-number {
    color: var(--warning-color);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-top: 0.5rem;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 12px;
    background-color: var(--background);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: white;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: white;
}

.btn-secondary:hover:not(:disabled) {
    background-color: #0891b2;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-danger {
    background-color: var(--danger-color);
    color: white;
}

.btn-danger:hover:not(:disabled) {
    background-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-clear {
    background-color: var(--danger-color);
    color: white;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    margin-top: 0.5rem;
}

.btn-clear:hover {
    background-color: #dc2626;
}

.button-group {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Steps Grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
}

.step {
    text-align: center;
}

.step-number {
    width: 50px;
    height: 50px;
    margin: 0 auto 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Admin Section */
.admin-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.shareholder-list {
    display: grid;
    gap: 1rem;
}

.shareholder-item {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.shareholder-item:hover {
    box-shadow: var(--shadow);
}

.shareholder-item.signed {
    border-left: 4px solid var(--success-color);
    background-color: #f0fdf4;
}

.shareholder-item.pending {
    border-left: 4px solid var(--warning-color);
}

.shareholder-info {
    display: flex;
    flex-direction: column;
}

.shareholder-name {
    font-weight: 600;
    color: var(--text-primary);
}

.shareholder-type {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.shareholder-entity {
    font-size: 0.875rem;
    color: var(--primary-color);
}

.shareholder-link {
    font-family: monospace;
    font-size: 0.875rem;
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-btn {
    padding: 0.5rem 1rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.copy-btn:hover {
    background-color: #0891b2;
}

.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.status-badge.signed {
    background-color: var(--success-color);
    color: white;
}

.status-badge.pending {
    background-color: var(--warning-color);
    color: white;
}

/* Signature Pad */
.signature-pad-container {
    position: relative;
    border: 2px solid var(--border);
    border-radius: 8px;
    padding: 1rem;
    background-color: var(--surface);
    margin-bottom: 1.5rem;
}

#signaturePad {
    border: 2px dashed var(--border);
    border-radius: 6px;
    cursor: crosshair;
    max-width: 100%;
    height: auto;
    background-color: white;
    touch-action: none; /* Prevent scrolling during signature drawing on mobile */
}

/* Document Viewer */
.document-viewer {
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.document-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.document-header h3 {
    margin: 0;
    font-size: 1.5rem;
}

.document-content {
    padding: 2rem;
    max-height: 400px;
    overflow-y: auto;
    background-color: white;
}

.document-content p {
    margin-bottom: 1rem;
    text-align: justify;
}

/* Checkbox Group */
.checkbox-group {
    margin-bottom: 1.5rem;
}

.checkbox-group label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
}

.instruction {
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

/* Messages */
.loading-message,
.error-message,
.success-message {
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid var(--border);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.error-message h2 {
    color: var(--danger-color);
    margin-bottom: 1rem;
}

.success-message h2 {
    color: var(--success-color);
    margin-bottom: 1rem;
}

/* Filter Section */
.filter-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.5rem 1rem;
    border: 2px solid var(--border);
    background-color: var(--surface);
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--primary-color);
}

.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

/* Status List */
.status-list {
    display: grid;
    gap: 1rem;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    transition: all 0.2s;
}

.status-item:hover {
    box-shadow: var(--shadow);
}

.status-item.signed {
    border-left: 4px solid var(--success-color);
}

.status-item.pending {
    border-left: 4px solid var(--warning-color);
}

.status-item-info {
    flex: 1;
}

.status-item-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.status-item-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.status-item-date {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-left: 1rem;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: var(--text-primary);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.3s;
    z-index: 1000;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* Footer */
footer {
    text-align: center;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 1rem;
    }

    header h1 {
        font-size: 2rem;
    }

    .back-link {
        position: static;
        display: block;
        margin-bottom: 1rem;
        transform: none;
    }

    section {
        padding: 1.5rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .shareholder-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .shareholder-link {
        font-size: 0.75rem;
    }

    .status-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .status-item-date {
        margin-left: 0;
    }

    #signaturePad {
        width: 100%;
    }

    .button-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
        justify-content: center;
        min-height: 48px; /* Better touch targets for mobile */
        font-size: 1rem;
    }

    /* Make admin navigation stack vertically on mobile */
    header div[style*="display: flex"] {
        flex-direction: column !important;
        align-items: stretch !important;
    }

    /* Improve filter buttons on mobile */
    .filter-buttons {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .filter-btn {
        min-height: 44px;
        padding: 0.5rem 1rem;
    }

    /* Better modal sizing for mobile */
    .modal-content {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.25rem;
    }
}

/* Document Container Styles */
.document-container {
    min-height: 100vh;
    background-color: var(--background);
}

/* Fixed Header */
.fixed-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 2px solid var(--border);
    box-shadow: var(--shadow);
    z-index: 100;
    padding: 1rem 2rem;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.signer-info-compact {
    flex: 1;
}

.signer-name-header {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.sign-progress {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.progress-bar-compact {
    height: 6px;
    background-color: var(--border);
    border-radius: 3px;
    overflow: hidden;
    margin-top: 0.5rem;
}

.progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--success-color));
    transition: width 0.5s ease;
    border-radius: 3px;
}

.mediation-info-compact {
    text-align: right;
}

.mediation-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.mediation-date {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 0.125rem;
}

.mediation-countdown {
    font-size: 0.875rem;
    color: var(--warning-color);
    font-weight: 600;
    margin-top: 0.25rem;
}

.header-actions {
    display: flex;
    gap: 0.75rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-success {
    background-color: var(--success-color);
}

.btn-success:hover {
    background-color: #059669;
}

/* Admin signed block links */
.signed-block-link {
    color: var(--success-color);
    text-decoration: underline;
    font-weight: 600;
    cursor: pointer;
}

.signed-block-link:hover {
    color: #059669;
}

/* Document Page */
.document-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 6rem 2rem 2rem; /* Top padding for fixed header */
    background: white;
    min-height: 100vh;
}

.document-title-page {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px solid var(--text-primary);
    margin-bottom: 2rem;
}

.document-title-page h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.document-date {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Document Body */
.document-body {
    font-family: 'Times New Roman', Times, serif;
    font-size: 1rem;
    line-height: 1.8;
    text-align: justify;
    margin-bottom: 3rem;
}

.document-body p {
    margin-bottom: 1.5rem;
}

.whereas, .now-therefore, .witness-clause {
    text-indent: 2rem;
}

/* Signatures Page */
.signatures-page {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 3px double var(--text-primary);
}

.signatures-heading {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
}

/* Signature Blocks */
#signatureBlocksContainer {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.signature-block {
    padding: 1.5rem;
    border: 2px solid var(--border);
    border-radius: 8px;
    background: white;
    transition: all 0.3s ease;
    position: relative;
}

.signature-block.user-block {
    border-color: var(--primary-color);
    border-width: 3px;
    background: linear-gradient(to right, #eef2ff, #ffffff);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.signature-block.unsigned {
    border-color: var(--warning-color);
    background: linear-gradient(to right, #fffbeb, #ffffff);
}

.signature-block.signed {
    background: #f0fdf4;
    border-color: var(--success-color);
}

.signature-block.user-block.signed {
    background: linear-gradient(to right, #dcfce7, #f0fdf4);
    border-color: var(--success-color);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

.signature-line {
    min-height: 80px;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: flex-end;
}

.empty-signature-line {
    width: 100%;
    border-bottom: 2px solid var(--text-primary);
    height: 60px;
}

.signature-image {
    max-width: 100%;
    max-height: 80px;
    height: auto;
}

.signature-info {
    margin-top: 0.5rem;
}

.signature-name {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
}

.signature-entity {
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.signature-by {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.signature-by-line {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.signature-timestamp {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    font-style: italic;
}

.btn-sign {
    margin-top: 1rem;
}

.btn-download {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-download svg {
    flex-shrink: 0;
}

.signature-status-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.signature-status-badge.signed {
    background-color: var(--success-color);
    color: white;
}

.signature-status-badge.pending {
    background-color: var(--warning-color);
    color: white;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: white;
    border-radius: 12px;
    width: 90%;
    max-width: 700px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.25rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--text-secondary);
    line-height: 1;
}

.modal-close:hover {
    color: var(--text-primary);
}

.modal-body {
    padding: 1.5rem;
    flex: 1;
    overflow-y: auto;
}

.modal-instruction {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

/* Thank You Modal Styles */
.thank-you-modal {
    max-width: 500px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 10px;
    animation: confetti-fall 3s ease-out forwards;
}

@keyframes confetti-fall {
    0% {
        transform: translateY(-100%) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

.thank-you-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

.thank-you-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: namaste-bow 1s ease-in-out;
}

@keyframes namaste-bow {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.thank-you-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.thank-you-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.thank-you-block-info {
    background: var(--bg-secondary);
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.thank-you-block-name {
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.thank-you-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.thank-you-actions .btn {
    width: 100%;
    justify-content: center;
    align-items: center;
    display: flex;
}

/* Pulse animation for highlighting */
@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.4);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(79, 70, 229, 0);
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .fixed-header {
        padding: 0.75rem 1rem;
    }

    .header-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .mediation-info-compact {
        text-align: left;
        width: 100%;
    }

    .header-actions {
        width: 100%;
    }

    .header-actions .btn {
        flex: 1;
    }

    .document-page {
        padding: 12rem 1rem 1rem;
    }

    .document-title-page h1 {
        font-size: 1.75rem;
    }

    .signature-block {
        padding: 1rem;
    }

    .signature-status-badge {
        position: static;
        margin-top: 1rem;
        display: inline-block;
    }

    .modal-content {
        width: 95%;
        max-height: 95vh;
        padding: 1rem;
    }

    .modal-footer {
        flex-direction: column;
        gap: 0.5rem;
    }

    .modal-footer .btn {
        width: 100%;
        min-height: 48px;
    }

    /* Improve signature block visibility on mobile */
    .signature-block.user-block {
        border-width: 3px;
        box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.15);
    }

    .btn-sign {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }

    /* Better document text readability on mobile */
    .document-body {
        font-size: 0.9375rem;
        line-height: 1.7;
    }

    /* Improve PDF preview on mobile */
    .pdf-preview-card {
        padding: 1.5rem;
    }

    .pdf-icon svg {
        width: 60px;
        height: 60px;
    }
}

/* Completion Page Styles */
.success-section {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #dcfce7 0%, #f0fdf4 100%);
    border-radius: 12px;
    margin-bottom: 2rem;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--success-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    font-weight: 700;
}

.success-section h2 {
    color: var(--success-color);
    margin-bottom: 0.5rem;
}

.success-message {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.signer-name-display {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* PDF Download Section */
.pdf-download-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.pdf-preview-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--background);
    border: 2px dashed var(--border);
    border-radius: 12px;
}

.pdf-icon {
    color: var(--primary-color);
}

.pdf-info {
    text-align: center;
}

.pdf-info h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.pdf-details {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.125rem;
    min-width: 200px;
}

/* Progress Section */
.progress-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.progress-bar-large {
    width: 100%;
    height: 16px;
    background-color: var(--background);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-text-large {
    text-align: center;
    color: var(--text-primary);
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.block-progress-detail {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Next Steps Section */
.next-steps-section {
    background: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.step-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.step-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
}

.step-content h3 {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* Responsive for completion page */
@media (max-width: 768px) {
    .success-section {
        padding: 2rem 1rem;
    }

    .success-icon {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .pdf-preview-card {
        padding: 1.5rem;
    }

    .btn-large {
        width: 100%;
    }

    .step-item {
        gap: 1rem;
    }

    .step-icon {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }

    .action-buttons {
        flex-direction: column;
        width: 100%;
    }

    .action-buttons .btn {
        width: 100%;
    }
}

/* PDF Cards - Admin PDFs Page */
.pdf-list {
    display: grid;
    gap: 1rem;
    margin-top: 2rem;
}

.pdf-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background-color: var(--surface);
    transition: all 0.2s;
}

.pdf-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.pdf-card-info {
    flex: 1;
}

.pdf-card-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.pdf-card-details {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.pdf-card-date {
    font-size: 0.875rem;
    color: var(--success-color);
}

.pdf-card-actions {
    display: flex;
    gap: 0.5rem;
}

.pdf-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.125rem;
}

/* Admin Section */
.admin-section {
    background-color: var(--surface);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-section h2 {
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    margin-top: 1rem;
    transition: all 0.2s;
}

.back-link:hover {
    color: var(--primary-dark);
}

@media (max-width: 768px) {
    .pdf-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .pdf-card-actions {
        width: 100%;
    }

    .pdf-card-actions .btn {
        width: 100%;
    }

    .pdf-stats {
        grid-template-columns: 1fr;
    }
}

/* Home Page Redesign - Compact Header with Document */
.home-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.compact-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 1rem 2rem;
    box-shadow: var(--shadow-lg);
    z-index: 100;
}

.header-content-compact {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-bottom: 0.75rem;
}

.header-content-compact h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.header-stats {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.stat-compact {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stat-label-compact {
    font-size: 0.875rem;
    opacity: 0.9;
}

.stat-value-compact {
    font-size: 1.25rem;
    font-weight: 700;
}

.mediation-countdown .countdown {
    color: #fbbf24;
}

.mediation-countdown .countdown.urgent {
    color: #ef4444;
    animation: pulse 1.5s ease-in-out infinite;
}

.mediation-countdown .countdown.expired {
    color: #9ca3af;
}

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

/* Mediation Banner */
.mediation-banner {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
    padding: 1.5rem 2rem;
    margin: 0 auto;
    max-width: 1200px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
    margin-top: 1rem;
}

.mediation-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.mediation-icon {
    font-size: 3rem;
}

.mediation-text {
    flex: 1;
}

.mediation-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.7);
    margin-bottom: 0.25rem;
}

.mediation-date {
    font-size: 1.5rem;
    font-weight: 700;
    color: #000;
}

.mediation-countdown-large {
    text-align: center;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.5rem 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.countdown-number {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: #000;
}

.countdown-number.urgent {
    color: #ef4444;
    animation: pulse 1.5s ease-in-out infinite;
}

.countdown-number.expired {
    color: #9ca3af;
}

.countdown-label {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(0, 0, 0, 0.7);
    margin-top: 0.5rem;
}

@media (max-width: 768px) {
    .mediation-banner {
        padding: 1rem 1.5rem;
    }

    .mediation-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }

    .mediation-icon {
        font-size: 2rem;
    }

    .mediation-date {
        font-size: 1.25rem;
    }

    .countdown-number {
        font-size: 2.5rem;
    }

    .mediation-countdown-large {
        padding: 1rem 1.5rem;
        width: 100%;
    }
}

.progress-bar-compact {
    max-width: 1200px;
    margin: 0 auto;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill-compact {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #34d399 100%);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.document-main {
    flex: 1;
    background-color: var(--background);
    padding: 2rem;
}

.document-page-home {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
    border-radius: 8px;
}

.document-title-page-home {
    text-align: center;
    padding: 3rem 0;
    border-bottom: 2px solid var(--border);
    margin-bottom: 2rem;
}

.document-title-page-home h1 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.document-date {
    font-size: 1.125rem;
    color: var(--text-secondary);
}

.document-body-home {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-primary);
    text-align: justify;
}

.document-body-home p {
    margin-bottom: 1.5rem;
}

.signature-section-preview {
    margin-top: 3rem;
    padding: 2rem;
    background: var(--background);
    border-radius: 8px;
    text-align: center;
}

.signature-section-preview h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.signature-note {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.btn-read-sign {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    font-size: 1.125rem;
    font-weight: 700;
    min-height: 56px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.2s;
}

.btn-read-sign:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.btn-read-sign svg {
    flex-shrink: 0;
}

/* Mobile styles for home page */
@media (max-width: 768px) {
    .compact-header {
        padding: 1rem;
    }

    .header-content-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }

    .header-content-compact h1 {
        font-size: 1.25rem;
    }

    .header-stats {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }

    .stat-compact {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .stat-label-compact {
        font-size: 0.75rem;
    }

    .stat-value-compact {
        font-size: 1.125rem;
    }

    .document-main {
        padding: 1rem;
    }

    .document-page-home {
        padding: 1.5rem;
    }

    .document-title-page-home h1 {
        font-size: 1.75rem;
    }

    .document-body-home {
        font-size: 0.9375rem;
        text-align: left;
    }
}
