/* Notification Styles */

/* Notification Badge */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: #dc3545;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

.notification-badge.hidden {
    display: none;
}

/* Unread Count */
.unread-count {
    background-color: #007bff;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: bold;
    min-width: 20px;
    text-align: center;
}

/* Toast Notifications - Hidden in favor of Google-style notifications */
.toast-notification {
    display: none !important;
    position: fixed;
    top: 20px;
    right: 20px;
    width: 350px;
    max-width: 90vw;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 9999;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    overflow: hidden;
    animation: slideInRight 0.3s ease-out;
}

.toast-notification .toast-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toast-notification .toast-header strong {
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

.toast-notification .toast-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.toast-notification .toast-close:hover {
    background-color: #e9ecef;
    color: #495057;
}

.toast-notification .toast-body {
    padding: 16px;
    color: #212529;
    font-size: 14px;
    line-height: 1.5;
}

/* Animation for toast */
@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Unread Indicator for Conversations */
.unread-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #007bff;
    border-radius: 50%;
    margin-left: 8px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        opacity: 1;
    }
}

/* Notification List Styles */
.notification-list {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item {
    padding: 12px 16px;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
    cursor: pointer;
}

.notification-item:hover {
    background-color: #f8f9fa;
}

.notification-item.unread {
    background-color: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.notification-item.read {
    background-color: #fff;
    opacity: 0.8;
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    width: 40px;
    height: 40px;
    /* background-color: #e3f2fd; */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-icon i {
    color: #2196f3;
    font-size: 18px;
}

.notification-details {
    flex: 1;
    min-width: 0;
}

.notification-title {
    font-weight: 600;
    color: #212529;
    margin-bottom: 4px;
    font-size: 14px;
}

.notification-message {
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.notification-time {
    color: #adb5bd;
    font-size: 12px;
}

/* Notification Actions */
.notification-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.notification-action-btn {
    padding: 4px 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #6c757d;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-action-btn:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

.notification-action-btn.primary {
    background-color: #007bff;
    border-color: #007bff;
    color: white;
}

.notification-action-btn.primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
}

/* Notification Center Toggle */
.notification-center-toggle {
    position: relative;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.notification-center-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
}

/* Notification Center Dropdown */
.notification-center-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 400px;
    max-width: 90vw;
    background-color: #fff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    max-height: 500px;
    overflow: hidden;
    display: none;
}

.notification-center-dropdown.show {
    display: block;
    animation: fadeInUp 0.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.notification-center-header {
    padding: 16px;
    border-bottom: 1px solid #dee2e6;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notification-center-title {
    font-weight: 600;
    color: #212529;
    font-size: 16px;
}

.notification-center-actions {
    display: flex;
    gap: 8px;
}

.notification-center-actions button {
    padding: 4px 12px;
    border: 1px solid #dee2e6;
    background-color: #fff;
    color: #6c757d;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

.notification-center-actions button:hover {
    background-color: #f8f9fa;
    border-color: #adb5bd;
}

/* Empty State */
.notification-empty {
    padding: 40px 20px;
    text-align: center;
    color: #6c757d;
}

.notification-empty i {
    font-size: 48px;
    color: #dee2e6;
    margin-bottom: 16px;
}

.notification-empty p {
    margin: 0;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .toast-notification {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }

    .notification-center-dropdown {
        width: calc(100vw - 40px);
        right: 20px;
        left: 20px;
    }

    .notification-item {
        padding: 16px;
    }

    .notification-content {
        gap: 16px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .toast-notification {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .toast-notification .toast-header {
        background-color: #4a5568;
        border-color: #718096;
    }

    .toast-notification .toast-header strong {
        color: #e2e8f0;
    }

    .toast-notification .toast-body {
        color: #e2e8f0;
    }

    .notification-item {
        background-color: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .notification-item:hover {
        background-color: #4a5568;
    }

    .notification-item.unread {
        background-color: #2c5282;
        border-left-color: #63b3ed;
    }
}

/* Google-Style Bottom-Right Notifications */
.google-notification {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 4px 16px rgba(0, 0, 0, 0.08);
    padding: 16px 20px;
    margin-bottom: 16px;
    max-width: 400px;
    min-width: 320px;
    z-index: 9999;
    transform: translateX(100%) translateY(20px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.google-notification.show {
    transform: translateX(0) translateY(0);
}

.google-notification .notification-header {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.google-notification .notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}

.google-notification .notification-title {
    font-weight: 600;
    color: #1a1a1a;
    margin: 0;
    flex: 1;
    font-size: 16px;
}

.google-notification .notification-close {
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 4px;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.2s ease;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.google-notification .notification-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #666;
}

.google-notification .notification-body {
    color: #5f6368;
    margin: 0;
    line-height: 1.5;
    font-size: 14px;
}

.google-notification .notification-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.google-notification .notification-time {
    font-size: 12px;
    color: #9aa0a6;
    font-weight: 500;
}

.google-notification .notification-actions {
    display: flex;
    gap: 8px;
}

.google-notification .notification-action {
    background: none;
    border: none;
    color: #1a73e8;
    cursor: pointer;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.google-notification .notification-action:hover {
    background: rgba(26, 115, 232, 0.08);
}

/* Animation for new notifications */
@keyframes slideInRight {
    from {
        transform: translateX(100%) translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }
}

@keyframes slideOutRight {
    from {
        transform: translateX(0) translateY(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%) translateY(20px);
        opacity: 0;
    }
}

.google-notification.slide-in {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.google-notification.slide-out {
    animation: slideOutRight 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Dark mode for Google notifications */
@media (prefers-color-scheme: dark) {
    .google-notification {
        background: #2d3748;
        border-color: #4a5568;
        color: #e2e8f0;
    }

    .google-notification .notification-title {
        color: #e2e8f0;
    }

    .google-notification .notification-body {
        color: #a0aec0;
    }

    .google-notification .notification-close:hover {
        background: rgba(255, 255, 255, 0.1);
    }
}

/* Order notification popup - modern clean design */
.order-notification-popup {
    position: fixed;
    top: 20px;
    right: 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 8px 32px rgba(0, 0, 0, 0.1);
    max-width: 400px;
    min-width: 340px;
    z-index: 9999;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(20px);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: white;
    overflow: hidden;
}

.order-notification-popup.show {
    transform: translateX(0);
}

.order-notification-popup.slide-out {
    transform: translateX(100%);
}

.order-notification-header {
    display: flex;
    align-items: center;
    padding: 20px 24px 16px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.order-notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.order-notification-title {
    font-weight: 700;
    color: white;
    font-size: 18px;
    flex: 1;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.order-notification-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    padding: 8px;
    font-size: 20px;
    line-height: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.order-notification-close:hover {
    background: rgba(255, 255, 255, 0.3);
    color: white;
    transform: scale(1.1);
}

.order-notification-body {
    padding: 20px 24px;
    color: white;
    line-height: 1.6;
    font-size: 15px;
    background: rgba(255, 255, 255, 0.05);
}

.order-notification-body strong {
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.order-notification-body small {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    display: block;
    margin-top: 8px;
    font-weight: 500;
}

.order-notification-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 20px 24px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

.order-notification-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.order-notification-actions {
    display: flex;
    gap: 20px;
}

.order-notification-link {
    color: white;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.order-notification-link:hover {
    color: white;
    text-decoration: none;
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Animation for order notifications */
@keyframes slideInRightOrder {
    from {
        transform: translateX(100%);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOutRightOrder {
    from {
        transform: translateX(0);
        opacity: 1;
    }

    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

.order-notification-popup.slide-in {
    animation: slideInRightOrder 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.order-notification-popup.slide-out {
    animation: slideOutRightOrder 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Order Details Modal - Professional Enterprise Style */
.order-details-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(20px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}

.order-details-modal-overlay.show {
    opacity: 1;
    visibility: visible;
}

.order-details-modal-overlay.hide {
    opacity: 0;
    visibility: hidden;
}

.order-details-modal {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    box-shadow:
        0 32px 64px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    max-width: 1200px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    transform: scale(0.95) translateY(40px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(226, 232, 240, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    position: relative;
}

.order-details-modal-overlay.show .order-details-modal {
    transform: scale(1) translateY(0);
}

.order-details-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 32px 40px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    position: relative;
    border-radius: 24px 24px 0 0;
}

.order-details-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
    border-radius: 24px 24px 0 0;
}

.order-details-header h3 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: -0.025em;
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.2;
}

.order-details-header h3::before {
    content: '📋';
    font-size: 24px;
    opacity: 0.8;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

.order-details-close {
    background: rgba(148, 163, 184, 0.1);
    border: 1px solid rgba(148, 163, 184, 0.2);
    font-size: 18px;
    color: #64748b;
    cursor: pointer;
    padding: 12px;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    backdrop-filter: blur(8px);
}

.order-details-close:hover {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

.order-details-close:active {
    transform: scale(0.95);
}

.order-details-body {
    padding: 0;
    max-height: 70vh;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 0 0 24px 24px;
}

.order-details-loading {
    text-align: center;
    padding: 100px 40px;
    background: #ffffff;
    border-radius: 0 0 24px 24px;
}

.loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid #3b82f6;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 24px;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* Vertical row-based sections layout */
.order-sections-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 32px;
}

.order-section {
    width: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(226, 232, 240, 0.6);
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.order-section:hover {
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.2);
}

.section-header {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(255, 255, 255, 0.9) 100%);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 20px 24px;
    position: relative;
}

.section-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
}

.section-title {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title::before {
    content: '●';
    font-size: 8px;
    opacity: 0.6;
    color: #3b82f6;
}

.section-content {
    padding: 24px;
    background: #ffffff;
}

/* Order Information Section Styling */
.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.info-item label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0;
}

.info-value {
    font-size: 14px;
    font-weight: 500;
    color: #0f172a;
    line-height: 1.4;
}

/* Products Section Styling */
.products-table {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 2px solid rgba(226, 232, 240, 0.8);
    font-size: 12px;
    font-weight: 600;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-body {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    font-size: 14px;
    color: #475569;
    transition: background-color 0.2s ease;
}

.table-row:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.table-row:last-child {
    border-bottom: none;
}

.col-product {
    font-weight: 500;
    color: #0f172a;
}

.product-name {
    font-weight: 600;
    color: #0f172a;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 4px;
}

.product-sku {
    font-size: 12px;
    color: #64748b;
    font-weight: 400;
    font-style: italic;
}

.product-variation {
    font-size: 12px;
    color: #3b82f6;
    font-weight: 500;
    margin-top: 2px;
}

.col-qty {
    text-align: center;
    font-weight: 500;
}

.col-price,
.col-total {
    text-align: right;
    font-weight: 500;
}

.no-products {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 40px 0;
    font-size: 14px;
}

/* Order Summary Section Styling */
.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 14px;
}

.summary-item.total {
    font-weight: 700;
    font-size: 16px;
    color: #0f172a;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    margin-top: 8px;
    padding-top: 16px;
}

.summary-label {
    color: #64748b;
    font-weight: 500;
}

.summary-value {
    color: #0f172a;
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.8), transparent);
    margin: 8px 0;
}

/* Address Section Styling */
.address-content {
    line-height: 1.6;
}

.address-name {
    font-weight: 600;
    font-size: 15px;
    color: #0f172a;
    margin-bottom: 8px;
}

.address-company {
    font-weight: 500;
    font-size: 14px;
    color: #475569;
    margin-bottom: 6px;
    font-style: italic;
}

.address-line {
    font-size: 14px;
    color: #475569;
    margin-bottom: 4px;
}

.address-phone,
.address-email {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid rgba(226, 232, 240, 0.6);
}

.address-phone::before {
    content: "📞 ";
    margin-right: 4px;
}

.address-email::before {
    content: "✉️ ";
    margin-right: 4px;
}

/* Responsive Design for Vertical Layout */
@media (max-width: 768px) {
    .order-sections-container {
        padding: 20px;
        gap: 16px;
    }

    .section-content {
        padding: 20px;
    }

    .info-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .table-header,
    .table-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .col-qty,
    .col-price,
    .col-total {
        text-align: left;
    }

    .table-header {
        display: none;
    }

    .table-row {
        border: 1px solid rgba(226, 232, 240, 0.6);
        border-radius: 8px;
        padding: 16px;
        margin-bottom: 12px;
    }

    .table-row:last-child {
        margin-bottom: 0;
    }

    .col-product::before {
        content: "Product: ";
        font-weight: 600;
        color: #64748b;
    }

    .product-name {
        font-size: 13px;
    }

    .product-sku {
        font-size: 11px;
    }

    .col-qty::before {
        content: "Qty: ";
        font-weight: 600;
        color: #64748b;
    }

    .col-price::before {
        content: "Price: ";
        font-weight: 600;
        color: #64748b;
    }

    .col-total::before {
        content: "Total: ";
        font-weight: 600;
        color: #64748b;
    }
}

.order-details-content .card {
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -1px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.1);
    background: #ffffff;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.order-details-content .card:hover {
    box-shadow:
        0 10px 15px -3px rgba(0, 0, 0, 0.08),
        0 4px 6px -2px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(59, 130, 246, 0.1);
    transform: translateY(-2px);
    border-color: rgba(59, 130, 246, 0.2);
}

.order-details-content .card-header {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border-bottom: 1px solid rgba(226, 232, 240, 0.6);
    padding: 24px 28px;
    border-radius: 16px 16px 0 0;
    position: relative;
}

.order-details-content .card-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #3b82f6, #6366f1);
    border-radius: 16px 16px 0 0;
}

.order-details-content .card-header h6 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #0f172a;
    letter-spacing: -0.01em;
    display: flex;
    align-items: center;
    gap: 10px;
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.5px;
}

.order-details-content .card-header h6::before {
    content: '●';
    font-size: 8px;
    opacity: 0.6;
    color: #3b82f6;
}

.order-details-content .card-body {
    padding: 28px;
    background: #ffffff;
}

.order-details-content .card-body p {
    margin-bottom: 18px;
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
    font-weight: 400;
}

.order-details-content .card-body p strong {
    color: #0f172a;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: -0.01em;
}

.order-details-content .text-muted {
    color: #64748b !important;
    font-weight: 400;
    font-size: 14px;
}

/* Bootstrap Badge Base Styles */
.badge {
    display: inline-block;
    padding: 0.35em 0.65em;
    font-size: 0.75em;
    font-weight: 700;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 0.375rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

/* Bootstrap Badge Size Variants */
.badge.badge-sm {
    font-size: 0.65em;
    padding: 0.25em 0.5em;
}

.badge.badge-lg {
    font-size: 0.85em;
    padding: 0.5em 0.75em;
}

/* Bootstrap Badge Color Variants */
.badge.bg-primary {
    background-color: #0d6efd !important;
}

.badge.bg-success {
    background-color: #198754 !important;
}

.badge.bg-warning {
    background-color: #ffc107 !important;
    color: #000 !important;
}

.badge.bg-danger {
    background-color: #dc3545 !important;
}

.badge.bg-info {
    background-color: #0dcaf0 !important;
    color: #000 !important;
}

.badge.bg-secondary {
    background-color: #6c757d !important;
}

.badge.bg-dark {
    background-color: #212529 !important;
}

/* Professional status badges with Bootstrap classes */
.badge.wc-processing-status {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    min-width: 80px;
}

.badge.wc-processing-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 0.375rem;
    pointer-events: none;
}

.badge.wc-completed-status {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    min-width: 80px;
}

.badge.wc-completed-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 0.375rem;
    pointer-events: none;
}

.badge.wc-on-hold-status {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    min-width: 80px;
}

.badge.wc-on-hold-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 0.375rem;
    pointer-events: none;
}

.badge.wc-failed-status {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    min-width: 80px;
}

.badge.wc-failed-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 0.375rem;
    pointer-events: none;
}

.badge.wc-refunded-status {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: #ffffff;
    min-width: 80px;
}

.badge.wc-refunded-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 0.375rem;
    pointer-events: none;
}

.badge.wc-cancelled-status {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #ffffff;
    min-width: 80px;
}

.badge.wc-cancelled-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 0.375rem;
    pointer-events: none;
}

.badge.wc-pending-status {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    min-width: 80px;
}

.badge.wc-pending-status::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-radius: 0.375rem;
    pointer-events: none;
}

/* Professional table styles */
.order-details-content .table {
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.order-details-content .table thead th {
    background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
    border: none;
    font-weight: 600;
    color: #0f172a;
    font-size: 13px;
    padding: 18px 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.order-details-content .table tbody td {
    border: none;
    padding: 18px 24px;
    font-size: 14px;
    color: #475569;
    font-weight: 400;
    vertical-align: middle;
}

.order-details-content .table tbody tr {
    border-bottom: 1px solid rgba(241, 245, 249, 0.8);
    transition: background-color 0.2s ease;
}

.order-details-content .table tbody tr:hover {
    background-color: rgba(248, 250, 252, 0.5);
}

.order-details-content .table tbody tr:last-child {
    border-bottom: none;
}

/* Professional order summary */
.order-details-content .d-flex {
    display: flex !important;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 14px;
    padding: 10px 0;
}

.order-details-content .fw-bold {
    font-weight: 700 !important;
    font-size: 15px;
    color: #0f172a;
    letter-spacing: -0.01em;
}

.order-details-content hr {
    margin: 24px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(226, 232, 240, 0.8), transparent);
}

/* Professional action buttons */
.order-details-content .d-grid {
    display: grid !important;
    gap: 12px;
}

.order-details-content .btn {
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    position: relative;
    overflow: hidden;
    letter-spacing: 0.025em;
}

.order-details-content .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.order-details-content .btn:hover::before {
    left: 100%;
}

.order-details-content .btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.order-details-content .btn-primary {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border-color: #3b82f6;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.3);
}

.order-details-content .btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    border-color: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(59, 130, 246, 0.4);
}

.order-details-content .btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: #10b981;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.3);
}

.order-details-content .btn-success:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(16, 185, 129, 0.4);
}

.order-details-content .btn-warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border-color: #f59e0b;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(245, 158, 11, 0.3);
}

.order-details-content .btn-warning:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    border-color: #d97706;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(245, 158, 11, 0.4);
}

.order-details-content .btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border-color: #ef4444;
    color: white;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.3);
}

.order-details-content .btn-danger:hover {
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border-color: #dc2626;
    transform: translateY(-1px);
    box-shadow: 0 6px 8px -1px rgba(239, 68, 68, 0.4);
}

.order-details-content .btn-outline-secondary {
    color: #6b7280;
    border: 2px solid #d1d5db;
    background: linear-gradient(135deg, #ffffff 0%, #f9fafb 100%);
    box-shadow: 0 2px 4px -1px rgba(0, 0, 0, 0.1);
}

.order-details-content .btn-outline-secondary:hover {
    color: #374151;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #9ca3af;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.15);
}

/* Professional error state */
.order-details-error {
    text-align: center;
    padding: 80px 20px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 12px;
    margin: 20px;
}

.error-icon {
    font-size: 64px;
    margin-bottom: 24px;
    color: #ef4444;
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.2));
}

.order-details-error h4 {
    margin: 0 0 16px 0;
    color: #dc2626;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.order-details-error p {
    margin: 0 0 32px 0;
    color: #7f1d1d;
    line-height: 1.6;
    font-size: 16px;
    font-weight: 500;
}

/* Row-based responsive design */
@media (max-width: 1024px) {
    .order-details-modal {
        max-width: 95%;
        margin: 20px;
    }

    .order-details-content .col-md-8,
    .order-details-content .col-md-4 {
        padding: 24px;
    }
}

@media (max-width: 768px) {
    .order-details-modal {
        width: 95%;
        margin: 10px;
        border-radius: 12px;
    }

    .order-details-header {
        padding: 20px 24px;
    }

    .order-details-header h3 {
        font-size: 24px;
    }

    .order-details-content .row {
        gap: 16px;
    }

    .order-details-content .col-md-8,
    .order-details-content .col-md-4 {
        padding: 20px;
    }

    .order-details-content .card {
        margin-bottom: 16px;
    }

    .order-details-content .card-header {
        padding: 16px 20px;
    }

    .order-details-content .card-body {
        padding: 20px;
    }

    .order-details-content .btn {
        width: 100%;
        margin-bottom: 8px;
    }

    .order-details-content .d-grid {
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .order-details-modal {
        width: 100%;
        height: 100%;
        border-radius: 0;
        max-height: 100vh;
    }

    .order-details-header {
        padding: 16px 20px;
    }

    .order-details-header h3 {
        font-size: 20px;
    }

    .order-details-content .row {
        gap: 12px;
    }

    .order-details-content .col-md-8,
    .order-details-content .col-md-4 {
        padding: 16px;
    }
}

/* Status-specific colors for order notifications */
.google-notification.order-notification.status-pending {
    border-left-color: #ffc107;
}

.google-notification.order-notification.status-pending .notification-icon {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.google-notification.order-notification.status-processing {
    border-left-color: #17a2b8;
}

.google-notification.order-notification.status-processing .notification-icon {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

.google-notification.order-notification.status-completed {
    border-left-color: #28a745;
}

.google-notification.order-notification.status-completed .notification-icon {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.google-notification.order-notification.status-cancelled {
    border-left-color: #dc3545;
}

.google-notification.order-notification.status-cancelled .notification-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
}

/* Dark mode for Google notifications */
@media (prefers-color-scheme: dark) {
    .google-notification.order-notification .notification-body strong {
        color: #e2e8f0;
    }

    .google-notification.order-notification .notification-body small {
        color: #a0aec0;
    }
}
