/* ATWEL Reminder System - Main Application Styles */

/* Custom styles for the application */
.template-editor {
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

/* Card hover effects */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Button improvements */
.btn {
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

/* Badge improvements */
.badge {
    font-size: 0.75em;
}

/* Table improvements */
.table-hover tbody tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Alert improvements */
.alert {
    border-radius: 8px;
}

/* Form improvements */
.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Navigation improvements */
.navbar-brand {
    font-weight: 600;
}

.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Footer improvements */
footer {
    margin-top: auto;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .btn-group-sm .btn {
        padding: 0.25rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .table-responsive {
        font-size: 0.9rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Status indicators */
.status-success {
    color: #198754;
}

.status-error {
    color: #dc3545;
}

.status-warning {
    color: #ffc107;
}

/* Custom spacing */
.mt-6 {
    margin-top: 3.5rem;
}

.mb-6 {
    margin-bottom: 3.5rem;
}

/* Template editor enhancements */
.template-editor {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.emoji-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background-color: #e9ecef;
    transform: scale(1.1);
}

.btn-toolbar .btn-group {
    margin-bottom: 0.5rem;
}

/* Accordion improvements */
.accordion-button {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

.accordion-body {
    font-size: 0.9rem;
}

.accordion-body pre {
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
}

.accordion-body code {
    background-color: #f1f3f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Help section styling */
.list-unstyled li {
    margin-bottom: 0.25rem;
}

.list-unstyled code {
    color: #d63384;
    font-weight: 500;
}

/* Template preview improvements */
.template-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.template-preview pre {
    margin-bottom: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Template editor enhancements */
.template-editor {
    font-family: 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
}

.emoji-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.emoji-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.emoji-btn:hover {
    background-color: #e9ecef;
    transform: scale(1.1);
}

.btn-toolbar .btn-group {
    margin-bottom: 0.5rem;
}

/* Accordion improvements */
.accordion-button {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
}

.accordion-body {
    font-size: 0.9rem;
}

.accordion-body pre {
    font-size: 0.8rem;
    max-height: 200px;
    overflow-y: auto;
}

.accordion-body code {
    background-color: #f1f3f4;
    padding: 2px 4px;
    border-radius: 3px;
    font-size: 0.85em;
}

/* Help section styling */
.list-unstyled li {
    margin-bottom: 0.25rem;
}

.list-unstyled code {
    color: #d63384;
    font-weight: 500;
}

/* Template preview improvements */
.template-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
}

.template-preview pre {
    margin-bottom: 0;
    white-space: pre-wrap;
    word-wrap: break-word;
}