/*
Theme Name: Workflow Automation Theme
Theme URI: https://example.com/workflow-automation
Author: WordPress Professional Team
Author URI: https://example.com
Description: قالب ووردبرس احترافي لنظام أتمتة سير العمل المتكامل - يدعم تصميم المواقع، إدارة المحتوى، والسوشيال ميديا مع نظام تقارير شامل وأتمتة ذكية.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.4
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: workflow-automation
Domain Path: /languages
Tags: rtl-language-support, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready
*/

/* ===============================================
   Global Styles - RTL Support
   =============================================== */

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

body {
    font-family: 'Tajawal', 'Cairo', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    direction: rtl;
    text-align: right;
    background-color: #f5f7fa;
    color: #2c3e50;
    line-height: 1.6;
}

/* ===============================================
   Typography
   =============================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #1a202c;
}

h1 { font-size: 2.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.75rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; }

p {
    margin-bottom: 1rem;
}

a {
    color: #3490dc;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #2779bd;
}

/* ===============================================
   Layout
   =============================================== */

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

.wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* ===============================================
   Header
   =============================================== */

.site-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.site-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-logo {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
}

.site-logo:hover {
    color: #f0f0f0;
}

/* ===============================================
   Navigation
   =============================================== */

.main-navigation {
    display: flex;
    align-items: center;
}

.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    color: white;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.main-navigation a:hover {
    background-color: rgba(255,255,255,0.1);
}

/* ===============================================
   Dashboard Cards
   =============================================== */

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.dashboard-card h3 {
    color: #667eea;
    margin-bottom: 1rem;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 0.5rem;
}

.dashboard-card .stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: #2c3e50;
    margin: 1rem 0;
}

.dashboard-card .stat-label {
    color: #718096;
    font-size: 0.9rem;
}

/* ===============================================
   Tables
   =============================================== */

.data-table {
    width: 100%;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

.data-table table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.data-table th {
    padding: 1rem;
    text-align: right;
    font-weight: 600;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr:hover {
    background-color: #f7fafc;
}

/* ===============================================
   Status Badges
   =============================================== */

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-assigned { background-color: #e3f2fd; color: #1976d2; }
.status-in-progress { background-color: #fff3e0; color: #f57c00; }
.status-submitted { background-color: #f3e5f5; color: #7b1fa2; }
.status-under-review { background-color: #fce4ec; color: #c2185b; }
.status-approved { background-color: #e8f5e9; color: #388e3c; }
.status-rejected { background-color: #ffebee; color: #d32f2f; }
.status-needs-revision { background-color: #fff9c4; color: #f57f17; }

/* ===============================================
   Buttons
   =============================================== */

.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 5px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.btn-success {
    background-color: #48bb78;
    color: white;
}

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

.btn-danger {
    background-color: #f56565;
    color: white;
}

.btn-danger:hover {
    background-color: #e53e3e;
}

.btn-secondary {
    background-color: #718096;
    color: white;
}

.btn-secondary:hover {
    background-color: #4a5568;
}

/* ===============================================
   Forms
   =============================================== */

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2d3748;
}

.form-control {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e2e8f0;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===============================================
   Alerts
   =============================================== */

.alert {
    padding: 1rem 1.5rem;
    border-radius: 5px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #c6f6d5;
    color: #22543d;
    border-right: 4px solid #38a169;
}

.alert-danger {
    background-color: #fed7d7;
    color: #742a2a;
    border-right: 4px solid #e53e3e;
}

.alert-warning {
    background-color: #feebc8;
    color: #744210;
    border-right: 4px solid #dd6b20;
}

.alert-info {
    background-color: #bee3f8;
    color: #2c5282;
    border-right: 4px solid #3182ce;
}

/* ===============================================
   Footer
   =============================================== */

.site-footer {
    background-color: #2d3748;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

.site-footer .container {
    text-align: center;
}

.site-footer p {
    margin: 0;
    color: #cbd5e0;
}

/* ===============================================
   Responsive Design
   =============================================== */

@media (max-width: 768px) {
    .site-header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .main-navigation ul {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .data-table {
        overflow-x: auto;
    }
}

/* ===============================================
   Utility Classes
   =============================================== */

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-grid { display: grid; }
