/* SMS Module Styles */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.navbar-brand {
    font-weight: 600;
}

.stat-card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.stat-card .icon {
    font-size: 2.5rem;
    color: #6c757d;
    opacity: 0.7;
}

.menu-card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.menu-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    background-color: #f8f9fa;
}

.menu-card .card-body {
    padding: 2rem 1rem;
}

.menu-card i {
    color: #0d6efd;
}

.table th {
    font-weight: 600;
    border-top: none;
}

.card {
    border-radius: 10px;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
    padding: 1rem 1.25rem;
}

.form-control, .form-select {
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    border: 2px solid #e9ecef;
}

.form-control:focus, .form-select:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.btn {
    border-radius: 8px;
    padding: 0.5rem 1.5rem;
    font-weight: 500;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    border: none;
}

.btn-warning {
    background: linear-gradient(135deg, #f7971e 0%, #ffd200 100%);
    border: none;
}

.alert {
    border-radius: 8px;
    border: none;
}

.alert-info {
    background-color: #e7f1ff;
    color: #0c63e4;
}

.preview-text {
    font-size: 0.85rem;
    color: #6c757d;
    font-style: italic;
}

.progress {
    border-radius: 20px;
}

.progress-bar {
    border-radius: 20px;
    transition: width 0.5s ease;
}

/* Logs table styling */
.logs-table .status-sent {
    color: #198754;
    font-weight: 600;
}

.logs-table .status-failed {
    color: #dc3545;
    font-weight: 600;
}

.logs-table .status-pending {
    color: #6c757d;
    font-weight: 600;
}

/* Settings page */
.settings-form .form-label {
    font-weight: 600;
    color: #495057;
}

.device-list {
    max-height: 300px;
    overflow-y: auto;
}

.device-item {
    padding: 0.75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: all 0.2s;
}

.device-item:hover {
    background-color: #f8f9fa;
    border-color: #0d6efd;
}

.device-item.selected {
    background-color: #e7f1ff;
    border-color: #0d6efd;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .menu-card .card-body {
        padding: 1.5rem 0.5rem;
    }
    
    .menu-card i {
        font-size: 2.5rem;
    }
}

/* Single SMS Page Styles */
.sms-preview {
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 15px;
    min-height: 100px;
    margin-bottom: 15px;
}

.variable-buttons .btn {
    margin: 2px;
}

.quick-contact-btn {
    transition: all 0.2s;
}

.quick-contact-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.char-counter {
    font-size: 0.85rem;
}

/* Message preview styling */
.preview-placeholder {
    color: #6c757d;
    font-style: italic;
}

/* Mobile input formatting */
.mobile-input-group {
    position: relative;
}

.mobile-input-group .country-code {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    pointer-events: none;
}

.mobile-input-group input {
    padding-left: 50px;
}

/* Recent SMS table */
.recent-sms-table tr:hover {
    background-color: #f8f9fa;
}

/* Modal for preview */
#previewModal .modal-body {
    max-height: 70vh;
    overflow-y: auto;
}