/* Custom Styles for Eagle Eye Dashboard */

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.sidebar::-webkit-scrollbar {
    width: 6px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #374151;
    border-radius: 3px;
}

.sidebar-item {
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-radius: 0.375rem;
    cursor: pointer;
    margin-bottom: 0.25rem;
    transition: all 0.2s ease-in-out;
}
.sidebar-item:hover {
    background-color: #1f2937;
    color: #e5e7eb;
}
.sidebar-item.active {
    background-color: #1f2937;
    color: #ffffff;
    border-left: 3px solid #3b82f6;
}
.sidebar-item i {
    width: 1.5rem;
    margin-right: 0.5rem;
    text-align: center;
}

.view-section {
    display: none;
    animation: fadeIn 0.3s ease;
}
.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.action-card {
    border: 1px solid #f3f4f6;
    border-radius: 0.5rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background-color: #ffffff;
}
.action-card:hover {
    border-color: #e5e7eb;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transform: translateY(-2px);
}

.icon-circle {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* Modal Animations */
#modal-overlay {
    transition: opacity 0.3s ease;
}
.modal-box {
    animation: slideUpFade 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpFade {
    from { opacity: 0; transform: scale(0.95) translateY(20px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* ---- SMS Logs Modal ---- */
.sms-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}
.sms-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sms-icon-box {
    background-color: #eef2ff;
    color: #6366f1;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
}
.sms-title-area h2 {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin: 0;
}
.sms-title-area p {
    font-size: 12px;
    color: #64748b;
    margin: 2px 0 0;
}
.sms-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}
.sms-sync-btn {
    background-color: #5856d6;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.sms-sync-btn:hover { background-color: #4845c4; }
.sms-sync-btn-disabled { opacity: 0.7; cursor: not-allowed; }
.sms-close {
    color: #94a3b8;
    font-size: 16px;
    cursor: pointer;
}
.sms-close:hover { color: #64748b; }
.sms-table-container {
    max-height: 420px;
    overflow-y: auto;
}
.sms-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
.sms-table th {
    background-color: #f8fafc;
    color: #64748b;
    font-size: 11px;
    font-weight: 600;
    padding: 12px 16px;
    border-bottom: 1px solid #e2e8f0;
    position: sticky;
    top: 0;
    z-index: 1;
}
.sms-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 12px;
    color: #334155;
    vertical-align: top;
}
.sms-table .col-contact {
    font-weight: 600;
    color: #1e293b;
    width: 20%;
}
.sms-table .col-message {
    width: 42%;
    line-height: 1.4;
    word-break: break-word;
}
.sms-table .col-type { width: 15%; }
.sms-table .col-timestamp {
    width: 15%;
    color: #64748b;
    font-size: 11px;
}
.sms-table .col-action {
    width: 8%;
    text-align: center;
}
.sms-badge {
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}
.sms-badge-received { background-color: #d1fae5; color: #10b981; }
.sms-badge-sent { background-color: #dbeafe; color: #2563eb; }
.sms-badge-missed { background-color: #fee2e2; color: #dc2626; }
.sms-table .col-duration { width: 14%; color: #475569; white-space: nowrap; }
.delete-btn {
    color: #ef4444;
    cursor: pointer;
    font-size: 13px;
    transition: color 0.2s;
}
.delete-btn:hover { color: #dc2626; }
.sms-footer {
    padding: 12px 20px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    justify-content: flex-end;
}
.sms-close-btn {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    color: #334155;
    padding: 6px 16px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}
.sms-close-btn:hover { background-color: #f8fafc; }

/* ---- USSD Dialer Modal ---- */
.ussd-icon-box { width: 38px; height: 38px; background-color: #e6f4ff; color: #0088ff; font-weight: bold; font-size: 18px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ussd-body { padding: 20px 24px; }
.ussd-field { margin-bottom: 16px; }
.ussd-field label { display: block; font-size: 13px; font-weight: 700; color: #3f3f46; margin-bottom: 8px; }
.ussd-input { width: 100%; padding: 12px 14px; border: 1px solid #e4e4e7; border-radius: 8px; font-size: 15px; color: #18181b; outline: none; box-sizing: border-box; }
.ussd-input-bold { font-weight: 700; }
select.ussd-input { appearance: none; background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e"); background-repeat: no-repeat; background-position: right 12px center; background-size: 16px; cursor: pointer; }
.ussd-help { font-size: 12px; color: #71717a; margin-top: 6px; }
.ussd-dial-btn { width: 100%; background-color: #0091ff; color: white; border: none; padding: 12px; border-radius: 8px; font-size: 15px; font-weight: 600; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.ussd-dial-btn:hover { background-color: #0080e0; }
.ussd-response { border-top: 1px solid #f0f0f0; padding: 20px 24px; }
.ussd-response-title { font-size: 12px; font-weight: 700; color: #71717a; letter-spacing: 0.5px; margin-bottom: 12px; text-transform: uppercase; }
.ussd-response-box { border: 1px solid #e4e4e7; border-radius: 8px; padding: 14px; font-size: 13px; line-height: 1.6; color: #27272a; margin-bottom: 16px; background-color: #ffffff; white-space: pre-wrap; min-height: 60px; max-height: 180px; overflow-y: auto; }
.ussd-reply-form { display: flex; gap: 8px; }
.ussd-reply-input { flex: 1; padding: 10px 12px; border: 1px solid #e4e4e7; border-radius: 6px; font-size: 13px; outline: none; }
.ussd-reply-btn { background-color: #00bba7; color: white; border: none; padding: 10px 18px; border-radius: 6px; font-weight: 600; font-size: 13px; cursor: pointer; }
.ussd-reply-btn:hover { background-color: #00a796; }
