/**
 * PO Tracking System - Custom Styles
 */

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 14px;
}

/* Main Content Area */
main {
    padding-top: 48px;
}

/* Cards */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
}

.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 0, 0, 0.125);
}

/* Tables */
.table {
    font-size: 0.9rem;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

/* Badges */
.badge {
    font-weight: 500;
    padding: 0.35em 0.65em;
}

/* Forms */
.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.form-control:focus,
.form-select:focus {
    border-color: #80bdff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Product Items */
.product-item {
    background-color: #f8f9fa;
    position: relative;
}

.product-item:hover {
    background-color: #e9ecef;
}

/* Buttons */
.btn {
    font-weight: 500;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Alerts */
.alert {
    border-left: 4px solid;
}

.alert-success {
    border-left-color: #28a745;
}

.alert-danger {
    border-left-color: #dc3545;
}

.alert-warning {
    border-left-color: #ffc107;
}

.alert-info {
    border-left-color: #17a2b8;
}

/* Navbar */
.navbar-brand {
    font-weight: 700;
    font-size: 1.25rem;
}

/* Sidebar */
.sidebar {
    background-color: #f8f9fa;
}

.sidebar .nav-link {
    padding: 0.75rem 1rem;
    color: #333;
    transition: all 0.2s;
}

.sidebar .nav-link:hover {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
}

.sidebar .nav-link.active {
    background-color: rgba(0, 123, 255, 0.1);
    color: #007bff;
    border-left: 3px solid #007bff;
}

.sidebar .nav-link i {
    width: 20px;
    text-align: center;
}

/* Dashboard Stats Cards */
.card.text-white h2 {
    font-size: 2.5rem;
    font-weight: 700;
}

.card.text-white h6 {
    font-size: 0.75rem;
    opacity: 0.9;
}

/* Login Page */
.min-vh-100 {
    min-height: 100vh;
}

/* Responsive */
@media (max-width: 767.98px) {
    .sidebar {
        position: relative;
        top: 0;
    }
    
    main {
        padding-top: 1rem;
    }
}

/* Print Styles */
@media print {
    .sidebar,
    .navbar,
    .btn,
    .no-print {
        display: none !important;
    }
    
    main {
        margin: 0 !important;
        padding: 0 !important;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
}

/* Loading Spinner */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

/* Custom Utilities */
.text-truncate-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.cursor-pointer {
    cursor: pointer;
}

/* Status Colors */
.status-pending {
    color: #ffc107;
}

.status-approved {
    color: #28a745;
}

.status-denied {
    color: #dc3545;
}

.status-completed {
    color: #17a2b8;
}

/* File Upload */
.form-control[type="file"] {
    padding: 0.375rem 0.75rem;
}

/* Modal */
.modal-header.bg-danger .btn-close-white {
    filter: brightness(0) invert(1);
}

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

/* Border Utilities */
.border-bottom-2 {
    border-bottom: 2px solid #dee2e6 !important;
}

/* Spacing */
.section-spacing {
    margin-bottom: 2rem;
}

/* Hover Effects */
.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: box-shadow 0.3s ease-in-out;
}

/* Custom Scrollbar */
.custom-scrollbar::-webkit-scrollbar {
    width: 8px;
}

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

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

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