/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* الهيدر */
.header {
    background: white;
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 2.5em;
    color: #667eea;
}

.logo h1 {
    font-size: 1.8em;
    color: #333;
}

.subtitle {
    color: #666;
    font-size: 1.1em;
}

/* قسم الترحيب */
.welcome-section {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    display: flex;
    gap: 40px;
    align-items: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.welcome-content {
    flex: 1;
}

.welcome-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2em;
}

.welcome-content p {
    color: #666;
    margin-bottom: 30px;
    font-size: 1.1em;
}

.features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.feature {
    text-align: center;
    padding: 20px;
    border-radius: 10px;
    background: #f8f9fa;
}

.feature i {
    font-size: 2em;
    color: #667eea;
    margin-bottom: 15px;
}

.feature h3 {
    color: #333;
    margin-bottom: 10px;
}

.feature p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.welcome-image {
    flex: 1;
}

.welcome-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* الخطوات */
.steps {
    background: white;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.steps h2 {
    color: #333;
    margin-bottom: 30px;
    text-align: center;
    font-size: 2em;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.step {
    text-align: center;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.step-number {
    width: 50px;
    height: 50px;
    background: #667eea;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 15px;
}

.step h3 {
    color: #333;
    margin-bottom: 10px;
}

.step p {
    color: #666;
    font-size: 0.9em;
}

/* الأزرار */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #6c757d;
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-secondary:hover {
    background: #5a6268;
}

.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #667eea;
    text-decoration: none;
    font-weight: bold;
}

/* شريط التقدم */
.progress-bar {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.progress-step {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e9ecef;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2em;
}

.progress-step.active {
    background: #667eea;
    color: white;
}

/* النماذج */
.registration-form {
    background: white;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.registration-form h2 {
    color: #333;
    margin-bottom: 30px;
    font-size: 1.8em;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group input[type="text"],
.form-group input[type="tel"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Tajawal', sans-serif;
    transition: border 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #667eea;
    outline: none;
}

.file-upload input[type="file"] {
    padding: 10px;
    border: 2px dashed #e9ecef;
    border-radius: 8px;
    width: 100%;
    cursor: pointer;
}

.file-preview {
    margin-top: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 5px;
    display: none;
}

/* التبويبات */
.form-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1em;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #667eea;
    color: white;
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.5em;
}

.note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    color: #856404;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* الأسئلة */
.questions-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
}

.questions-section h4 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.3em;
}

.question-group {
    margin-bottom: 15px;
    padding: 15px;
    background: white;
    border-radius: 8px;
}

.question-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 500;
}

.radio-group {
    display: flex;
    gap: 20px;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio-group input[type="radio"] {
    margin: 0;
}

.radio-label {
    color: #666;
}

/* إجراءات النموذج */
.form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    gap: 15px;
}

/* صفحة النجاح */
.success-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    justify-content: center;
}

.success-card {
    background: white;
    border-radius: 15px;
    padding: 50px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.success-icon {
    font-size: 5em;
    color: #28a745;
    margin-bottom: 30px;
}

.success-card h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2em;
}

.success-message p {
    color: #666;
    font-size: 1.2em;
    margin-bottom: 40px;
}

.success-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
    text-align: right;
}

.detail-item i {
    font-size: 2em;
    color: #667eea;
}

.detail-item h3 {
    color: #333;
    margin-bottom: 5px;
    font-size: 1.1em;
}

.detail-item p {
    color: #666;
    font-size: 0.9em;
    margin: 0;
}

.success-actions {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

.contact-info {
    margin-top: 20px;
}

.contact-info p {
    margin: 5px 0;
    color: #666;
}

/* لوحة التحكم */
.dashboard-container {
    display: flex;
    min-height: 100vh;
    background: #f8f9fa;
}

.sidebar {
    width: 250px;
    background: white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    padding: 20px;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.sidebar-header i {
    font-size: 1.8em;
    color: #667eea;
}

.sidebar-header h2 {
    color: #333;
    font-size: 1.3em;
}

.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    color: #666;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar-menu a:hover,
.sidebar-menu a.active {
    background: #667eea;
    color: white;
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 2px solid #f8f9fa;
}

.sidebar-footer p {
    color: #666;
}

.sidebar-footer strong {
    color: #333;
}

.main-content {
    flex: 1;
    padding: 20px;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    width: 300px;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-box input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-family: 'Tajawal', sans-serif;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #333;
    font-weight: 500;
}

.user-info i {
    font-size: 1.5em;
    color: #667eea;
}

.content-header {
    margin-bottom: 30px;
}

.content-header h1 {
    color: #333;
    margin-bottom: 20px;
    font-size: 1.8em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.stat-card i {
    font-size: 2em;
}

.stat-card h3 {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-card p {
    color: #333;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
}

.text-warning { color: #ffc107; }
.text-success { color: #28a745; }
.text-danger { color: #dc3545; }

.companies-table {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.companies-table table {
    width: 100%;
    border-collapse: collapse;
}

.companies-table th,
.companies-table td {
    padding: 15px;
    text-align: right;
    border-bottom: 1px solid #e9ecef;
}

.companies-table th {
    background: #f8f9fa;
    color: #333;
    font-weight: 600;
}

.companies-table tr:hover {
    background: #f8f9fa;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 10px;
}

.action-buttons a {
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    color: white;
    text-decoration: none;
}

.btn-view { background: #17a2b8; }
.btn-approve { background: #28a745; }
.btn-reject { background: #dc3545; }
.btn-download { background: #6c757d; }

/* تفاصيل الشركة */
.company-details {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f8f9fa;
}

.company-info h1 {
    color: #333;
    margin-bottom: 15px;
    font-size: 2em;
}

.company-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
}

.company-actions {
    display: flex;
    gap: 10px;
}

.details-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.document-card {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

.document-card.large {
    grid-column: span 2;
}

.document-icon {
    font-size: 2.5em;
    color: #667eea;
    margin-bottom: 15px;
}

.document-card h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1.1em;
}

/* صفحة الدخول */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.login-box {
    background: white;
    border-radius: 15px;
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.login-header {
    text-align: center;
    margin-bottom: 30px;
}

.login-header i {
    font-size: 3em;
    color: #667eea;
    margin-bottom: 15px;
}

.login-header h1 {
    color: #333;
    font-size: 1.8em;
}

.login-form .form-group {
    margin-bottom: 20px;
}

.login-footer {
    margin-top: 20px;
    text-align: center;
}

.login-footer a {
    color: #667eea;
    text-decoration: none;
}

.alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.alert.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* الفوتر */
footer {
    text-align: center;
    padding: 30px 0;
    color: white;
    margin-top: 30px;
}

footer p {
    margin: 5px 0;
}

/* الأساسيات */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    color: #333;
    line-height: 1.6;
    direction: rtl;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

/* الهيدر الرئيسي */
.main-header {
    background: linear-gradient(135deg, #2c3e50 0%, #4a6491 100%);
    color: white;
    padding: 20px 0;
    border-radius: 0 0 20px 20px;
    margin-bottom: 30px;
}

.logo-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo i {
    font-size: 3em;
    color: #4fc3f7;
}

.logo h1 {
    font-size: 2em;
    margin-bottom: 5px;
}

.logo p {
    color: #b0bec5;
    font-size: 0.9em;
}

.contact-info p {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
    font-size: 0.9em;
}

/* قسم البطل */
.hero {
    display: flex;
    gap: 40px;
    align-items: center;
    margin-bottom: 50px;
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.hero-content {
    flex: 1;
}

.hero h2 {
    font-size: 2.2em;
    color: #2c3e50;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero p {
    color: #666;
    font-size: 1.1em;
    margin-bottom: 30px;
}

.hero-features {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8f9fa;
    padding: 10px 20px;
    border-radius: 10px;
}

.feature i {
    color: #4fc3f7;
}

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    padding: 15px 30px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.admin-access {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    padding: 10px 20px;
    border: 2px solid #ddd;
    border-radius: 8px;
    margin-top: 10px;
}

.hero-image {
    flex: 1;
}

.hero-image img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* قسم الخطوات */
.steps-section {
    margin-bottom: 50px;
}

.steps-section h2 {
    text-align: center;
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 40px;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.step {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.step:hover {
    transform: translateY(-5px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 auto 20px;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.step-content p {
    color: #666;
    font-size: 0.9em;
}

/* المتطلبات */
.requirements {
    margin-bottom: 50px;
}

.requirements h2 {
    text-align: center;
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 40px;
}

.requirements-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.requirement-card {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.requirement-card h3 {
    color: #2c3e50;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-card ul {
    list-style: none;
    padding: 0;
}

.requirement-card li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    gap: 10px;
}

.requirement-card li:before {
    content: "✓";
    color: #4CAF50;
    font-weight: bold;
}

/* الفوتر */
.main-footer {
    background: #2c3e50;
    color: white;
    padding: 40px 0;
    border-radius: 20px 20px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section p {
    margin-bottom: 10px;
    color: #b0bec5;
    display: flex;
    align-items: center;
    gap: 10px;
}

.copyright {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #34495e;
    color: #b0bec5;
    font-size: 0.9em;
}

/* صفحة التسجيل */
.form-header {
    margin-bottom: 30px;
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #666;
    text-decoration: none;
    margin-bottom: 20px;
}

.form-title {
    text-align: center;
}

.form-title h1 {
    color: #2c3e50;
    margin-bottom: 10px;
}

.form-title p {
    color: #666;
}

/* شريط التقدم */
.progress-container {
    margin: 40px 0;
}

.progress-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.progress-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.progress-step.completed .step-circle {
    background: #4CAF50;
    color: white;
}

.progress-step.active .step-circle {
    background: #2196F3;
    color: white;
    transform: scale(1.1);
}

.step-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    transition: all 0.3s;
}

.step-label {
    font-size: 0.9em;
    color: #666;
}

.progress-line {
    width: 100px;
    height: 2px;
    background: #ddd;
}

/* نماذج التسجيل */
.registration-container {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.form-section {
    display: none;
}

.form-section.active {
    display: block;
}

.registration-form h2 {
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-group input {
    width: 100%;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Tajawal', sans-serif;
    transition: border 0.3s;
}

.form-group input:focus {
    border-color: #2196F3;
    outline: none;
}

.form-hint {
    font-size: 0.8em;
    color: #666;
    margin-top: 5px;
}

/* ملخص الشركة */
.company-summary {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
}

.company-summary h3 {
    margin-bottom: 15px;
    color: #2c3e50;
}

.summary-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.btn-edit {
    background: #ff9800;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* تحميل المستندات */
.document-tab {
    display: none;
}

.document-tab.active {
    display: block;
}

.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #eee;
}

.tab-header h3 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tab-indicator {
    background: #2196F3;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
}

.note {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.note.warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.document-upload {
    margin-bottom: 25px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 10px;
}

.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.upload-header label {
    color: #2c3e50;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
}

.file-types {
    font-size: 0.8em;
    color: #666;
}

.required-star {
    color: #f44336;
}

.upload-body input[type="file"] {
    width: 100%;
    padding: 15px;
    border: 2px dashed #ddd;
    border-radius: 8px;
    cursor: pointer;
}

.file-preview {
    margin-top: 10px;
    display: none;
}

.file-preview.show {
    display: block;
}

/* تنقل النماذج */
.form-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.btn-primary, .btn-secondary {
    padding: 15px 30px;
    border-radius: 10px;
    border: none;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1em;
    transition: all 0.3s;
}

.btn-primary {
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.form-note {
    background: #e8f4fd;
    padding: 20px;
    border-radius: 10px;
    margin-top: 30px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* صفحة النجاح */
.success-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 20px;
}

.success-card {
    background: white;
    padding: 50px;
    border-radius: 25px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    max-width: 800px;
    width: 100%;
    text-align: center;
}

.success-icon {
    font-size: 80px;
    color: #4CAF50;
    margin-bottom: 30px;
}

.success-card h1 {
    color: #2c3e50;
    margin-bottom: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.company-name {
    color: #2196F3;
}

.reference-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.ref-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    text-align: right;
    display: flex;
    align-items: center;
    gap: 20px;
}

.ref-card i {
    font-size: 2em;
    color: #2196F3;
}

.ref-number {
    font-size: 1.8em;
    font-weight: bold;
    color: #2c3e50;
}

.steps-timeline {
    margin: 30px 0;
    position: relative;
}

.steps-timeline:before {
    content: '';
    position: absolute;
    right: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #ddd;
    transform: translateX(50%);
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    position: relative;
}

.step-number {
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #2196F3;
    color: #2196F3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    z-index: 1;
}

.step-content {
    text-align: right;
    flex: 1;
}

.contact-support {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    margin: 30px 0;
    text-align: right;
}

.contact-methods p {
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* صفحة الدخول */
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
}

.login-wrapper {
    max-width: 500px;
    width: 100%;
}

.login-header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-bottom: 15px;
}

.login-logo i {
    font-size: 3em;
}

.login-logo h1 {
    font-size: 2em;
}

.login-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

.alert {
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.login-form .form-group {
    margin-bottom: 25px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.forgot-password {
    color: #2196F3;
    text-decoration: none;
}

.btn-login {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(33, 150, 243, 0.3);
}

.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.login-info {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 25px;
    border-radius: 15px;
    margin-top: 30px;
    color: white;
}

.info-content {
    margin-top: 15px;
}

.info-content p {
    margin: 10px 0;
}

.note {
    font-size: 0.9em;
    opacity: 0.9;
}

/* لوحة التحكم */
.dashboard-body {
    background: #f5f7fa;
}

.dashboard-container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 280px;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 30px 20px;
    border-bottom: 1px solid #eee;
}

.admin-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.admin-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8em;
    color: white;
}

.admin-details h3 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.admin-role {
    font-size: 0.9em;
    color: #666;
}

.sidebar-nav ul {
    list-style: none;
    padding: 0;
    flex: 1;
}

.sidebar-nav li {
    margin-bottom: 5px;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 25px;
    color: #666;
    text-decoration: none;
    transition: all 0.3s;
}

.sidebar-nav a:hover,
.sidebar-nav li.active a {
    background: #f8f9fa;
    color: #2196F3;
    border-right: 4px solid #2196F3;
}

.badge {
    background: #2196F3;
    color: white;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.8em;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    font-size: 0.9em;
    color: #666;
}

.system-info p {
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.main-content {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.search-container {
    position: relative;
    width: 300px;
}

.search-container i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-container input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Tajawal', sans-serif;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.btn-refresh {
    background: #f8f9fa;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-time {
    color: #666;
    font-weight: 500;
}

/* بطاقات الإحصائيات */
.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 20px;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2em;
    color: white;
}

.stat-icon.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.stat-icon.pending {
    background: linear-gradient(135deg, #ff9800 0%, #ff5722 100%);
}

.stat-icon.approved {
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
}

.stat-icon.rejected {
    background: linear-gradient(135deg, #f44336 0%, #c62828 100%);
}

.stat-info h3 {
    color: #666;
    font-size: 0.9em;
    margin-bottom: 5px;
}

.stat-number {
    font-size: 2em;
    font-weight: bold;
    color: #2c3e50;
}

/* جدول الشركات */
.content-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px;
    border-bottom: 1px solid #eee;
}

.card-header h2 {
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-export {
    background: #2196F3;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.table-container {
    overflow-x: auto;
}

.companies-table {
    width: 100%;
    border-collapse: collapse;
}

.companies-table th {
    background: #f8f9fa;
    padding: 15px;
    color: #2c3e50;
    font-weight: 600;
    text-align: right;
    border-bottom: 2px solid #eee;
}

.companies-table td {
    padding: 15px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.companies-table tr:hover {
    background: #f8f9fa;
}

.folder-name {
    background: #e3f2fd;
    color: #1976D2;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.9em;
}

.no-folder {
    color: #666;
    font-style: italic;
}

.status-badge {
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8em;
    font-weight: 600;
}

.status-pending {
    background: #fff3cd;
    color: #856404;
}

.status-approved {
    background: #d4edda;
    color: #155724;
}

.status-rejected {
    background: #f8d7da;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s;
}

.btn-view {
    background: #17a2b8;
    color: white;
}

.btn-approve {
    background: #28a745;
    color: white;
}

.btn-reject {
    background: #dc3545;
    color: white;
}

.btn-folder {
    background: #6c757d;
    color: white;
}

.btn-action:hover {
    transform: scale(1.1);
}

.no-data {
    text-align: center;
    padding: 50px;
    color: #666;
}

.table-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* قائمة النشاطات */
.activity-list {
    padding: 20px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    border-bottom: 1px solid #eee;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2196F3;
}

.activity-content {
    flex: 1;
}

.activity-time {
    font-size: 0.8em;
    color: #666;
}

/* صفحة تفاصيل الشركة */
.company-details-page {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.page-header {
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    text-decoration: none;
}

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.info-card {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 15px;
    display: flex;
    gap: 20px;
}

.info-icon {
    width: 60px;
    height: 60px;
    background: #2196F3;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5em;
    color: white;
}

.info-content h3 {
    color: #2c3e50;
    margin-bottom: 15px;
}

.info-details p {
    margin-bottom: 10px;
    color: #666;
}

.status-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.status-select {
    padding: 8px 15px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-family: 'Tajawal', sans-serif;
}

.btn-update {
    background: #4CAF50;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* المستندات */
.documents-section {
    margin: 40px 0;
}

.section-header {
    margin-bottom: 30px;
}

.documents-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 25px;
    background: #f8f9fa;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #2196F3;
    color: white;
}

.documents-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.document-card {
    background: white;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: transform 0.3s;
}

.document-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.doc-icon {
    font-size: 2em;
    color: #2196F3;
}

.doc-info {
    flex: 1;
}

.doc-info h4 {
    color: #2c3e50;
    margin-bottom: 5px;
}

.doc-filename {
    font-size: 0.8em;
    color: #666;
    word-break: break-all;
}

.doc-actions {
    display: flex;
    gap: 8px;
}

.btn-view-doc, .btn-download-doc {
    padding: 6px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-view-doc {
    background: #e3f2fd;
    color: #1976D2;
}

.btn-download-doc {
    background: #f3e5f5;
    color: #7b1fa2;
}

/* الإجراءات السريعة */
.quick-actions {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid #eee;
}

.quick-actions h3 {
    margin-bottom: 20px;
    color: #2c3e50;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quick-actions .action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.quick-actions .btn-action {
    padding: 12px 25px;
    width: auto;
    height: auto;
    border-radius: 10px;
    text-decoration: none;
}

.btn-success {
    background: #4CAF50;
    color: white;
}

.btn-danger {
    background: #f44336;
    color: white;
}

/* الطباعة */
.print-receipt {
    display: none;
}

@media print {
    body * {
        visibility: hidden;
    }
    .print-receipt, .print-receipt * {
        visibility: visible;
    }
    .print-receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }
}

/* الاستجابة */
@media (max-width: 1200px) {
    .hero {
        flex-direction: column;
    }
    
    .hero-content, .hero-image {
        width: 100%;
    }
}

@media (max-width: 992px) {
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .logo-section {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .top-bar {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .search-container {
        width: 100%;
    }
    
    .form-navigation {
        flex-direction: column;
        gap: 15px;
    }
    
    .btn-primary, .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .info-cards {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero, .registration-container, .success-card {
        padding: 20px;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .requirements-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-cards {
        grid-template-columns: 1fr;
    }
    
    .card-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .btn-export {
        width: 100%;
        justify-content: center;
    }
}

/* الوسائط المتعددة */
@media (max-width: 992px) {
    .welcome-section {
        flex-direction: column;
    }
    
    .steps-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .success-details {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .form-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        min-width: 100%;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .success-details {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .dashboard-container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .stats {
        grid-template-columns: 1fr;
    }
    
    .companies-table {
        overflow-x: auto;
    }
    
    .documents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .registration-form,
    .welcome-section,
    .steps,
    .header {
        padding: 20px;
    }
    
    .documents-grid {
        grid-template-columns: 1fr;
    }
    
    .company-meta {
        flex-direction: column;
        gap: 10px;
    }
    
    .company-actions {
        flex-direction: column;
    }
}