/* Recent Merges Page Styles */

.hidden{
    display:none!important;
}

/* Loading Placeholder Animation */
.metric-placeholder {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.metric-value {
    transition: opacity 0.3s ease-in-out;
}

/* Statistics Cards */
.stats-card {
    border-left: 4px solid;
    transition: all 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.stats-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.8rem;
}

/* Page Header */
.page-header-merges {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 8px 25px rgba(74, 85, 104, 0.3);
}

/* Merge Table */
.merge-table {
    border-collapse: separate;
    border-spacing: 0;
}

#recipientsTableContainer{
    max-height: 500px;
}

.merge-table thead th {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 1rem;
    border: none;
    position: sticky;
    top: 0;
    z-index: 10;
}

.merge-table tbody tr {
    transition: all 0.2s ease;
    border-bottom: 1px solid #e9ecef;
}

    .merge-table tbody tr:hover {
        background-color: #f8f9fa;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    }

.merge-name-link {
    font-size: 1.05rem;
    font-weight: 600;
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.merge-name-link:hover {
    color: #2d3748;
}

.badge-recipients {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 20px;
    color: white;
}

.date-badge {
    background-color: #f1f3f5;
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-weight: 500;
    color: #495057;
    display: inline-block;
}

/* Action Buttons */
.btn-action {
    transition: all 0.2s ease;
    border-radius: 8px;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Empty State */
.empty-state {
    padding: 4rem 2rem;
    text-align: center;
}

.empty-state-icon {
    font-size: 5rem;
    color: #dee2e6;
    margin-bottom: 1.5rem;
}

/* Pagination */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 3px;
    border: 1px solid #dee2e6;
    color: #4a5568;
    font-weight: 500;
}

.pagination .page-item.active .page-link {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-color: #4a5568;
}

/* Modal */
.modal-content {
    border: none;
    border-radius: 16px;
    overflow: hidden;
}

.modal-header-delete {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    padding: 1.5rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   MERGE DETAILS PAGE STYLES
   =================================== */

/* Fix tooltip visibility issues */
.card {
    overflow: visible !important;
}

.card-body {
    overflow: visible !important;
}

.row {
    overflow: visible !important;
}

.col-lg-3, .col-md-6, .col-sm-6 {
    overflow: visible !important;
}

.table-responsive {
    overflow-x: auto !important;
    overflow-y: visible !important;
}

/* Ensure Bootstrap tooltips appear above everything */
.tooltip {
    z-index: 99999 !important;
    position: fixed !important;
}

.tooltip-inner {
    max-width: 300px;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    text-align: left;
    background-color: #2d3748;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.tooltip.bs-tooltip-top .tooltip-arrow::before {
    border-top-color: #2d3748;
}

.tooltip.bs-tooltip-bottom .tooltip-arrow::before {
    border-bottom-color: #2d3748;
}

.tooltip.bs-tooltip-start .tooltip-arrow::before {
    border-left-color: #2d3748;
}

.tooltip.bs-tooltip-end .tooltip-arrow::before {
    border-right-color: #2d3748;
}

/* Ensure info icons are visible and hoverable */
.fa-info-circle {
    cursor: help;
    display: inline-block;
    position: relative;
    z-index: 1;
}

/* Subdued stat cards with white/light gray background */
.stat-card-subdued {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
 border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.stat-card-subdued:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
}

.stat-icon-large {
  font-size: 2.5rem;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
    opacity: 0.7;
}

.stat-card-subdued .card-body {
    color: #495057;
}

.stat-card-subdued h2 {
    color: #212529;
}

.stat-card-subdued h6 {
    color: #6c757d;
}

.stat-card-subdued small {
    color: #6c757d;
}

/* Details Page Header */
.details-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
 border-radius: 16px;
    padding: 1.5rem 2rem;
    margin-bottom: 2rem;
    color: white;
    box-shadow: 0 4px 15px rgba(74, 85, 104, 0.2);
}

.details-header h2 {
    margin: 0;
    font-size: 1.75rem;
}

/* Accordion Styles for Merge Information */
.card-header[onclick] {
    transition: all 0.3s ease;
    user-select: none;
}

.card-header[onclick]:hover {
    background: linear-gradient(135deg, #5a6778 0%, #3d4758 100%) !important;
    transform: translateY(-2px);
}

.card-header[onclick].active {
    border-bottom: 2px solid #007bff;
}

.transition-icon {
    transition: transform 0.3s ease;
}

.collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-out;
}

.collapse.show {
    max-height: 1000px;
    transition: max-height 0.5s ease-in;
}

/* Charts Section - 4 Charts in One Line */
.row.justify-content-center {
    display: flex;
    flex-wrap: wrap;
}

.metrics-card {
    height: 100%;
  min-height: 340px;
    transition: all 0.3s ease;
}

.metrics-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12) !important;
}

.metrics-card .card-header {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    border-bottom: 2px solid rgba(255,255,255,0.1);
  font-weight: 600;
}

.metrics-card .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 290px;
    padding: 1rem;
}

.chart-container {
    position: relative;
    height: 160px;
    margin: 0.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-height: 160px !important;
    max-width: 160px !important;
    height: 160px !important;
    width: 160px !important;
    margin: 0 auto;
}

.loading-container {
    display: flex;
 flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
}

.metric-stats {
    margin-top: 0.75rem !important;
}

.metric-stat-item {
    padding: 0.35rem;
    background: rgba(0,0,0,0.03);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.metric-stat-item:hover {
    background: rgba(0,0,0,0.06);
    transform: scale(1.05);
}

.metric-value {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.metric-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Tooltip Styling */
.card-header .fa-info-circle {
  opacity: 0.6;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.card-header .fa-info-circle:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Ensure all 4 charts are in one row on large screens */
@media (min-width: 992px) {
    .metrics-card {
   flex: 0 0 25%;
     max-width: 25%;
    }
}

/* Responsive adjustments for charts */
@media (max-width: 1199px) {
    .metrics-card {
        min-height: 320px;
    }
    
    .chart-container {
        height: 150px;
    }
    
    .chart-container canvas {
     max-height: 150px !important;
        max-width: 150px !important;
    }
    
    .metrics-card .card-body {
 min-height: 270px;
    }
}

@media (max-width: 991px) {
    .metrics-card {
        min-height: 300px;
    }
    
    .chart-container {
        height: 140px;
    }
    
    .chart-container canvas {
        max-height: 140px !important;
        max-width: 140px !important;
    }
}

@media (max-width: 767px) {
    .metrics-card {
     min-height: 280px;
  }
    
    .chart-container {
   height: 130px;
    }
    
    .chart-container canvas {
        max-height: 130px !important;
        max-width: 130px !important;
    }
    
    .metrics-card .card-body {
        min-height: 230px;
    }
}

/* Summary Cards (Colorful Gradient Cards) */
.summary-card {
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.summary-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.summary-card h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.summary-card .fs-1 {
    font-size: 3.5rem !important;
}

/* Card Headers */
.card-header-dark {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

.card-header-black {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    font-weight: 600;
    padding: 1rem 1.25rem;
    border: none;
}

/* Info Table Styles */
.info-table {
    margin-bottom: 0;
}

.info-table th {
    font-weight: 600;
    color: #495057;
    width: 40%;
    padding: 0.75rem 1rem;
    background-color: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.info-table td {
    padding: 0.75rem 1rem;
    color: #212529;
    border-bottom: 1px solid #e9ecef;
}

.info-table tr:last-child th,
.info-table tr:last-child td {
    border-bottom: none;
}

/* Data Tables in Details */
.details-table {
    font-size: 0.9rem;
}

.details-table thead th {
    background: linear-gradient(135deg, #4a5568 0%, #2d3748 100%);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
    padding: 0.875rem;
    border: none;
}

.details-table tbody tr {
    transition: background-color 0.2s ease;
}

.details-table tbody tr:hover {
    background-color: #f8f9fa;
}

.details-table tbody td {
    padding: 0.75rem 0.875rem;
    vertical-align: middle;
}

/* Metrics Cards */
.metrics-card {
    transition: all 0.3s ease;
}

.metrics-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important;
}

.metric-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.metric-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

/* Chart Container */
.chart-container {
    position: relative;
    height: 200px;
    margin: 1rem 0;
}

/* Loading Spinner */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.loading-container .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Filter Dropdown */
.filter-dropdown {
    min-width: 200px;
}

/* Export Button */
.btn-export {
    transition: all 0.2s ease;
}

.btn-export:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-export:disabled,
.disabled-button {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Back Button */
.btn-back {
    transition: all 0.2s ease;
    border-radius: 8px;
}

.btn-back:hover {
    transform: translateX(-5px);
}

/* Link Styling in Tables */
.details-table a {
    color: #4a5568;
    text-decoration: none;
    transition: color 0.2s;
}

.details-table a:hover {
    color: #2d3748;
    text-decoration: underline;
}

/* Badge Styles */
.status-badge {
    padding: 0.35rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-success-custom {
    background-color: #d4edda;
    color: #155724;
}

.badge-danger-custom {
    background-color: #f8d7da;
    color: #721c24;
}

/* Metric Stats Row */
.metric-stats {
    padding-top: 1rem;
    border-top: 2px solid #e9ecef;
}

.metric-stat-item h6 {
    margin-bottom: 0.25rem;
}

/* Help Card Styling */
.card-body .fa-lightbulb {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .page-header-merges {
        padding: 1.5rem;
    }
    
    .details-header {
        padding: 1rem 1.5rem;
    }
    
    .details-header h2 {
        font-size: 1.5rem;
    }

    .summary-card h2 {
      font-size: 2rem;
    }

    .summary-card .fs-1 {
        font-size: 2.5rem !important;
    }
    
    .merge-table thead th,
    .details-table thead th {
     font-size: 0.65rem;
        padding: 0.75rem;
    }
    
    .merge-table tbody td,
    .details-table tbody td {
        padding: 0.75rem !important;
        font-size: 0.85rem;
    }
    
 .info-table th,
    .info-table td {
    padding: 0.5rem 0.75rem;
   font-size: 0.875rem;
    }
    
    .info-table th {
        width: 45%;
    }
    
    .btn-action {
        padding: 0.35rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .metric-value {
font-size: 1.5rem;
    }
    
  .chart-container {
        height: 180px;
    }
    
    .card-header-dark,
    .card-header-black {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .filter-dropdown {
      min-width: 150px;
        font-size: 0.85rem;
    }
}

@media (max-width: 576px) {
    .details-header {
        padding: 0.75rem 1rem;
    }

        .details-header h2 {
            font-size: 1.25rem;
        }

    .info-table th {
        width: 50%;
    }

    .summary-card h2 {
        font-size: 1.75rem;
    }

    .chart-container {
        height: 160px;
    }
}


* {
    box-sizing: border-box;
}

body,
html {
    margin: 0;
    font-family: 'Inter', sans-serif;
    height: 100vh;
}

.container {
    display: flex;
    height: 100%;
}

.left-panel,
.right-panel {
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.left-panel {
    background-color: #fff;
    align-items: center;
}

.right-panel {
    background: linear-gradient(135deg, #41b0ff 0%, #1976d2 100%);
    color: #fff;
    align-items: center;
    justify-content: center;
}

.heading3 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.subtitle {
    color: #333;
    font-size: 18px;
    text-align: left;
    margin-bottom: 0.5rem;
}

.cta-button {
    display: flex;
    width: 100%;
    max-width: 650px;
    margin: 32px 0 0 0;
    padding: 16px 0;
    background: #2980b9;
    color: #fff;
    text-align: center;
    border: none;
    border-radius: 8px;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(41, 128, 185, 0.10);
    transition: background 0.2s, transform 0.2s;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    gap: 12px;
    text-decoration: none;
}

    .cta-button img {
        height: 28px;
        width: auto;
    }

    .cta-button:hover {
        background: linear-gradient(90deg, #005b97 0%, #6dd5fa 100%);
        transform: translateY(-2px) scale(1.02);
        text-decoration: none;
        color: #fff;
    }

.microsoft_certifiad_badge_img {
    width: 15dvw;
    margin-top: 1rem;
    min-width: 200px;
}

.terms {
    font-size: 14px;
    color: #666;
    margin-top: 15px;
    text-align: center;
}

    .terms a {
        color: #0B66FF;
        text-decoration: none;
    }

        .terms a:hover {
            text-decoration: underline;
        }

.login-link {
    margin-top: 25px;
    font-size: 18px;
    color: #333;
    text-align: center;
}

    .login-link a {
        color: #0B66FF;
        text-decoration: none;
    }

        .login-link a:hover {
            text-decoration: underline;
        }

.illustration {
    width: 80%;
    max-width: 500px;
}

.checkmark-list {
    text-align: left;
    margin: 1rem 0;
}

    .checkmark-list div {
        margin: 0.5rem 0;
    }

.checkmark {
    color: green;
    font-size: 1.2em;
    margin-right: 0.5rem;
}

@@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }

    .right-panel {
        display: none;
    }

    .left-panel {
        padding: 30px 20px;
    }

    .heading3 {
        font-size: 1.5rem;
    }

    .microsoft_certifiad_badge_img {
        width: 40dvw;
    }
}


.hover-lift {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15) !important;
}

.home {
    min-height: calc(100vh - 200px);
}

.alert {
    border-left: 4px solid #0dcaf0;
}

.card {
    border: 1px solid rgba(0,0,0,.05);
}

.badge {
    font-weight: 600;
    letter-spacing: 0.5px;
}

.btn {
    transition: all 0.3s ease;
}

    .btn:hover {
        transform: scale(1.05);
    }

.rounded-4 {
    border-radius: 1rem !important;
}

.card-header .fa-info-circle {
  opacity: 0.6;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.card-header .fa-info-circle:hover {
    opacity: 1;
    transform: scale(1.15);
}

/* Chart Card Styling */
.chart-card {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 1rem;
    max-height: 280px;
}

.chart-card h6 {
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

/* Chart Container - Adjusted for better fit with metrics */
.chart-container {
    position: relative;
    height: 160px;
    width: 100%;
    max-width: 180px;
    margin: 0.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chart-container canvas {
    max-height: 160px !important;
    max-width: 160px !important;
    height: 160px !important;
    width: 160px !important;
    margin: 0 auto;
}

/* Loading Container for Charts */
#openRateChartLoading,
#clickRateChartLoading {
    padding: 1.5rem 1rem;
    min-height: 160px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#openRateChartLoading .spinner-border,
#clickRateChartLoading .spinner-border {
    width: 2rem;
    height: 2rem;
}

/* Metric Item Styling */
.metric-item {
    padding: 0.75rem;
    background-color: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 0.75rem;
}

.metric-icon {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.metric-item h6 {
    font-size: 0.75rem;
    margin-bottom: 0.25rem;
}

.metric-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0;
}

.metric-item p {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.metric-item small {
    font-size: 0.75rem;
}



