/* 
 * LPLA Media - Custom CSS
 */

:root {
    --primary-color: #4e73df;
    --success-color: #1cc88a;
    --info-color: #36b9cc;
    --warning-color: #f6c23e;
    --danger-color: #e74a3b;
    --secondary-color: #858796;
    --light-color: #f8f9fc;
    --dark-color: #5a5c69;
}

/* General Styles */
body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #333;
    line-height: 1.6;
}

.border-left-primary {
    border-left: 0.25rem solid var(--primary-color) !important;
}

.border-left-success {
    border-left: 0.25rem solid var(--success-color) !important;
}

.border-left-info {
    border-left: 0.25rem solid var(--info-color) !important;
}

.border-left-warning {
    border-left: 0.25rem solid var(--warning-color) !important;
}

.border-left-danger {
    border-left: 0.25rem solid var(--danger-color) !important;
}

.chart-area {
    position: relative;
    height: 20rem;
    width: 100%;
}

.chart-pie {
    position: relative;
    height: 20rem;
    width: 100%;
}

/* Card styles */
.card {
    transition: all 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

.card-header {
    background-color: #fff;
    border-bottom: 1px solid rgba(0,0,0,.125);
}

/* Button styles */
.btn {
    font-weight: 600;
    border-radius: 0.35rem;
    padding: 0.375rem 1rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* QR Code Container */
.qr-container {
    background-color: #fff;
    padding: 1rem;
    border-radius: 0.5rem;
    max-width: 300px;
    margin: 0 auto;
}

/* Dashboard Icons */
.text-gray-300 {
    color: #dddfeb !important;
}

/* Form Styles */
.form-control:focus {
    border-color: #bac8f3;
    box-shadow: 0 0 0 0.25rem rgba(78, 115, 223, 0.25);
}

/* Footer styles */
footer {
    margin-top: 2rem;
}

footer a {
    text-decoration: none;
    transition: all 0.3s ease;
}

footer a:hover {
    opacity: 0.8;
}

/* Hero Section */
.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Responsive Typography */
@media (max-width: 768px) {
    h1, .h1 {
        font-size: 2rem;
    }
    h2, .h2 {
        font-size: 1.75rem;
    }
    .lead {
        font-size: 1.1rem;
    }
}

/* Utility Classes */
.shadow-hover:hover {
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15)!important;
}

/* Custom Badge Colors */
.badge.bg-primary {
    background-color: var(--primary-color) !important;
}

.badge.bg-success {
    background-color: var(--success-color) !important;
}

.badge.bg-info {
    background-color: var(--info-color) !important;
}

.badge.bg-warning {
    background-color: var(--warning-color) !important;
}

.badge.bg-danger {
    background-color: var(--danger-color) !important;
}

/* User Profile Card */
.img-profile {
    height: 100px;
    width: 100px;
    object-fit: cover;
}

/* Progress Bar Styles */
.progress {
    height: 0.5rem;
    border-radius: 0.25rem;
}

/* Tooltip Styles */
.tooltip {
    font-size: 0.8rem;
}

/* QR Code Pages */
.qr-preview img {
    max-width: 100%;
    height: auto;
}

/* Animation for alerts */
.alert {
    animation: fadeIn 0.5s;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    body {
        padding: 0 !important;
        margin: 0 !important;
    }
    
    .container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 !important;
        margin: 0 !important;
    }
}

/* Tables */
.table th {
    font-weight: 600;
    background-color: rgba(78, 115, 223, 0.05);
}

/* Campaign cards */
.campaign-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.campaign-card .card-body {
    flex: 1;
}

/* Date inputs */
input[type="date"] {
    min-height: 38px;
}

/* Dropdown menu */
.dropdown-menu {
    border: none;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item:hover {
    background-color: rgba(78, 115, 223, 0.1);
}

/* Login and Register Pages */
.auth-card {
    max-width: 500px;
    margin: 3rem auto;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}