/*
Theme Name: Arabic Journalist Theme
Theme URI: 
Author: Custom Theme Developer
Author URI: 
Description: A custom WordPress theme for a private Arabic-language website dedicated to journalists
Version: 1.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: arabic-journalist
Tags: rtl-language-support, arabic, journalist, custom-forms, private-site, bootstrap

This theme is designed specifically for Arabic journalists with RTL support and modern Bootstrap dashboard.
*/

/* Global Styles */
body {
    direction: rtl;
    text-align: right;
    font-family: 'Tajawal', sans-serif;
    background-color: #f8f9fa;
    color: #333;
}

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

/* Bootstrap RTL Fixes */
.me-auto {
    margin-left: auto !important;
    margin-right: 0 !important;
}

.me-1, .me-2, .me-3, .me-4, .me-5 {
    margin-left: 0.25rem !important;
    margin-right: 0 !important;
}

.me-2 {
    margin-left: 0.5rem !important;
}

.me-3 {
    margin-left: 1rem !important;
}

.me-4 {
    margin-left: 1.5rem !important;
}

.ps-3 {
    padding-right: 1rem !important;
    padding-left: 0 !important;
}

/* Login Page Styles */
html, body {
    height: 100%;
}

.login-container {
    height: 100vh;
}

.login-hero {
    background-color: #034a3b;
    background-image: linear-gradient(135deg, #034a3b 0%, #026c58 100%);
}


/* bootstrap.min.css | https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css?ver=5.2.3 */

.bg-primary {
    background-color: rgb(44, 145, 98) !important;
  }
  
  .border-primary {
    border-color: rgb(44, 145, 98) !important;
  }
  


/* bootstrap.min.css | https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css?ver=5.2.3 */

a {
    color: #2c9162;
}
  
  .btn:hover {
    background-color: #2c9162  !important;
    border-color: #2c9162  !important;
  }
  
  .btn-outline-primary {

    --bs-btn-color: #2c9162 !important;
    --bs-btn-border-color: #2c9162 !important;
    --bs-btn-hover-bg: #2c9162 !important;
    --bs-btn-hover-border-color: #2c9162 !important;
    --bs-btn-active-bg: #2c9162 !important;
  }
  

/* Login Form */
.login-form-container {
    max-width: 500px;
    margin: 100px auto;
    padding: 30px;
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.login-form-container h1 {
    margin-bottom: 20px;
    text-align: center;
    color: #14213d;
}

.login-form input[type="text"],
.login-form input[type="password"],
.login-form input[type="email"] {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Tajawal', sans-serif;
}

.login-form input[type="submit"] {
    width: 100%;
    padding: 12px;
    background-color: #14213d;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    font-size: 16px;
}

.login-form input[type="submit"]:hover {
    background-color: #233a66;
}

/* Dashboard Layout Styles */
.dashboard-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.dashboard-layout {
    display: flex;
    height: calc(100vh - 56px);
    margin-top: 56px; /* Height of navbar */
}

.sidebar {
    width: 250px;
    height: 100%;
    position: fixed;
    z-index: 1;
    right: 0;
    background-color: #f8f9fa;
    overflow-y: auto;
    transition: all 0.3s;
    box-shadow: -2px 0 5px rgba(0,0,0,0.05);
}

.sidebar-heading {
    font-weight: bold;
}

.sidebar .list-group-item {
    border: none;
    border-radius: 0;
    padding-right: 20px;
}

.sidebar .list-group-item.active {
    background-color: rgba(13, 110, 253, 0.1);
    color: #034a3b;
    border-right: 3px solid #034a3b;
}

.sidebar .list-group-item:hover:not(.active) {
    background-color: rgba(0,0,0,0.03);
}

.sidebar .list-group-item i {
    margin-left: 10px;
}

.content-wrapper {
    margin-right: 250px;
    width: calc(100% - 250px);
    min-height: 100%;
    overflow-y: auto;
    transition: all 0.3s;
    padding-top: 20px;
}

/* Dashboard Styles */
.dashboard-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px 0;
}

.dashboard-card {
    flex: 1 0 300px;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.dashboard-card:hover {
    transform: translateY(-5px);
}

.dashboard-card-header {
    background-color: #14213d;
    color: white;
    padding: 15px;
    font-weight: bold;
    font-size: 18px;
}

.dashboard-card-body {
    padding: 20px;
}

.dashboard-btn {
    display: inline-block;
    padding: 10px 20px;
    background-color: #14213d;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    margin-top: 15px;
}

.dashboard-btn:hover {
    background-color: #233a66;
}

/* Feature Icons */
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
}

.feature-icon.rounded-circle {
    border-radius: 50% !important;
}

.feature-icon.rounded {
    border-radius: 0.5rem !important;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
}

/* Form Styles */
.news-form {
    background-color: #fff;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: 'Tajawal', sans-serif;
}

select.form-control {
    height: 45px;
}

.btn-primary {
    padding: 12px 25px;
    background-color: #174e34;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Tajawal', sans-serif;
    font-weight: bold;
    font-size: 16px;
}


.btn-primary:hover {
    /* background-color: #233a66; */
    background-color: #206a48;
  }
  

/* Articles List */
.articles-list {
    margin-top: 30px;
}

.article-item {
    background-color: #fff;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.article-title {
    margin-top: 0;
    color: #14213d;
}

.article-meta {
    color: #666;
    font-size: 14px;
    margin-bottom: 15px;
}

/* Loading Animation */
.loading-container {
    text-align: center;
    padding: 50px 0;
    display: none;
}

.loading-container.visible {
    display: block;
}

.loading-spinner {
    border: 5px solid #f3f3f3;
    border-top: 5px solid #14213d;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 2s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Loading Animation */
#loading-container {
    min-height: 200px;
}

/* Custom card hover effect */
.card {
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover:not(.bg-primary) {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

/* Admin Settings Page */
.wrap {
    margin: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.wrap h1 {
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dashboard-card {
        flex: 0 0 100%;
    }
}

/* Responsive Sidebar */
@media (max-width: 992px) {
    .sidebar {
        margin-right: -250px;
    }
    .content-wrapper {
        margin-right: 0;
        width: 100%;
    }
    .sidebar.active {
        margin-right: 0;
    }
    .content-wrapper.active {
        margin-right: 250px;
        width: calc(100% - 250px);
    }
}