/* 
 * How-To For Business - Custom Styles
 */

/* Global Styles */
:root {
    --primary-color: #0d6efd;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --info-color: #0dcaf0;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --light-color: #f8f9fa;
    --dark-color: #212529;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1200px;
}

footer {
    margin-top: auto;
}

/* Custom container for auth pages */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
}

/* Custom Navbar */
.navbar-brand {
    font-weight: 700;
}

/* Card Styles */
.card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    background-color: rgba(0, 0, 0, 0.03);
    border-bottom: 1px solid rgba(0, 0, 0, 0.125);
    padding: 0.75rem 1.25rem;
}

/* Guide Cards */
.guide-card {
    height: 100%;
    transition: transform 0.2s;
}

.guide-card:hover {
    transform: translateY(-5px);
}

.guide-card .card-footer {
    background-color: transparent;
    border-top: none;
}

/* Step Navigation */
.step-navigation {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
}

/* Dashboard Statistics */
.stats-card {
    text-align: center;
    padding: 20px;
}

.stats-card i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.stats-card .stats-value {
    font-size: 2rem;
    font-weight: 700;
}

.stats-card .stats-label {
    color: var(--secondary-color);
    font-size: 0.9rem;
}

/* Admin Panels */
.admin-sidebar {
    background-color: var(--light-color);
    border-radius: 0.5rem;
    padding: 1.25rem;
}

.admin-sidebar .nav-link {
    color: var(--dark-color);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

.admin-sidebar .nav-link:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.admin-sidebar .nav-link.active {
    background-color: var(--primary-color);
    color: #fff;
}

/* Form Styling */
.form-label {
    font-weight: 500;
}

.required-field::after {
    content: "*";
    color: var(--danger-color);
    margin-left: 4px;
}

/* Responsive Tables */
.table-responsive {
    overflow-x: auto;
}

/* Custom Badge Colors */
.badge.bg-draft {
    background-color: var(--secondary-color);
}

.badge.bg-published {
    background-color: var(--success-color);
}

.badge.bg-archived {
    background-color: var(--warning-color);
}

/* Media Items */
.media-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 0.25rem;
}

/* Search Results */
.search-highlight {
    background-color: rgba(255, 193, 7, 0.3);
    padding: 0.1rem 0.2rem;
    border-radius: 0.25rem;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stats-card {
        margin-bottom: 1rem;
    }
    
    .admin-sidebar {
        margin-bottom: 1.5rem;
    }
}
