body {
    font-family: Arial, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 20px;
}

.container {
    max-width: 1040px; /* Increased from 800px to 1040px (30% wider) */
    margin: 0 auto;
}

h1 {
    color: #333;
}

.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin: 20px 0;
}

.stat {
    background: white;
    padding: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
}

.stat-content {
    flex: 1;
}

.delete-all-btn {
    width: 24px;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 0.8em;
    padding: 8px 4px;
    margin-left: 8px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.delete-all-btn:hover {
    filter: brightness(0.95);
}

.delete-all-btn:active {
    filter: brightness(0.9);
}

.stat:hover {
    filter: brightness(0.95);
}

.stat:active {
    filter: brightness(0.9);
}

.stat.Success {
    border-left: 5px solid #4CAF50;
}

.stat.Warning {
    border-left: 5px solid #FFC107;
}

.stat.Failure {
    border-left: 5px solid #F44336;
}

.stat.Total {
    border-left: 5px solid #2196F3;
}

.controls {
    margin: 20px 0;
    display: flex;
    gap: 10px;
    justify-content: space-between;
}

.filter-group {
    display: flex;
    gap: 10px;
}

#status-filter, #project-filter, #refresh {
    padding: 8px 12px;
    border-radius: 4px;
    border: 1px solid #ddd;
    transition: all 0.3s;
}

#status-filter, #project-filter {
    min-width: 150px;
}

#refresh {
    background-color: #2196F3;
    color: white;
    border-color: #1976D2;
}

#refresh:hover {
    background-color: #1976D2;
    transform: scale(1.05);
}

#refresh:active {
    background-color: #1565C0;
    transform: scale(0.95);
}

.notification {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.notification.Success {
    border-left: 5px solid #4CAF50;
}

.notification.Warning {
    border-left: 5px solid #FFC107;
}

.notification.Failure {
    border-left: 5px solid #F44336;
}

.notification-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.status {
    font-weight: bold;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
}

.status.Success {
    background-color: #4CAF50;
}

.status.Warning {
    background-color: #FFC107; 
}

.status.Failure {
    background-color: #F44336;
}

.project {
    font-weight: bold;
}

/* Clean up notification footer alignment conflicts */
.notification-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-end; /* Align to bottom instead of center */
  margin-top: 10px;
}

/* Fix button sizing and alignment */
.notification button {
  margin-top: 0; /* Remove conflicting margin */
  align-self: flex-end; /* Align to bottom */
  height: 38px; /* Consistent height */
}

.process-btn, .delete-btn {
  margin-top: 0 !important; /* Override conflicting styles */
  vertical-align: bottom;
}

/* Fix processed info alignment */
.processed-info {
  color: #777;
  font-style: italic;
  font-size: 0.9em;
  margin: 0; /* Remove all margins */
  align-self: flex-end; /* Align to bottom */
  line-height: 38px; /* Match button height */
}

/* Fix timestamp alignment */
.notification-footer .timestamp {
  margin-left: auto;
  margin-right: 10px;
  margin-top: 0;
  margin-bottom: 0;
  align-self: flex-end; /* Align to bottom */
  line-height: 38px; /* Match button height */
}

/* Ensure button groups align properly */
.button-group {
  display: flex;
  gap: 10px;
  align-items: flex-end; /* Align to bottom */
  height: auto;
}

/* Make card headers match the card body color */
.notification .card-header {
  background-color: transparent;
border-bottom: none;
}

.notification .badge {
  padding: 0.5em 0.8em;
}

.notification .d-flex .gap-2 {
  gap: 0.5rem !important;
}

/* Add vertical centering to all elements */
.notification-footer > * {
  display: flex;
  align-items: flex-end; /* Align to bottom */
}

/* Button styling to match status indicator colors */

/* Default outline style with transparent background */
.btn-outline-status {
  background-color: transparent;
  border-width: 1px;
  border-style: solid;
}

/* Success notification buttons - green outline */
.notification-success .btn-outline-status {
  color: #198754;
  border-color: #198754;
}
.notification-success .btn-outline-status:hover {
  background-color: rgba(25, 135, 84, 0.1);
}

/* Warning notification buttons - yellow outline */
.notification-warning .btn-outline-status {
  color: #ffc107;
  border-color: #ffc107;
}
.notification-warning .btn-outline-status:hover {
  background-color: rgba(255, 193, 7, 0.1);
}

/* Failure notification buttons - red outline */
.notification-failure .btn-outline-status {
  color: #dc3545;
  border-color: #dc3545;
}
.notification-failure .btn-outline-status:hover {
  background-color: rgba(220, 53, 69, 0.1);
}

/* Fix footer layout issues */

/* Ensure footer has correct flexbox properties */
.notification .d-flex.justify-content-between.align-items-center {
  display: flex !important;
  justify-content: space-between !important;
  width: 100%;
  margin-top: 15px;
}

/* Make timestamp visible and properly aligned */
.notification .timestamp {
  margin-right: auto;
  display: inline-block !important;
}

/* Fix alignment of button container */
.notification .d-flex.align-items-center.gap-2 {
  display: flex !important;
  justify-content: flex-end;
  margin-left: auto;
}

/* Ensure the processed info text is visible */
.notification .processed-info {
  display: inline-block !important;
  margin-bottom: 0;
}

/* Add this to your style.css file */
.notification-stats .card {
    cursor: pointer;
    transition: all 0.2s ease-in-out;
    position: relative;
    z-index: 1;
}

.notification-stats .card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: -1;
}

.notification-stats .card:hover::after {
    opacity: 1;
}

.notification-stats .card:active {
    transform: translateY(2px);
}

/* Status Cards with Left Border Design */
.notification-stats .card {
    background-color: white;
    border: 1px solid #dee2e6;
    border-left-width: 5px;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.notification-stats .card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

/* Success card */
.notification-stats .bg-success {
    background-color: white !important;
    border-left-color: #198754;
}

.notification-stats .bg-success .card-title,
.notification-stats .bg-success .card-text {
    color: #198754;
}

/* Warning card */
.notification-stats .bg-warning {
    background-color: white !important;
    border-left-color: #ffc107;
}

.notification-stats .bg-warning .card-title,
.notification-stats .bg-warning .card-text {
    color: #ffc107;
}

/* Failure/Danger card */
.notification-stats .bg-danger {
    background-color: white !important;
    border-left-color: #dc3545;
}

.notification-stats .bg-danger .card-title,
.notification-stats .bg-danger .card-text {
    color: #dc3545;
}

/* Total card */
.notification-stats .card:nth-child(4) {
    border-left-color: #6c757d;
}

.notification-stats .card:nth-child(4) .card-title,
.notification-stats .card:nth-child(4) .card-text {
    color: #6c757d;
}

/* Badge styling */
.notification-stats .bg-success .badge {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
    border: 1px solid #198754;
}

.notification-stats .bg-warning .badge {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important;
    border: 1px solid #ffc107;
}

.notification-stats .bg-danger .badge {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border: 1px solid #dc3545;
}

.notification-stats .card:nth-child(4) .badge {
    background-color: rgba(108, 117, 125, 0.1) !important;
    color: #6c757d !important;
    border: 1px solid #6c757d;
}

/* Selected card styling */
.notification-stats .bg-info {
    background-color: white !important;
    border-left-color: #0dcaf0;
}

.notification-stats .bg-info .card-title,
.notification-stats .bg-info .card-text {
    color: #0dcaf0;
}

.notification-stats .bg-info .badge {
    background-color: rgba(13, 202, 240, 0.1) !important;
    color: #0dcaf0 !important;
    border: 1px solid #0dcaf0;
}

/* Individual notification cards with left border accent */
.notification.card {
    border-left-width: 5px;
    background-color: white;
}

.notification-success {
    border-left-color: #198754 !important;
}

.notification-warning {
    border-left-color: #ffc107 !important;
}

.notification-failure {
    border-left-color: #dc3545 !important;
}

/* Badge styling for individual notification cards */
.notification-success .badge {
    background-color: rgba(25, 135, 84, 0.1) !important;
    color: #198754 !important;
    border: 1px solid #198754;
}

.notification-warning .badge {
    background-color: rgba(255, 193, 7, 0.1) !important;
    color: #ffc107 !important; 
    border: 1px solid #ffc107;
}

.notification-failure .badge {
    background-color: rgba(220, 53, 69, 0.1) !important;
    color: #dc3545 !important;
    border: 1px solid #dc3545;
}

/* Button styling to match notification state */
.notification-success .btn-outline-status {
    color: #198754;
    border-color: #198754;
}

.notification-success .btn-outline-status:hover {
    background-color: #198754;
    color: white;
}

.notification-warning .btn-outline-status {
    color: #ffc107;
    border-color: #ffc107;
}

.notification-warning .btn-outline-status:hover {
    background-color: #ffc107;
    color: #212529;
}

.notification-failure .btn-outline-status {
    color: #dc3545;
    border-color: #dc3545;
}

.notification-failure .btn-outline-status:hover {
    background-color: #dc3545;
    color: white;
}

/* Add this at the end of your CSS file */
.processed-info-container {
    margin-right: 10px;
    max-width: 300px; /* Prevent overly wide info text */
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Ensure delete button always appears on the right side */
.d-flex.align-items-center.gap-2 {
    display: flex !important;
    flex-direction: row;
    justify-content: flex-end;
}

/* Fix for delete button alignment */
.delete-btn {
    order: 2; /* Ensure delete button comes last */
}

.processed-info {
    order: 1; /* Ensure processed info comes first */
}

