/* Custom styles for Godwin Computers POS */

/* Global Styles */
body {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333;
    min-height: 100vh;
}

/* Enhanced Navbar */
.navbar {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.navbar-brand {
    font-weight: bold;
    color: #ffffff !important;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.nav-link {
    color: #ffffff !important;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: #ffffff !important;
    transform: translateY(-1px);
    opacity: 0.8;
}

/* Enhanced Buttons */
.btn {
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-primary {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: #ffffff;
}

.btn-success {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: #ffffff;
}

.btn-warning {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: #ffffff;
}

.btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    border: none;
    color: #ffffff;
}

.btn-info {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border: none;
    color: #ffffff;
}

/* Enhanced Cards */
.card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    font-weight: bold;
    border-bottom: none;
    padding: 1.5rem;
}

.card-body {
    background-color: white;
    padding: 2rem;
}

/* Enhanced Tables */
.table {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.table th {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem;
}

.table td {
    padding: 1rem;
    border: none;
    border-bottom: 1px solid #f1f3f4;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
    transform: scale(1.01);
    transition: all 0.2s ease;
}

/* Enhanced Alerts */
.alert {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.alert-success {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
}

.alert-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
}

.alert-warning {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
}

.alert-info {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
}

/* Enhanced Form Elements */
.form-control, .form-select {
    border-radius: 8px;
    border: 2px solid #e9ecef;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.form-control:focus, .form-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
    transform: translateY(-1px);
}

/* Page-specific backgrounds */
body.inventory-page {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

/* Enhanced Footer */
footer {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    margin-top: 3rem;
}

/* Loading Animation */
@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .container {
        padding-left: 15px;
        padding-right: 15px;
    }

    .card {
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .card-body {
        padding: 1.5rem;
    }

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

    .table th, .table td {
        padding: 0.75rem 0.5rem;
        font-size: 0.9rem;
    }
}

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

::-webkit-scrollbar-track {
    background: #ffffff;
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

/* Professional Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    color: #333333;
    margin-bottom: 1rem;
}

h1 {
    font-size: 2.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

h2 {
    font-size: 2rem;
    color: #007bff;
}

h3 {
    font-size: 1.75rem;
}

p {
    margin-bottom: 1rem;
    color: #666666;
}

/* Professional Form Styling */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.input-group {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
}

.input-group-text {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
}

/* Professional Badge Styling */
.badge {
    font-weight: 600;
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
}

/* Professional Progress Bars */
.progress {
    height: 8px;
    border-radius: 4px;
    background-color: #e9ecef;
    overflow: hidden;
}

.progress-bar {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    transition: width 0.3s ease;
}

/* Professional Modal Styling */
.modal-content {
    border-radius: 15px;
    border: none;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

.modal-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 15px 15px 0 0;
    border-bottom: none;
    padding: 1.5rem;
}

.modal-body {
    padding: 2rem;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    padding: 1.5rem;
}

/* Professional Dropdown Styling */
.dropdown-menu {
    border-radius: 10px;
    border: none;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 0;
}

.dropdown-item {
    padding: 0.75rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

/* Professional List Group */
.list-group-item {
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.list-group-item:hover {
    background-color: #f8f9fa;
    transform: translateX(5px);
}

/* Professional Breadcrumb */
.breadcrumb {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 8px;
    padding: 0.75rem 1rem;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Professional Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #007bff;
    border-color: #007bff;
    border-radius: 6px !important;
    margin: 0 2px;
    transition: all 0.2s ease;
}

.page-link:hover {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
}

.page-item.active .page-link {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    border-color: #007bff;
}

/* Professional Tooltip */
.tooltip-inner {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 6px;
    font-size: 0.875rem;
}

.tooltip.bs-tooltip-top .arrow::before {
    border-top-color: #007bff;
}

/* Professional Toast Notifications */
.toast {
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border: none;
}

.toast-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-radius: 10px 10px 0 0;
    border-bottom: none;
}

/* Professional Loading Spinner */
.spinner-border {
    color: #007bff;
    width: 3rem;
    height: 3rem;
}

/* Professional Checkboxes and Radios */
.form-check-input:checked {
    background-color: #007bff;
    border-color: #007bff;
}

.form-check-input:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Professional Focus States */
.btn:focus,
.form-control:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

/* Professional Hover Effects */
.card:hover .card-header {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
}

.table-hover tbody tr:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

/* Professional Spacing Utilities */
.py-5 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
}

.px-5 {
    padding-left: 3rem !important;
    padding-right: 3rem !important;
}

.my-5 {
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
}

.mx-5 {
    margin-left: 3rem !important;
    margin-right: 3rem !important;
}

/* Professional Text Utilities */
.text-primary-custom {
    color: #007bff !important;
}

.text-secondary-custom {
    color: #666666 !important;
}

.bg-primary-custom {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%) !important;
}

.bg-light-custom {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
}

/* Professional Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Professional Shadow Utilities */
.shadow-sm-custom {
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05) !important;
}

.shadow-md-custom {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1) !important;
}

.shadow-lg-custom {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15) !important;
}

/* Professional Border Radius */
.border-radius-sm {
    border-radius: 6px !important;
}

.border-radius-md {
    border-radius: 10px !important;
}

.border-radius-lg {
    border-radius: 15px !important;
}

/* Professional Responsive Images */
.img-fluid {
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Professional Code Blocks */
code {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    color: #007bff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875em;
}

/* Professional Blockquotes */
blockquote {
    border-left: 4px solid #007bff;
    padding-left: 1rem;
    color: #666666;
    font-style: italic;
}

/* Professional Horizontal Rules */
hr {
    border: 0;
    height: 2px;
    background: linear-gradient(90deg, #007bff 0%, #ffffff 100%);
    margin: 2rem 0;
}

/* Professional Print Styles */
@media print {
    body {
        background: white !important;
    }

    .navbar,
    .btn,
    footer {
        display: none !important;
    }

    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}
