/* Custom Styles */

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    flex: 1;
}

.template-card {
    transition: all 0.3s ease;
}

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

.placeholder-badge {
    background-color: #e9ecef;
    border: 1px solid #ced4da;
    color: #495057;
    padding: 0.25em 0.5em;
    border-radius: 0.25rem;
    font-size: 0.875em;
    margin-right: 0.5em;
    margin-bottom: 0.5em;
    display: inline-block;
}

.actions-column {
    width: 150px;
    min-width: 150px;
}

.actions-column .btn {
    margin-bottom: 0.5rem;
}

.actions-column .btn-group {
    display: flex;
}

.actions-column .btn-group .btn {
    flex: 1;
    margin-bottom: 0;
}

.mark-not-sent-btn {
    white-space: nowrap;
}

.status-pending {
    color: #ffc107;
}

.status-sent {
    color: #28a745;
}

/* WhatsApp styles */
.btn-whatsapp {
    background-color: #25D366;
    border-color: #25D366;
    color: white;
}

.btn-whatsapp:hover {
    background-color: #128C7E;
    border-color: #128C7E;
    color: white;
}

.badge.bg-whatsapp {
    background-color: #25D366 !important;
}

/* Add transition effects for status changes */
.badge {
    transition: all 0.5s ease;
}

.badge.bg-success {
    animation: pulse-success 2s ease;
}

@keyframes pulse-success {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); box-shadow: 0 0 10px rgba(40, 167, 69, 0.5); }
    100% { transform: scale(1); }
}

/* Add transition effect for progress bar */
.progress-bar {
    transition: width 1s ease-in-out;
}

/* Completion animation */
.progress-bar[aria-valuenow="100"] {
    animation: progress-complete 1s ease;
}

@keyframes progress-complete {
    0% { background-color: #28a745; }
    50% { background-color: #20c997; }
    100% { background-color: #28a745; }
}

/* Highlight effect for elements being updated */
.highlight-update {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background-color: transparent; }
    30% { background-color: rgba(40, 167, 69, 0.1); }
    100% { background-color: transparent; }
}

/* Toast notification styles */
.toast {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
    border: none;
    border-radius: 8px;
    overflow: hidden;
    animation: toast-slide-in 0.5s ease;
}

.toast.hide {
    animation: toast-slide-out 0.5s ease forwards;
}

@keyframes toast-slide-in {
    0% { transform: translateY(100%); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

@keyframes toast-slide-out {
    0% { transform: translateY(0); opacity: 1; }
    100% { transform: translateY(100%); opacity: 0; }
}

.toast-header {
    border-bottom: none;
    padding: 0.75rem 1rem;
}

.toast-body {
    padding: 1rem;
    font-weight: 500;
}

.bg-success.toast {
    border-left: 4px solid #155724;
}

.mobile-number-input {
    font-family: monospace;
}

.placeholder-inputs {
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 5px;
    margin-bottom: 15px;
}

.recipient-card {
    margin-bottom: 15px;
    border-left: 5px solid #007bff;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .actions-column {
        width: auto;
        min-width: 120px;
    }
    
    .message-content-cell {
        max-width: 200px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .message-content-cell:hover {
        white-space: normal;
        overflow: visible;
    }
    
    .card-header {
        padding: 0.75rem;
    }
    
    .card-body, .card-footer {
        padding: 0.75rem;
    }
    
    h1 {
        font-size: 1.75rem;
    }
    
    .btn {
        padding: 0.375rem 0.5rem;
    }
    
    .btn-sm {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
}

/* Medium devices */
@media (min-width: 769px) and (max-width: 992px) {
    .message-content-cell {
        max-width: 300px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .message-content-cell:hover {
        white-space: normal;
        overflow: visible;
    }
} 