/* tamayuzCore Clean UI Styles - Simplified, Effective, Consistent */

/* Remove unnecessary buttons and clutter */
.key-login,
#btn-login {
    display: none !important;
}

/* Simplify sidebar - remove unnecessary spacing and clutter */
.sidebar .panel-group {
    margin-bottom: 15px;
}

.sidebar .panel {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    box-shadow: none;
}

.sidebar .panel-heading {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
    padding: 12px 15px;
}

.sidebar .panel-body {
    padding: 15px;
}

/* Remove badge clutter from gradebook sidebar */
.badge_sidebar,
.badge_sidebar_image,
.badge_sidebar_title {
    display: none !important;
}

/* Simplify course homepage */
#homepage-course-category,
.hot-courses,
.sessions-current {
    display: none !important;
}

/* Clean up plugin areas */
#plugin_main_top,
#plugin_main_bottom,
#plugin_content_top,
#plugin_content_bottom,
#plugin_menu_top,
#plugin_menu_bottom,
#plugin_header_left,
#plugin_header_center,
#plugin_header_right,
#plugin_header_left_logo {
    display: none !important;
}

/* Simplify header */
.header-ol {
    list-style: none;
    padding: 0;
    margin: 0;
}

.header-ol li {
    display: inline-block;
    margin: 0 5px;
}

/* Remove unnecessary navigation elements */
#navigation.notification-panel {
    padding: 5px 0;
    min-height: auto;
}

/* Simplify course tool icons - cleaner spacing */
.course-tool {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 8px;
    transition: background 0.2s ease;
}

.course-tool:hover {
    background: #f8f9fa;
}

/* Remove overwhelming widgets */
.certificates_search_block,
.search_block,
.classes_block {
    display: none !important;
}

/* Simplify page content */
.page-content {
    padding: 20px 0;
}

/* Clean up announcements */
#homepage-announcements {
    margin: 20px 0;
    padding: 15px;
    background: #ffffff;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
}

/* Simplify welcome message */
#home-welcome {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Remove unnecessary buttons from course pages */
.btn-group .btn:not(.btn-primary):not(.btn-success):not(.btn-danger) {
    border: 1px solid #e1e8ed;
    background: #ffffff;
}

/* Simplify toolbars */
.nav-tools {
    padding: 10px 0;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 20px;
}

/* Clean up course navigation */
#toolnav {
    padding: 10px 0;
}

#toolnavbox {
    list-style: none;
    padding: 0;
    margin: 0;
}

#toolnavbox li {
    display: inline-block;
    margin: 5px;
}

/* Simplify user image block */
.user_image_block {
    text-align: center;
    padding: 15px;
    margin-bottom: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Remove profile block clutter */
.profile_block .panel-body {
    padding: 10px 15px;
}

/* Simplify skills block - hide if not essential */
.skills_block {
    display: none !important;
}

/* Clean up course blocks */
.course_block .panel-body {
    padding: 10px;
}

.course_block .list-group-item {
    padding: 8px 12px;
    border: none;
    border-bottom: 1px solid #e1e8ed;
}

.course_block .list-group-item:last-child {
    border-bottom: none;
}

/* Simplify buttons - consistent styling */
.btn {
    border-radius: 6px;
    padding: 8px 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-default {
    background: #ffffff;
    border: 1px solid #e1e8ed;
    color: #495057;
}

.btn-default:hover {
    background: #f8f9fa;
    border-color: #ced4da;
}

/* Remove unnecessary icons and decorations */
.fa-spinner,
.loading-indicator {
    opacity: 0.6;
}

/* Simplify forms */
.form-control {
    border-radius: 6px;
    border: 1px solid #e1e8ed;
    padding: 10px 12px;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* Clean up panels */
.panel {
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.panel-heading {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
}

.panel-body {
    padding: 15px;
}

/* Simplify tables */
.table {
    border-radius: 8px;
    overflow: hidden;
}

.table thead {
    background: #f8f9fa;
}

.table th {
    border-bottom: 2px solid #e1e8ed;
    font-weight: 600;
    padding: 12px;
}

.table td {
    padding: 12px;
    border-bottom: 1px solid #f1f3f5;
}

/* Remove unnecessary dividers */
.divider {
    display: none;
}

/* Simplify alerts */
.alert {
    border-radius: 8px;
    padding: 12px 15px;
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Clean up modals */
.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

.modal-header {
    border-bottom: 1px solid #e1e8ed;
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #e1e8ed;
    padding: 15px 20px;
}

/* Simplify breadcrumbs */
.breadcrumb {
    background: transparent;
    padding: 0;
    margin: 10px 0;
}

.breadcrumb > li + li:before {
    content: "›";
    color: #adb5bd;
    padding: 0 8px;
}

/* Remove unnecessary animations and effects */
* {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

/* Simplify course homepage activity view */
.course-tool {
    text-align: center;
    padding: 15px;
    margin: 10px 0;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.course-tool:hover {
    background: #f8f9fa;
    border-color: #667eea;
}

/* Clean up tool icons */
.tool-icon {
    margin: 0 auto;
    display: block;
}

/* Simplify page headers */
.page-header {
    border-bottom: 2px solid #e1e8ed;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.page-header h4 {
    margin: 0;
    font-weight: 600;
    color: #495057;
}

/* Remove overwhelming notifications */
.notification-panel {
    max-height: 50px;
    overflow: hidden;
}

/* Simplify course navigation toolbar */
.nav-tools,
.tamayuz-nav-tools {
    padding: 12px 15px;
    border-bottom: 1px solid #e1e8ed;
    margin-bottom: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 10px;
}

#toolnav {
    padding: 0;
    margin: 0;
}

#toolnavbox {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

#toolnavbox li {
    margin: 0;
}

#toolnavbox .btn {
    padding: 8px 12px;
    font-size: 13px;
    border-radius: 6px;
    white-space: nowrap;
}

/* Hide course shortcuts toolbar if too cluttered */
.show_course_shortcut {
    margin-bottom: 15px;
}

/* Simplify actions toolbar */
.actions {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.actions .btn {
    margin: 0 5px 5px 0;
}

/* Remove unnecessary action buttons */
.actions .btn-group .btn:not(.btn-primary):not(.btn-success) {
    display: none;
}

/* Simplify breadcrumbs in course */
.breadcrumb {
    background: transparent;
    padding: 8px 0;
    margin: 0 0 15px 0;
    font-size: 14px;
}

/* Hide unnecessary course info elements */
.course-info-extra,
.course-description-extra {
    display: none !important;
}

/* Simplify user portal course list */
.user-portal-course-item .course-actions {
    margin-top: 10px;
}

.user-portal-course-item .btn-sm {
    padding: 5px 10px;
    font-size: 12px;
}

/* Remove course item decorations */
.course-item-extra,
.course-badge,
.course-tag {
    display: none !important;
}

/* Simplify announcements */
.announcement-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.announcement-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Simplify document list */
.document-item {
    padding: 10px;
    margin: 5px 0;
    border-bottom: 1px solid #f1f3f5;
}

.document-item:hover {
    background: #f8f9fa;
}

/* Remove unnecessary document actions */
.document-actions .btn:not(.btn-primary) {
    display: none;
}

/* Simplify exercise/quiz interface */
.exercise-header {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 20px;
}

.exercise-actions {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e1e8ed;
}

/* Simplify assignment interface */
.work-list-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.work-list-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Remove unnecessary work actions */
.work-actions .btn-group {
    display: none;
}

/* Simplify gradebook */
.gradebook-table {
    border-radius: 8px;
    overflow: hidden;
}

.gradebook-header {
    background: #f8f9fa;
    padding: 12px;
    font-weight: 600;
}

/* Simplify attendance */
.attendance-sheet {
    border-radius: 8px;
    overflow: hidden;
}

.attendance-actions {
    margin: 15px 0;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Remove unnecessary buttons from forms */
.form-actions .btn:not(.btn-primary):not(.btn-success) {
    display: none;
}

/* Simplify message interface */
.message-list-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.message-list-item:hover {
    background: #f8f9fa;
}

/* Remove message actions clutter */
.message-actions {
    display: none;
}

/* Simplify user list */
.user-list-item {
    padding: 12px;
    margin-bottom: 10px;
    background: #ffffff;
    border-bottom: 1px solid #f1f3f5;
}

.user-list-item:hover {
    background: #f8f9fa;
}

/* Remove user action buttons clutter */
.user-actions .btn-group {
    display: none;
}

/* Simplify learning path */
.lp-view {
    border-radius: 8px;
    overflow: hidden;
}

.lp-navigation {
    padding: 10px;
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
}

/* Remove unnecessary LP buttons */
.lp-actions .btn:not(.btn-primary) {
    display: none;
}

/* Consistent card styling */
.card,
.panel {
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.card-header,
.panel-heading {
    background: #f8f9fa;
    border-bottom: 1px solid #e1e8ed;
    padding: 12px 15px;
    font-weight: 600;
}

.card-body,
.panel-body {
    padding: 15px;
}

/* Remove unnecessary icons */
.fa-spinner,
.loading,
.progress-indicator {
    opacity: 0.6;
}

/* Simplify pagination */
.pagination {
    margin: 20px 0;
}

.pagination > li > a {
    border-radius: 6px;
    margin: 0 3px;
    border: 1px solid #e1e8ed;
    color: #667eea;
}

.pagination > li.active > a {
    background: #667eea;
    border-color: #667eea;
    color: #ffffff;
}

/* Remove unnecessary badges and labels */
.badge:not(.badge-primary):not(.badge-success):not(.badge-danger) {
    display: none;
}

.label:not(.label-primary):not(.label-success):not(.label-danger) {
    display: none;
}

/* Simplify tooltips */
.tooltip {
    font-size: 12px;
}

/* Remove unnecessary help text */
.help-block,
.help-text {
    display: none;
}

/* Simplify search */
.search-form {
    margin: 15px 0;
}

.search-form .form-control {
    border-radius: 6px 0 0 6px;
}

.search-form .btn {
    border-radius: 0 6px 6px 0;
}

/* Consistent spacing for all pages */
.page-header {
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e1e8ed;
}

.page-content {
    padding: 20px 0;
}

/* Remove unnecessary dividers and separators */
hr,
.divider,
.separator {
    border: none;
    border-top: 1px solid #e1e8ed;
    margin: 20px 0;
}

/* Simplify modals - already done but ensure consistency */
.modal-dialog {
    margin: 30px auto;
}

/* Remove unnecessary animations on non-essential elements */
.course-tool,
.panel,
.card {
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

/* Simplify user image block */
.user_image_block img {
    border-radius: 50%;
    border: 3px solid #e1e8ed;
    max-width: 100px;
    margin: 0 auto;
    display: block;
}

/* Clean up course block */
.course_block .list-group {
    border: none;
    box-shadow: none;
}

.course_block .list-group-item {
    border: none;
    border-bottom: 1px solid #f1f3f5;
    padding: 10px 15px;
}

.course_block .list-group-item:last-child {
    border-bottom: none;
}

.course_block .list-group-item:hover {
    background: #f8f9fa;
}

/* Simplify gradebook sidebar */
#gradebook_block .list-group-item {
    padding: 10px 15px;
    border: none;
    border-bottom: 1px solid #f1f3f5;
}

#gradebook_block .list-group-item:last-child {
    border-bottom: none;
}

/* Remove unnecessary course homepage elements */
.welcome_to_course_block {
    margin: 20px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

/* Simplify announcements block */
#homepage-announcements .announcement {
    margin-bottom: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

/* Remove unnecessary course category display */
.course-category-block {
    display: none !important;
}

/* Simplify hot courses if shown */
.hot-courses-item {
    margin-bottom: 15px;
    padding: 15px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

/* Consistent button styling */
.btn {
    font-weight: 500;
    letter-spacing: 0.3px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-xs {
    padding: 4px 8px;
    font-size: 11px;
}

/* Remove unnecessary text decorations */
.text-decoration-none {
    text-decoration: none !important;
}

/* Simplify list groups */
.list-group {
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    overflow: hidden;
}

.list-group-item {
    border: none;
    border-bottom: 1px solid #f1f3f5;
    padding: 12px 15px;
}

.list-group-item:last-child {
    border-bottom: none;
}

.list-group-item:hover {
    background: #f8f9fa;
}

/* Simplify well and jumbotron */
.well {
    background: #f8f9fa;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
    padding: 15px;
}

.jumbotron {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 30px;
}

/* Remove unnecessary progress bars clutter */
.progress {
    height: 8px;
    border-radius: 4px;
    background: #e1e8ed;
    overflow: hidden;
}

.progress-bar {
    background: #667eea;
}

/* Simplify alerts - ensure consistency */
.alert {
    border-left: 4px solid;
    border-radius: 8px;
}

.alert-success {
    border-left-color: #28a745;
    background: #d4edda;
    color: #155724;
}

.alert-info {
    border-left-color: #17a2b8;
    background: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    border-left-color: #ffc107;
    background: #fff3cd;
    color: #856404;
}

.alert-danger {
    border-left-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

/* Remove unnecessary course tool decorations */
.course-tool .big_icon {
    margin-bottom: 10px;
}

.course-tool .content {
    text-align: center;
}

/* Simplify course tool links */
.course-tool a {
    color: #495057;
    text-decoration: none;
    display: block;
    padding: 10px;
    border-radius: 6px;
    transition: background 0.2s ease;
}

.course-tool a:hover {
    background: #f8f9fa;
    color: #667eea;
}

/* Remove unnecessary course homepage widgets */
.homepage-widget,
.course-widget {
    display: none !important;
}

/* Block social network completely - hide all references */
.social-network,
.social-menu,
.sn-sidebar,
.social-wall,
.social-home,
#social-network-menu,
.social-network-menu {
    display: none !important;
}

/* Hide social network links and buttons */
a[href*="social/home.php"],
a[href*="social/profile.php"],
a[href*="social/myfiles.php"],
a[href*="blog/blog.php"],
a[href*="wiki/index.php"],
a[href*="portfolio/index.php"],
a[href*="glossary/index.php"],
a[href*="notebook/index.php"],
a[href*="dropbox/index.php"] {
    display: none !important;
}

/* Chat is kept for simplified communication */

/* Hide social network sections */
.social-section,
.social-content,
.social-sidebar {
    display: none !important;
}

/* Remove social network from profile page */
.profile-social-tab,
.social-profile-section {
    display: none !important;
}

/* Simplify user portal */
.user-portal-header {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e1e8ed;
}

/* Consistent focus states */
*:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

button:focus,
a:focus,
input:focus,
select:focus,
textarea:focus {
    outline: 2px solid #667eea;
    outline-offset: 2px;
}

/* Remove unnecessary print styles clutter */
@media print {
    .no-print,
    .btn,
    .actions,
    .nav-tools {
        display: none !important;
    }
}

/* Simplify user portal */
.user-portal-course-list {
    margin: 20px 0;
}

/* Simplify chat interface */
.chat-container {
    background: #ffffff;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.chat-header {
    background: #f8f9fa;
    padding: 12px 15px;
    border-radius: 8px 8px 0 0;
    border-bottom: 1px solid #e1e8ed;
    font-weight: 600;
}

.chat-messages {
    padding: 15px;
    max-height: 500px;
    overflow-y: auto;
    background: #ffffff;
}

.chat-message {
    padding: 10px 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    background: #f8f9fa;
    border-left: 3px solid #667eea;
}

.chat-message-author {
    font-weight: 600;
    color: #667eea;
    font-size: 13px;
    margin-bottom: 4px;
}

.chat-message-text {
    font-size: 14px;
    color: #495057;
}

.chat-message-time {
    font-size: 11px;
    color: #6c757d;
    margin-top: 4px;
}

.chat-input-area {
    padding: 15px;
    background: #f8f9fa;
    border-radius: 0 0 8px 8px;
    border-top: 1px solid #e1e8ed;
}

.chat-input-area textarea {
    width: 100%;
    border: 1px solid #e1e8ed;
    border-radius: 6px;
    padding: 10px;
    font-size: 14px;
    resize: vertical;
    min-height: 60px;
}

.chat-input-area textarea:focus {
    border-color: #667eea;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.chat-send-button {
    margin-top: 10px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-button:hover {
    opacity: 0.9;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.chat-users-list {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
}

.chat-user-item {
    padding: 8px 10px;
    margin-bottom: 5px;
    background: #ffffff;
    border-radius: 6px;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.chat-user-item.online {
    border-left: 3px solid #28a745;
}

.chat-user-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    margin-right: 8px;
}

.chat-empty-message {
    text-align: center;
    padding: 40px 20px;
    color: #6c757d;
    font-size: 14px;
}

/* Simplify chat toolbar */
.chat-toolbar {
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-toolbar .btn {
    padding: 8px 12px;
    font-size: 13px;
}

/* Remove chat clutter */
.chat-extra-buttons,
.chat-advanced-options {
    display: none !important;
}

.user-portal-course-item {
    padding: 15px;
    margin-bottom: 15px;
    background: #ffffff;
    border: 1px solid #e1e8ed;
    border-radius: 8px;
}

.user-portal-course-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Consistent spacing */
.container {
    padding-left: 15px;
    padding-right: 15px;
}

.row {
    margin-left: -15px;
    margin-right: -15px;
}

/* Simplify footer */
.footer {
    background: #f8f9fa;
    border-top: 1px solid #e1e8ed;
    padding: 20px 0;
    margin-top: 40px;
}

/* Remove unnecessary text */
.text-muted {
    color: #6c757d !important;
}

/* Simplify links */
a {
    color: #667eea;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Clean up dropdowns */
.dropdown-menu {
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px 0;
}

.dropdown-menu > li > a {
    padding: 8px 20px;
    transition: background 0.2s ease;
}

.dropdown-menu > li > a:hover {
    background: #f8f9fa;
}

/* Simplify tabs */
.nav-tabs {
    border-bottom: 2px solid #e1e8ed;
}

.nav-tabs > li > a {
    border-radius: 8px 8px 0 0;
    border: none;
    margin-right: 5px;
    padding: 10px 20px;
}

.nav-tabs > li.active > a {
    background: #667eea;
    color: #ffffff;
    border: none;
}

/* Responsive cleanup */
@media (max-width: 768px) {
    .sidebar {
        margin-top: 20px;
    }
    
    .course-tool {
        margin: 5px 0;
    }
}

