   :root {
            --primary-color: #3498db;
            --success-color: #2ecc71;
            --danger-color: #e74c3c;
            --warning-color: #f39c12;
            --info-color: #17a2b8;
            --dark-color: #2c3e50;
            --light-color: #f8f9fa;
            --border-color: #dee2e6;
            --shadow: 0 4px 6px rgba(0,0,0,0.1);
        }

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

        body {
            font-family: 'Cairo', sans-serif;
            background-color: #f5f5f5;
            color: #333;
            line-height: 1.6;
            direction: rtl;
        }

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

        /* شريط التنقل العلوي */
        .navbar {
            background-color: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        @media (min-width: 768px) {
            .navbar {
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
            }
        }

        .page-title {
            font-size: 1.8rem;
            color: var(--dark-color);
            font-weight: 700;
            text-align: center;
        }

        .user-actions {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
            justify-content: center;
        }

        /* زر إضافة جديد */
        .btn-add {
            background-color: var(--success-color);
            color: white;
            border: none;
            padding: 12px 25px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 3px 5px rgba(46, 204, 113, 0.3);
        }

        .btn-add:hover {
            background-color: #27ae60;
            transform: translateY(-2px);
        }

        .btn-logout {
            background-color: var(--danger-color);
            color: white;
            border: none;
            padding: 12px 20px;
            border-radius: 8px;
            font-weight: 600;
            font-size: 1rem;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 8px;
        }

        /* قسم البحث */
        .search-section {
            background-color: white;
            padding: 20px;
            border-radius: 10px;
            box-shadow: var(--shadow);
            margin-bottom: 20px;
        }

        .search-container {
            position: relative;
            max-width: 600px;
            margin: 0 auto;
        }

        .search-input {
            width: 100%;
            padding: 15px 20px 15px 50px;
            border: 2px solid var(--border-color);
            border-radius: 50px;
            font-size: 1.1rem;
            font-family: 'Cairo', sans-serif;
            transition: all 0.3s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--primary-color);
            box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
        }

        .search-icon {
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            color: #777;
            font-size: 1.2rem;
        }

        .search-info {
            text-align: center;
            margin-top: 10px;
            color: #666;
            font-size: 0.9rem;
        }

        /* عرض العقود */
        .contracts-list {
            display: grid;
            gap: 15px;
        }

        @media (min-width: 768px) {
            .contracts-list {
                grid-template-columns: repeat(auto-fill, minmax(500px, 1fr));
            }
        }

        .contract-card {
            background-color: white;
            border-radius: 12px;
            overflow: hidden;
            box-shadow: var(--shadow);
            transition: all 0.3s ease;
            border: 1px solid var(--border-color);
        }

        .contract-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 8px 15px rgba(0,0,0,0.15);
        }

        .contract-header {
            background: linear-gradient(135deg, var(--primary-color), #2980b9);
            color: white;
            padding: 15px;
            display: flex;
            justify-content: space-between;
            align-items: center;
        }

        .contract-id {
            font-weight: 700;
            font-size: 1.2rem;
        }

        .contract-status {
            background-color: rgba(255,255,255,0.2);
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
        }

        .contract-status.active {
            background-color: rgba(46, 204, 113, 0.8);
        }

        .contract-status.expired {
            background-color: rgba(231, 76, 60, 0.8);
        }

        .contract-content {
            padding: 20px;
        }

        .contract-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid #f0f0f0;
        }

        .contract-row:last-child {
            border-bottom: none;
        }

        .row-label {
            font-weight: 600;
            color: #555;
            min-width: 140px;
        }

        .row-value {
            color: #333;
            text-align: left;
            flex: 1;
            word-break: break-word;
        }

        .contract-actions {
            padding: 15px 20px;
            background-color: #f8f9fa;
            border-top: 1px solid var(--border-color);
            display: flex;
            flex-wrap: wrap;
            gap: 10px;
            justify-content: center;
        }

        @media (min-width: 576px) {
            .contract-actions {
                justify-content: flex-start;
            }
        }

        .btn {
            padding: 10px 18px;
            border: none;
            border-radius: 6px;
            font-weight: 600;
            font-size: 0.9rem;
            cursor: pointer;
            text-decoration: none;
            display: inline-flex;
            align-items: center;
            gap: 6px;
            transition: all 0.2s ease;
        }

        .btn-primary { background-color: var(--primary-color); color: white; }
        .btn-success { background-color: var(--success-color); color: white; }
        .btn-danger { background-color: var(--danger-color); color: white; }
        .btn-warning { background-color: var(--warning-color); color: white; }
        .btn-info { background-color: var(--info-color); color: white; }

        .btn:hover {
            opacity: 0.9;
            transform: translateY(-1px);
        }

        /* الترقيم (Pagination) */
        .pagination-container {
            margin: 30px 0;
            text-align: center;
        }

        .pagination {
            display: inline-flex;
            flex-wrap: wrap;
            gap: 8px;
            justify-content: center;
            list-style: none;
        }

        .page-item {
            margin: 0;
        }

        .page-link {
            padding: 10px 18px;
            background-color: white;
            border: 1px solid var(--border-color);
            color: var(--dark-color);
            text-decoration: none;
            border-radius: 6px;
            font-weight: 600;
            transition: all 0.2s ease;
            display: block;
            min-width: 45px;
            text-align: center;
        }

        .page-link:hover {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .page-item.active .page-link {
            background-color: var(--primary-color);
            color: white;
            border-color: var(--primary-color);
        }

        .page-item.disabled .page-link {
            color: #aaa;
            cursor: not-allowed;
            background-color: #f8f9fa;
        }

        /* الرسائل التنبيهية */
        .alert {
            padding: 15px;
            border-radius: 8px;
            margin-bottom: 20px;
            animation: slideIn 0.3s ease;
        }

        @keyframes slideIn {
            from {
                opacity: 0;
                transform: translateY(-10px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .alert-success {
            background-color: #d4edda;
            color: #155724;
            border: 1px solid #c3e6cb;
        }

        .alert-danger {
            background-color: #f8d7da;
            color: #721c24;
            border: 1px solid #f5c6cb;
        }

        /* حالة عدم وجود عقود */
        .no-contracts {
            text-align: center;
            padding: 50px 20px;
            color: #666;
            background-color: white;
            border-radius: 10px;
            box-shadow: var(--shadow);
        }

        .no-contracts i {
            font-size: 4rem;
            color: #ddd;
            margin-bottom: 20px;
        }

        .no-contracts h3 {
            font-size: 1.5rem;
            margin-bottom: 10px;
            color: #555;
        }

        /* المودال (نافذة التأكيد) */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from { opacity: 0; }
            to { opacity: 1; }
        }

        .modal-content {
            background-color: white;
            margin: 10% auto;
            padding: 25px;
            border-radius: 12px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 10px 25px rgba(0,0,0,0.2);
            animation: slideUp 0.3s ease;
        }

        @keyframes slideUp {
            from {
                opacity: 0;
                transform: translateY(20px);
            }
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .modal-title {
            font-size: 1.4rem;
            color: var(--danger-color);
            margin-bottom: 15px;
            text-align: center;
        }

        .modal-text {
            text-align: center;
            margin-bottom: 25px;
            color: #555;
            line-height: 1.5;
        }

        .modal-actions {
            display: flex;
            gap: 15px;
            justify-content: center;
        }

        /* معلومات الترقيم */
        .pagination-info {
            text-align: center;
            margin-top: 15px;
            color: #666;
            font-size: 0.95rem;
        }

        /* تحسينات للجوال */
        @media (max-width: 576px) {
            .contract-row {
                flex-direction: column;
                gap: 5px;
            }
            
            .row-label, .row-value {
                width: 100%;
                text-align: right;
            }
            
            .contract-actions {
                justify-content: center;
            }
            
            .btn {
                padding: 8px 12px;
                font-size: 0.85rem;
            }
            
            .modal-content {
                margin: 20% auto;
                width: 95%;
            }
        }





.btn_all {
    background-color:#ccc52e;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 5px rgba(46, 204, 113, 0.3);
}


