/* Custom styles for Quoting Genie */

/* Import fonts to match Netstreet website */
@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand colors */
    --primary: #0065e1;
    --secondary: #2f4858;
    --tertiary: #002369;
    --light: #f8f9fa;
    --dark: #212529;
    
    /* Font families to match Netstreet website */
    --primary-font: 'Helvetica', Arial, sans-serif;
    --heading-font: 'Inter Tight', sans-serif;
    --success: #1cc88a;
    --info: #36b9cc;
    --warning: #f6c23e;
    --danger: #e74a3b;
    --border-radius: 0.5rem;
    --box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

/* Apply fonts to elements */
body {
    font-family: var(--primary-font);
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
    font-family: var(--heading-font);
    font-weight: 600;
}

.navbar-brand {
    font-family: var(--heading-font);
    font-weight: 700;
}

.btn {
    font-family: var(--heading-font);
    font-weight: 500;
}

/* Dashboard card customizations */
.border-left-primary {
    border-left: 4px solid var(--primary) !important;
}

.border-left-success {
    border-left: 4px solid var(--success) !important;
}

.border-left-info {
    border-left: 4px solid var(--info) !important;
}

.border-left-warning {
    border-left: 4px solid var(--warning) !important;
}

.border-left-danger {
    border-left: 4px solid var(--danger) !important;
}

.border-left-secondary {
    border-left: 4px solid var(--secondary) !important;
}

.border-left-tertiary {
    border-left: 4px solid var(--tertiary) !important;
}

.text-xs {
    font-size: 0.7rem;
}

.text-gray-300 {
    color: #dddfeb !important;
}

.text-gray-800 {
    color: #5a5c69 !important;
}

.font-weight-bold {
    font-weight: 700 !important;
}

/* Card styles */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;
    background-color: #fff;
    background-clip: border-box;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    transition: var(--transition);
}

.card-header {
    padding: 1rem 1.5rem;
    margin-bottom: 0;
    background-color: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    font-family: var(--heading-font);
    font-weight: 600;
}

.card-body {
    flex: 1 1 auto;
    min-height: 1px;
    padding: 1.25rem;
}

/* Form customizations */
.required-field::after {
    content: " *";
    color: #e74a3b;
}

body {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #444;
    text-align: left;
    background-color: #f8f9fc;
}

.form-control {
    display: block;
    width: 100%;
    height: calc(1.5em + 0.75rem + 2px);
    padding: 0.5rem 1rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #444;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--border-radius);
    transition: var(--transition);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0, 101, 225, 0.25);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    display: none;
    float: left;
    min-width: 10rem;
    padding: 0.75rem 0;
    margin: 0.5rem 0 0;
    font-size: 0.95rem;
    color: #444;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: none;
    border-radius: var(--border-radius);
    box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.5rem 1.5rem;
    clear: both;
    font-family: var(--primary-font);
    font-weight: 400;
    color: #444;
    text-align: inherit;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: var(--transition);
}

.dropdown-item:hover {
    background-color: rgba(0, 101, 225, 0.05);
    color: var(--primary);
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.9);
    font-family: var(--heading-font);
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: var(--transition);
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius);
}

/* Table customizations */
.table-actions {
    white-space: nowrap;
    width: 1%;
}

.table th, .table td {
    padding: 1rem;
    vertical-align: middle;
    border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.table thead th {
    background-color: rgba(0, 0, 0, 0.02);
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    font-family: var(--heading-font);
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.5em 0.75em;
    font-size: 75%;
    font-family: var(--heading-font);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    vertical-align: baseline;
    border-radius: 50rem;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.badge-draft {
    color: #fff;
    background-color: #6c757d;
}

.badge-sent {
    color: #fff;
    background-color: #4e73df;
}

.badge-approved {
    color: #fff;
    background-color: #1cc88a;
}

.badge-declined {
    color: #fff;
    background-color: #e74a3b;
}

.badge-unpaid {
    color: #fff;
    background-color: #f6c23e;
}

.badge-paid {
    color: #fff;
    background-color: #1cc88a;
}

.badge-overdue {
    color: #fff;
    background-color: #e74a3b;
}

.badge-canceled {
    color: #fff;
    background-color: #6c757d;
}

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

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

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

.btn-secondary {
    color: #fff;
    background-color: var(--secondary);
    border-color: var(--secondary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
}

.btn-primary {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--border-radius);
    transition: var(--transition);
    font-weight: 500;
    padding: 0.5rem 1.25rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background-color: var(--tertiary);
    border-color: var(--tertiary);
    transform: translateY(-1px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
}

/* Sidebar customizations */
.sidebar .nav-link.active {
    font-family: var(--heading-font);
    font-weight: 600;
    background-color: rgba(0, 101, 225, 0.1);
    border-left: 3px solid var(--primary);
}

.sidebar .nav-link:hover {
    color: #4e73df;
}

/* Sticky footer styles */
footer.footer {
    background-color: #2f4858;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    color: white;
}

/* Print styles for invoices and quotes */
@media print {
    .no-print {
        display: none !important;
    }
    
    .print-only {
        display: block !important;
    }
    
    .container {
        width: 100%;
        max-width: 100%;
    }
}

/* Custom styling for quotes and invoices */
.signature-area {
    border-top: 1px solid #dee2e6;
    padding-top: 10px;
    margin-top: 30px;
}

.company-logo {
    max-height: 70px;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.1));
}

.quote-header, .invoice-header {
    border-bottom: 2px solid rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    padding-bottom: 15px;
    padding-top: 10px;
}

/* Dashboard action buttons */
.dashboard-action-btn {
    min-width: 120px;
    padding: 0.5rem 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--heading-font);
    font-weight: 500;
    border-radius: var(--border-radius);
}

.dashboard-action-btn i {
    font-size: 0.85rem;
}
