/*
Theme Name: Office Workflow Frontend Styles
Description: Custom styles for Office Workflow frontend UI
*/

.owp-frontend-wrapper {
    background: #fff;
    padding: 24px 18px;
    border-radius: 10px;
    box-shadow: 0 1px 8px rgba(0,0,0,0.06);
    margin: 30px auto;
    max-width: 900px;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
    direction: rtl;
}
.owp-frontend-wrapper h1, .owp-frontend-wrapper h2, .owp-frontend-wrapper h3 {
    color: #283593;
    font-weight: 700;
    margin-bottom: 18px;
}
.owp-frontend-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.owp-frontend-table th, .owp-frontend-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #e0e0e0;
    text-align: right;
}
.owp-frontend-table th {
    background: #e8eaf6;
    color: #222;
}
.owp-frontend-btn {
    background: #3949ab;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    font-size: 15px;
    cursor: pointer;
    transition: background 0.2s;
    margin: 4px 0;
}
.owp-frontend-btn:hover {
    background: #1a237e;
}
.owp-status-badge {
    display: inline-block;
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: #43a047;
    margin-right: 6px;
}
.owp-status-badge.status-pending { background: #ffa000; }
.owp-status-badge.status-late { background: #e53935; }
.owp-status-badge.status-completed { background: #43a047; }
.owp-status-badge.status-inprogress { background: #3949ab; }
.owp-frontend-form input, .owp-frontend-form select, .owp-frontend-form textarea {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #c5cae9;
    border-radius: 5px;
    margin-bottom: 14px;
    font-size: 15px;
    background: #f5f6fa;
}
.owp-frontend-form label {
    font-weight: 600;
    color: #222;
    margin-bottom: 6px;
    display: block;
}
.owp-frontend-form .form-group {
    margin-bottom: 18px;
}
.owp-frontend-alert {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
    padding: 10px 16px;
    border-radius: 6px;
    margin-bottom: 18px;
    font-size: 15px;
}
.owp-frontend-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.owp-chat-msg {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    direction: rtl;
}
.owp-chat-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    margin-left: 10px;
    border: 2px solid #e0e0e0;
    background: #fff;
}
.owp-chat-msg-content {
    background: #f5f6fa;
    border-radius: 12px;
    padding: 8px 14px 8px 8px;
    min-width: 120px;
    max-width: 80%;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.owp-chat-msg-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 2px;
}
.owp-chat-msg-name {
    font-weight: bold;
    color: #3949ab;
}
.owp-chat-msg-time {
    color: #888;
    font-size: 12px;
    margin-right: 8px;
}
.owp-chat-msg-text {
    font-size: 15px;
    color: #222;
    word-break: break-word;
}
.owp-chat-admin .owp-chat-msg-content {
    background: #e8eaf6;
    color: #1a237e;
}
.owp-chat-bot .owp-chat-msg-content {
    background: #fffde7;
    color: #ff9800;
    border: 1.5px solid #ffe082;
    box-shadow: 0 2px 8px rgba(255,193,7,0.08);
}
.owp-chat-bot .owp-chat-msg-name {
    color: #ff9800;
}
.owp-quick-replies-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 10px 0 0 0;
    padding: 8px 0 0 0;
    border-top: 1px solid #eee;
    background: #fafafa;
}
.owp-quick-reply-btn {
    background: #fff;
    color: #3949ab;
    border: 1px solid #3949ab;
    border-radius: 18px;
    padding: 4px 16px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, box-shadow 0.2s, opacity 0.3s, transform 0.3s;
    position: relative;
    opacity: 1;
    top: 0;
}
.owp-quick-reply-btn:hover, .owp-quick-reply-active {
    background: #3949ab;
    color: #fff;
    box-shadow: 0 2px 8px rgba(57,73,171,0.10);
    animation: owp-quick-reply-flash 0.35s;
}
@keyframes owp-quick-reply-flash {
    0% { box-shadow: 0 0 0 0 #ffeb3b; }
    60% { box-shadow: 0 0 12px 6px #ffeb3b; }
    100% { box-shadow: 0 0 0 0 #ffeb3b; }
}
.owp-dashboard-wrapper {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 2px 16px rgba(40,53,147,0.07);
    padding: 32px 18px 24px 18px;
    margin: 32px auto 0 auto;
    max-width: 1100px;
    font-family: 'Cairo', Tahoma, Arial, sans-serif;
}
.owp-dashboard-title {
    color: #283593;
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 18px;
    letter-spacing: 0.5px;
}
.owp-dashboard-row {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
}
.owp-dashboard-col {
    flex: 1 1 0;
    min-width: 320px;
}
.owp-dashboard-main { flex: 2; }
.owp-dashboard-side { flex: 1; }
.owp-dashboard-welcome {
    background: #e8eaf6;
    border-radius: 10px;
    padding: 18px 14px;
    margin-bottom: 18px;
    color: #222;
    font-size: 1.1rem;
}
.owp-timeline-card {
    background: #f5f6fa;
    border-radius: 12px;
    padding: 18px 16px 10px 16px;
    box-shadow: 0 1px 8px rgba(40,53,147,0.04);
}
.owp-timeline-title {
    color: #3949ab;
    font-size: 1.2rem;
    font-weight: bold;
    margin-bottom: 16px;
}
.owp-timeline-vertical {
    border-right: 3px solid #e0e0e0;
    margin-right: 18px;
    padding-right: 18px;
    position: relative;
}
.owp-timeline-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    position: relative;
    animation: fadeInUp 0.7s;
}
.owp-timeline-icon {
    font-size: 1.7rem;
    margin-left: 12px;
    margin-top: 2px;
}
.owp-timeline-content {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(40,53,147,0.06);
    padding: 10px 14px 8px 10px;
    min-width: 160px;
    max-width: 90%;
}
.owp-timeline-meta {
    font-size: 14px;
    color: #3949ab;
    font-weight: 600;
    margin-bottom: 4px;
    display: flex;
    justify-content: space-between;
}
.owp-timeline-text {
    font-size: 15px;
    color: #333;
    margin-bottom: 2px;
}
.owp-timeline-status {
    font-size: 14px;
    color: #ff9800;
    font-weight: bold;
}
.owp-timeline-stage .owp-timeline-content {
    background: #fffde7;
    border: 1.5px solid #ffe082;
}
.owp-timeline-msg .owp-timeline-content {
    background: #e3f2fd;
    border: 1.5px solid #90caf9;
}
.owp-timeline-empty {
    color: #aaa;
    text-align: center;
    padding: 30px 0;
    font-size: 1.1rem;
}
.owp-dashboard-stats {
    background: #f5f6fa;
    border-radius: 10px;
    padding: 14px 10px 10px 10px;
    margin-bottom: 18px;
    box-shadow: 0 1px 6px rgba(40,53,147,0.04);
}
.owp-stat-item {
    font-size: 15px;
    color: #283593;
    margin-bottom: 6px;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
}
.owp-stat-label {
    color: #3949ab;
    font-weight: 700;
}
.owp-dashboard-notifications {
    background: #fff3cd;
    border-radius: 10px;
    padding: 12px 10px 8px 10px;
    margin-bottom: 10px;
    box-shadow: 0 1px 6px rgba(255,193,7,0.04);
}
.owp-dashboard-notifications h4 {
    color: #ff9800;
    font-size: 1.05rem;
    margin-bottom: 8px;
    font-weight: bold;
}
#owp-notifications-list {
    list-style: disc inside;
    color: #b26a00;
    font-size: 14px;
    margin: 0;
    padding: 0 0 0 10px;
}
#owp-notifications-list li {
    margin-bottom: 4px;
}
.owp-knowledge-card {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(40,53,147,0.04);
    padding: 18px 16px 10px 16px;
    margin-top: 28px;
}
.owp-knowledge-title {
    color: #3949ab;
    font-size: 1.1rem;
    font-weight: bold;
    margin-bottom: 12px;
}
#owp-knowledge-list {
    list-style: disc inside;
    color: #283593;
    font-size: 15px;
    margin: 0;
    padding: 0 0 0 10px;
}
#owp-knowledge-list li {
    margin-bottom: 6px;
}
#owp-knowledge-list a {
    color: #3949ab;
    text-decoration: underline;
    transition: color 0.2s;
}
#owp-knowledge-list a:hover {
    color: #ff9800;
}
.owp-stat-item:last-child {
    border-top: 1px dashed #e0e0e0;
    margin-top: 8px;
    padding-top: 8px;
}
.owp-badges-bar {
    background: #fffde7;
    border-radius: 12px;
    box-shadow: 0 1px 8px rgba(255,193,7,0.07);
    padding: 12px 18px 8px 18px;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.08rem;
    border: 1.5px solid #ffe082;
}
.owp-badges-title {
    color: #ff9800;
    font-weight: bold;
    margin-left: 10px;
}
#owp-badges-list {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.owp-badge-item {
    background: #fff;
    border-radius: 8px;
    padding: 4px 12px 4px 8px;
    color: #ff9800;
    font-weight: 700;
    font-size: 1.01em;
    box-shadow: 0 1px 4px rgba(255,193,7,0.06);
    border: 1px solid #ffe082;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s, color 0.2s;
    cursor: pointer;
}
.owp-badge-item:hover {
    background: #fff8e1;
    color: #f57c00;
}
.owp-badge-empty {
    color: #bbb;
    background: none;
    border: none;
    font-weight: normal;
    box-shadow: none;
}
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(30px); }
    100% { opacity: 1; transform: translateY(0); }
}
