/* Custom styles for Miner Hardware Invoicing System */

/* Sidebar styling */
.sidebar {
    min-height: 100vh;
    box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
}

.sidebar .nav-link {
    color: #fff;
    padding: 0.75rem 1rem;
    border-left: 4px solid transparent;
}

.sidebar .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-left-color: rgba(255, 255, 255, 0.5);
}

.sidebar .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left-color: #fff;
}

/* Stats cards */
.stat-card {
    cursor: pointer;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.stat-icon {
    opacity: 0.7;
}

/* Invoice items table */
.items-table tr:last-child {
    border-bottom: 2px solid #dee2e6;
}

/* File upload styling */
.file-upload {
    border: 2px dashed #dee2e6;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.3s;
}

.file-upload:hover {
    border-color: #007bff;
}

.file-upload i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 10px;
}

/* Thumbnail preview */
.thumbnail-container {
    position: relative;
    display: inline-block;
    margin: 5px;
}

.thumbnail-container img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
}

.thumbnail-remove {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #dc3545;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    text-align: center;
    line-height: 24px;
    cursor: pointer;
}

/* Print styles for invoices */
@media print {
    .sidebar, .navbar, .btn-group, .btn {
        display: none !important;
    }
    
    .container-fluid, .col-md-9 {
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        border: none !important;
        box-shadow: none !important;
    }
}

/* Responsive adjustments */
@media (max-width: 767.98px) {
    .sidebar {
        position: fixed;
        top: 0;
        bottom: 0;
        left: 0;
        z-index: 100;
        padding: 48px 0 0;
        box-shadow: inset -1px 0 0 rgba(0, 0, 0, .1);
    }
}


img.img-responsive {
    width: 100%;
}

button.btn-primary {
    background-color: #f8c810 !important;
    border-color: #f8c810 !important;
}