body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f8f9fa;
}

.metric-card {
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.metric-card:hover {
    transform: translateY(-5px);
}

.metric-value {
    font-size: 2rem;
    font-weight: bold;
}

.metric-label {
    font-size: 0.9rem;
    margin-top: 5px;
}

.keyword-input {
    position: relative;
    display: block;
    margin-bottom: 1rem;
}

.keyword-input .form-control {
    width: 100%;
    padding-right: 40px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.keyword-input .form-control:focus {
    border-color: #86b7fe;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.remove-keyword-btn {
    cursor: pointer;
    color: #dc3545;
    font-size: 1.2rem;
}

.remove-keyword-btn:hover {
    color: #a71e2a;
}

.table th {
    vertical-align: middle;
}

.table td {
    vertical-align: middle;
}

.suggestion-card {
    border-left: 4px solid #0d6efd;
    margin-bottom: 15px;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 0 5px 5px 0;
}

.suggestion-card.high-priority {
    border-left-color: #dc3545;
}

.suggestion-card.medium-priority {
    border-left-color: #ffc107;
}

.suggestion-card.low-priority {
    border-left-color: #198754;
}

.suggestion-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.suggestion-description {
    font-size: 0.9rem;
    color: #6c757d;
}

.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.btn i {
    pointer-events: none;
}

.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.table th, .table td {
    padding: 0.75rem;
}

.table th {
    font-weight: 600;
}

footer {
    margin-top: 40px;
}

@media (max-width: 768px) {
    .metric-value {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        font-size: 0.8rem;
    }
}