/* VetLogic Pro Suite - Styles v1.4 */

:root {
    --vlp-primary: #2c3e50; /* Header Background */
    --vlp-secondary: #215387; /* Main Action Color (Buttons & Icons) */
    --vlp-accent: #e74c3c;
    --vlp-success: #27ae60;
    --vlp-warning: #f39c12;
    --vlp-bg: #f8f9fa;
    --vlp-radius: 8px;
    --vlp-shadow: 0 4px 6px rgba(0,0,0,0.08);
}

.vlp-wrapper {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    max-width: 800px;
    margin: 20px auto;
}

/* Hub / Grid Layout (Horizontal Fix) */
.vlp-hub {
    margin: 20px 0;
}

.vlp-filter-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    justify-content: center;
}

.vlp-filter {
    background: #fff;
    border: 1px solid #ddd;
    padding: 8px 16px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    color: #555;
    transition: all 0.3s;
}

.vlp-filter:hover, .vlp-filter.active {
    background: var(--vlp-secondary);
    color: #fff;
    border-color: var(--vlp-secondary);
}

.vlp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.vlp-grid-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--vlp-radius);
    padding: 20px;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: var(--vlp-shadow);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vlp-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Updated: Icon changes color on hover to match button hover */
.vlp-grid-item:hover .vlp-icon-wrapper {
    color: #E18282;
}

.vlp-icon-wrapper {
    font-size: 2.5rem;
    color: var(--vlp-secondary); /* Matches Primary Button Color */
    margin-bottom: 15px;
    transition: color 0.3s ease;
}

.vlp-grid-item h4 {
    margin: 0 0 15px 0;
    font-size: 1.1rem;
    color: #333;
    line-height: 1.4;
}

.vlp-btn-sm {
    display: inline-block;
    padding: 8px 15px;
    background: var(--vlp-secondary);
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9rem;
    margin-top: auto; /* Push button to bottom */
    transition: background 0.3s ease;
}
.vlp-btn-sm:hover {
    background: #E18282; /* Custom Hover Color */
    color: #fff;
}

/* Single Tool Styling */
.vlp-back-btn {
    display: inline-block;
    margin-bottom: 15px;
    text-decoration: none;
    color: var(--vlp-secondary);
    font-weight: 600;
    transition: color 0.3s ease;
}
.vlp-back-btn:hover {
    color: #E18282;
}

.vlp-card {
    background: #fff;
    border: 1px solid #e1e1e1;
    border-radius: var(--vlp-radius);
    box-shadow: var(--vlp-shadow);
    overflow: hidden;
    margin-bottom: 2rem;
}

.vlp-header {
    background: var(--vlp-primary);
    color: #fff;
    padding: 15px 20px;
}

.vlp-title {
    margin: 0;
    font-size: 1.25rem;
    color: #fff !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.vlp-content {
    padding: 20px;
}

/* Form Elements */
.vlp-form-group {
    margin-bottom: 15px;
}

.vlp-label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.vlp-input, .vlp-select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    box-sizing: border-box;
}

.vlp-input:focus, .vlp-select:focus {
    border-color: var(--vlp-secondary);
    outline: none;
}

.vlp-btn {
    background: var(--vlp-secondary);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
    transition: background 0.3s ease;
}

.vlp-btn:hover {
    background: #E18282; /* Custom Hover Color */
}

/* Result Box */
.vlp-result-box {
    margin-top: 20px;
    padding: 15px;
    background: #f1f8ff;
    border-left: 5px solid var(--vlp-secondary);
    border-radius: 4px;
}

.vlp-result-box.hidden { display: none; }
.vlp-result-box.alert-danger { background: #fdeaea; border-left-color: var(--vlp-accent); color: #c0392b; }
.vlp-result-box.alert-warning { background: #fef9e7; border-left-color: var(--vlp-warning); color: #d35400; }
.vlp-result-box.alert-success { background: #eafaf1; border-left-color: var(--vlp-success); color: #27ae60; }

/* Related Grid (Horizontal) */
.vlp-related-section {
    margin-top: 30px;
    border-top: 2px solid #eee;
    padding-top: 20px;
}
.vlp-related-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
}
.vlp-related-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 15px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: var(--vlp-radius);
    text-decoration: none;
    color: var(--vlp-primary);
    font-weight: 500;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Updated: Icon changes color on hover */
.vlp-related-card:hover i {
    color: #E18282;
}

.vlp-related-card i {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: var(--vlp-secondary); /* Matches Primary Button Color */
    transition: color 0.3s ease;
}
.vlp-related-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--vlp-shadow);
}

@media (max-width: 600px) {
    .vlp-grid { grid-template-columns: 1fr 1fr; }
    .vlp-filter-buttons { flex-direction: column; }
    .vlp-filter { width: 100%; text-align: center; }
}