* {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :root {
            --primary-color: #3E67A3;
            --secondary-color: #03A180;
            --accent-color: #BBE7F4;
            --light-color: #f8fafc;
            --dark-color: #1e293b;
            --text-color: #334155;
            --shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
            --transition: all 0.3s ease;
            --border-radius: 10px;
        }

        body {
            font-family: 'Tajawal', sans-serif;
            line-height: 1.8;
            color: var(--text-color);
            background: linear-gradient(135deg, #f5f7fa 0%, #e9ecf2 100%);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        .main-content {
            flex: 1;
            max-width: 1000px;
            width: 100%;
            margin: 40px auto;
            padding: 0 20px;
        }

        .page-title {
            color: var(--primary-color);
            font-size: 2.5rem;
            font-weight: 700;
            text-align: center;
            margin-bottom: 20px;
            position: relative;
            padding-bottom: 15px;
        }

        .page-title::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 100px;
            height: 4px;
            background: linear-gradient(to left, var(--primary-color), var(--secondary-color));
            border-radius: 2px;
        }

        .title-decoration {
            text-align: center;
            margin-bottom: 40px;
            color: var(--secondary-color);
            font-size: 1.2rem;
            font-weight: 500;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .legal-document {
            background: white;
            border-radius: var(--border-radius);
            padding: 50px;
            box-shadow: var(--shadow);
            border: 1px solid rgba(62, 103, 163, 0.1);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.98);
            margin-bottom: 30px;
        }

        .legal-document::before {
            content: '';
            position: absolute;
            top: 0;
            right: 0;
            width: 150px;
            height: 150px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            opacity: 0.05;
            border-radius: 0 0 0 150px;
        }

        .document-header {
            text-align: center;
            margin-bottom: 40px;
            padding-bottom: 20px;
            border-bottom: 2px solid var(--accent-color);
        }

        .document-header h2 {
            color: var(--primary-color);
            font-size: 2rem;
            font-weight: 700;
            margin-bottom: 10px;
        }

        .document-header .date {
            color: var(--secondary-color);
            font-size: 1rem;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            flex-wrap: wrap;
        }

        .document-header .date i {
            color: var(--primary-color);
        }

        .document-body {
            color: var(--text-color);
            font-size: 1.1rem;
            line-height: 2;
        }

        .document-section {
            margin-bottom: 30px;
        }

        .document-section h3 {
            color: var(--primary-color);
            font-size: 1.4rem;
            font-weight: 600;
            margin-bottom: 20px;
            padding-right: 15px;
            border-right: 4px solid var(--secondary-color);
        }

        .document-section p {
            margin-bottom: 15px;
            text-align: justify;
        }

        .document-section ul {
            list-style: none;
            padding-right: 20px;
        }

        .document-section ul li {
            margin-bottom: 10px;
            position: relative;
            padding-right: 25px;
        }

        .document-section ul li::before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            right: 0;
            color: var(--secondary-color);
            font-size: 0.9rem;
        }

        /* تنسيق الجدول الخاص بالتوقيعات */
        .signature-table {
            width: 100%;
            margin-top: 40px;
            border-collapse: collapse;
            background-color: #f9fbfd;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .signature-table th {
            background: var(--primary-color);
            color: white;
            font-weight: 600;
            padding: 12px 10px;
            font-size: 1rem;
            text-align: center;
            border: none;
        }

        .signature-table td {
            padding: 14px 10px;
            border-bottom: 1px solid var(--accent-color);
            text-align: center;
            background-color: white;
        }

        .signature-table tr:last-child td {
            border-bottom: none;
        }

        .signature-table .status-badge {
            background-color: var(--secondary-color);
            color: white;
            padding: 5px 12px;
            border-radius: 50px;
            font-size: 0.85rem;
            display: inline-block;
            font-weight: 500;
        }

        .document-footer {
            margin-top: 40px;
            padding: 20px;
            background: var(--accent-color);
            border-radius: var(--border-radius);
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 15px;
            color: var(--primary-color);
            font-weight: 500;
            opacity: 0.9;
            flex-wrap: wrap;
            text-align: center;
        }

        .document-footer i {
            color: var(--secondary-color);
            font-size: 1.2rem;
        }

        .print-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 12px 30px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1rem;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            box-shadow: 0 4px 15px rgba(62, 103, 163, 0.3);
            margin: 20px auto 0;
            width: fit-content;
        }

        .print-btn:hover {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(3, 161, 128, 0.4);
        }

        .back-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
            background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
            color: white;
            padding: 14px 40px;
            border-radius: 50px;
            text-decoration: none;
            font-weight: 600;
            font-size: 1.1rem;
            transition: var(--transition);
            border: none;
            cursor: pointer;
            margin-top: 30px;
            box-shadow: 0 4px 15px rgba(62, 103, 163, 0.3);
        }

        .back-btn:hover {
            background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
            transform: scale(1.05);
            box-shadow: 0 8px 25px rgba(3, 161, 128, 0.4);
        }

        .back-btn i {
            font-size: 1.1rem;
        }

        @media (max-width: 768px) {
            .main-content {
                margin: 30px auto;
                padding: 0 15px;
            }

            .page-title {
                font-size: 2rem;
            }
            
            .legal-document {
                padding: 30px;
            }
            
            .document-header h2 {
                font-size: 1.6rem;
            }
            
            .document-section h3 {
                font-size: 1.2rem;
            }
            
            .document-body {
                font-size: 1rem;
            }
            
            .signature-table th, .signature-table td {
                font-size: 0.9rem;
                padding: 10px 5px;
            }
        }

        @media (max-width: 480px) {
            .main-content {
                margin: 20px auto;
                padding: 0 10px;
            }
            
            .page-title {
                font-size: 1.8rem;
            }
            
            .title-decoration {
                font-size: 1rem;
            }
            
            .legal-document {
                padding: 20px;
            }
            
            .document-header h2 {
                font-size: 1.4rem;
            }
            
            .document-footer {
                flex-direction: column;
                gap: 10px;
            }

            .back-btn {
                padding: 12px 30px;
                font-size: 1rem;
            }

            .signature-table {
                display: block;
                overflow-x: auto;
            }
        }