/* Auction Web Application Styles */

:root {
    --primary-color: #0d6efd;
    --success-color: #198754;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #212529;
    --light-bg: #f8f9fa;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

.auth-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.sticky-top {
    position: sticky;
    z-index: 1020;
}

.chat-messages {
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect fill="%23f0f0f0" width="100" height="100"/><path d="M0 0L50 50M50 50L100 0M0 100L50 50M50 50L100 100" stroke="%23e0e0e0" stroke-width="1"/></svg>');
    background-size: 50px 50px;
}

.message-item {
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.message-bubble {
    word-wrap: break-word;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.lot-card {
    transition: all 0.3s ease;
    cursor: pointer;
}

.lot-card:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.lot-card img {
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}

.card {
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

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

.table {
    background-color: white;
}

.table-hover tbody tr:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

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

.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.nav-tabs .nav-link {
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
}

.nav-tabs .nav-link.active {
    border-bottom-color: var(--primary-color);
    color: var(--primary-color);
    background-color: transparent;
}

.input-group-text {
    background-color: var(--light-bg);
    border-right: none;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    box-shadow: none;
    border-color: #ced4da;
}

.chat-card {
    height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
}

.chat-card .card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

@media (max-width: 768px) {
    .chat-messages {
        height: 50vh !important;
    }
    
    .lot-card {
        margin-bottom: 1rem;
    }
    
    .message-bubble {
        font-size: 0.9rem;
    }
    
    h1, h2, h3, h4 {
        font-size: 1.3rem;
    }
    
    .sticky-top {
        position: relative !important;
    }
}

@media (max-width: 576px) {
    .card {
        margin-bottom: 1rem;
    }
    
    .table {
        font-size: 0.85rem;
    }
    
    .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

.invoice-header {
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}

.invoice-details {
    background-color: var(--light-bg);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.invoice-table th {
    background-color: var(--primary-color);
    color: white;
}

.invoice-total {
    background-color: var(--success-color);
    color: white;
    padding: 1rem;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: bold;
}

.payment-screenshot {
    max-width: 100%;
    max-height: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.alert {
    border-radius: 8px;
    border: none;
}

.modal-content {
    border-radius: 12px;
    border: none;
}

.modal-header {
    border-bottom: 2px solid var(--light-bg);
}

.modal-footer {
    border-top: 2px solid var(--light-bg);
}

.list-group-item {
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.list-group-item-action:hover {
    background-color: rgba(0, 123, 255, 0.05);
}

.navbar-dark {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.opacity-50 {
    opacity: 0.5;
}

.current-bid, .highest-bidder {
    transition: all 0.3s ease;
}

.bid-update {
    animation: highlight 0.5s ease;
}

@keyframes highlight {
    0%, 100% {
        background-color: transparent;
    }
    50% {
        background-color: rgba(255, 193, 7, 0.3);
    }
}


/* Footer layout fixes */
html,body{height:100%;}
body{min-height:100vh; display:flex; flex-direction:column;}
body > nav{flex-shrink:0;}
body > footer{flex-shrink:0;}
body > .container, body > .container-fluid{flex:1 0 auto;}
.ab-footer{margin-top:auto;}

/* Mobile navbar improvements */
@media (max-width: 768px){
  .navbar .navbar-nav{flex-direction:row;flex-wrap:wrap;gap:4px;}
  .navbar .navbar-nav .nav-link{padding:.4rem .6rem;font-size:0.95rem;}
}

@media (max-width: 576px){
  .navbar-brand{font-size:0.95rem;}
  .navbar .navbar-nav .nav-link{padding:.35rem .5rem;font-size:0;line-height:1;}
  .navbar .navbar-nav .nav-link i{font-size:1rem;margin-right:0 !important;}
  .navbar .navbar-nav .nav-link.active{border-radius:.5rem;}
  .navbar .dropdown-toggle{font-size:0.9rem;}
}
