/**
 * MMC Dashboard Help Sidebar Styles
 *
 * Styles for the slide-in help documentation sidebar on the employee dashboard.
 *
 * @package MMC_Intranet_Core
 * @since   1.0.0
 */

/* ========================================
   DASHBOARD HELP BUTTON
   ======================================== */

.mmc-help-button-container {
    position: fixed;
    top: 160px;
    right: 20px;
    z-index: 99998;
}

.mmc-dashboard-help-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
    transition: all 0.3s;
}

.mmc-dashboard-help-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

.mmc-dashboard-help-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* ========================================
   DASHBOARD HELP SIDEBAR
   ======================================== */

.mmc-help-sidebar {
    position: fixed;
    top: 0;
    right: -650px;
    width: 650px;
    height: 100vh;
    z-index: 99999;
    transition: right 0.4s ease-in-out;
}

.mmc-help-sidebar.active {
    right: 0;
}

.mmc-help-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.mmc-help-sidebar.active .mmc-help-sidebar-overlay {
    opacity: 1;
    visibility: visible;
}

.mmc-help-sidebar-content {
    position: relative;
    width: 100%;
    height: 100%;
    background: #f9fafb;
    box-shadow: -4px 0 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
}

/* Header */
.mmc-help-header {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.mmc-help-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.mmc-help-header .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.mmc-help-close {
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.mmc-help-close:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

.mmc-help-close .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Body */
.mmc-help-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Sections */
.mmc-help-section {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.mmc-welcome-section {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border: 2px solid #3b82f6;
}

.mmc-help-section-title {
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.mmc-section-icon {
    font-size: 24px;
}

.mmc-help-section p {
    color: #4b5563;
    line-height: 1.6;
    margin-bottom: 16px;
}

.mmc-help-section p:last-child {
    margin-bottom: 0;
}

/* Help Cards */
.mmc-help-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
}

.mmc-help-card:last-child {
    margin-bottom: 0;
}

.mmc-card-signed {
    border-left: 4px solid #10b981;
}

.mmc-card-pending {
    border-left: 4px solid #f59e0b;
    background: #fefce8;
}

.mmc-help-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.mmc-help-content {
    flex: 1;
}

.mmc-help-content h4 {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 8px 0;
}

.mmc-help-content h5 {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    margin: 12px 0 8px 0;
}

.mmc-help-content p {
    margin: 0 0 12px 0;
    color: #4b5563;
    line-height: 1.6;
}

.mmc-help-content ul,
.mmc-help-content ol {
    margin: 8px 0;
    padding-left: 24px;
    color: #4b5563;
}

.mmc-help-content li {
    margin-bottom: 6px;
    line-height: 1.5;
}

.mmc-help-content ol {
    padding-left: 28px;
}

/* Notes */
.mmc-help-note {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-top: 16px;
}

.mmc-note-info {
    background: #eff6ff;
    border-left: 4px solid #3b82f6;
    color: #1e40af;
}

.mmc-note-tip {
    background: #f0fdf4;
    border-left: 4px solid #10b981;
    color: #15803d;
}

.mmc-note-warning {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    color: #92400e;
}

.mmc-note-important {
    background: #fee2e2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

/* Contact Section */
.mmc-contact-section {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

.mmc-contact-cards {
    display: grid;
    gap: 16px;
}

.mmc-contact-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 16px;
    display: flex;
    gap: 16px;
    align-items: center;
    transition: all 0.3s;
}

.mmc-contact-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}

.mmc-contact-icon {
    font-size: 32px;
    flex-shrink: 0;
    line-height: 1;
}

.mmc-contact-info {
    flex: 1;
}

.mmc-contact-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    margin: 0 0 4px 0;
}

.mmc-contact-info p {
    font-size: 13px;
    color: #6b7280;
    margin: 0 0 8px 0;
}

.mmc-contact-link {
    color: #3b82f6;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.mmc-contact-link:hover {
    color: #2563eb;
}

/* Tips Section */
.mmc-tips-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.mmc-tips-grid {
    display: grid;
    gap: 12px;
}

.mmc-tip-item {
    background: white;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.mmc-tip-emoji {
    font-size: 24px;
    flex-shrink: 0;
    line-height: 1;
}

.mmc-tip-item p {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
}

/* Scrollbar styling */
.mmc-help-body::-webkit-scrollbar {
    width: 8px;
}

.mmc-help-body::-webkit-scrollbar-track {
    background: #f1f5f9;
    border-radius: 4px;
}

.mmc-help-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
}

.mmc-help-body::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .mmc-help-sidebar {
        width: 100%;
        right: -100%;
    }

    .mmc-help-card {
        flex-direction: column;
    }

    .mmc-help-button-container {
        top: 120px;
        right: 10px;
    }

    .mmc-dashboard-help-btn {
        padding: 10px 14px;
        font-size: 13px;
    }

    .mmc-dashboard-help-btn .mmc-btn-text {
        display: none;
    }

    .mmc-help-header {
        padding: 16px;
    }

    .mmc-help-body {
        padding: 16px;
    }

    .mmc-help-section {
        padding: 16px;
    }

    .mmc-contact-card {
        flex-direction: column;
        text-align: center;
    }
}
