/* Tender.sale - External Stylesheet */

:root {
    --tender-purple: #550076;
    --tender-light-purple: #e2d9f3;
    --tender-dark: #3d0055;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 0;
}

/* Ensure main content doesn't overlap with header */
main, .main-content {
    position: relative;
    z-index: 1;
}


.header-section {
    background: var(--tender-purple);
    padding: 0 0 50px 0;
    color: white;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    letter-spacing: 2px;
}

.search-container {
    max-width: 800px;
    margin: 0 auto;
}

.search-bar {
    background: white;
    border-radius: 2px;
    padding: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    max-width: 600px;
    margin: 0 auto;
}

.search-input {
    border: none;
    outline: none;
    padding: 12px 20px;
    font-size: 1rem;
    flex: 1;
}

.search-input::placeholder {
    color: #6c757d;
}

.category-select {
    border: none;
    outline: none;
    padding: 12px 15px;
    background: #f8f9fa;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
    color: #495057;
    min-width: 120px;
}

.search-btn {
    background: var(--tender-purple);
    border: none;
    color: white;
    padding: 12px 25px;
    border-radius: 2px;
    font-weight: bold;
    margin-left: 10px;
}

.create-account-btn {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    color: white;
    padding: 10px 20px;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 5px;
    margin-bottom: 0;
}

.create-account-btn:hover {
    background: rgba(255,255,255,0.3);
    color: white;
}

.categories-section {
    background: transparent;
    padding: 30px 0;
    position: relative;
    z-index: 10;
    margin-top: -150px;
}

.categories-section .container {
    background: white;
    border-radius: 2px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    padding: 30px 20px;
}

.categories-section .row {
    justify-content: center;
}

.category-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.category-item {
    text-align: center;
    padding: 20px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.category-item:hover {
    transform: translateY(-2px);
}

.category-item.active {
    color: var(--tender-purple);
}

.category-item.active .category-icon {
    background: transparent;
    color: var(--tender-purple);
    position: relative;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 10px;
    transition: all 0.3s ease;
    position: relative;
}

.category-icon-img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    object-position: center;
    transition: all 0.3s ease;
    max-width: 70px;
    max-height: 70px;
    display: block;
    margin: 0 auto;
    position: relative;
}

.category-item.active .category-icon-img {
    box-shadow: inset 0 0 0 1000px rgba(85, 0, 118, 0.35);
    border-radius: 8px;
}

.category-item:hover .category-icon-img {
    transform: scale(1.1);
}

.category-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: #6c757d;
}

.category-item.active .category-label {
    color: var(--tender-purple);
}

.category-underline {
    width: 0;
    height: 2px;
    background: var(--tender-purple);
    margin: 0 auto;
    transition: width 0.3s ease;
}

.category-item.active .category-underline {
    width: 40px;
}

.trending-section {
    background: white;
    padding: 80px 0 40px 0;
    margin-top: -30px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.see-all-link {
    color: var(--tender-purple);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.see-all-link:hover {
    color: var(--tender-dark);
}

.product-card {
    background: white;
    border-radius: 2px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    height: 100%;
    min-height: 350px;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.product-image {
    width: 100%;
    height: 220px;
    border-radius: 2px;
    margin-bottom: 15px;
    background: #f8f9fa;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Category-specific image heights */
.product-image-smartphone {
    height: 280px; /* Taller for smartphone images */
}

.product-image-tablet {
    height: 180px; /* Shorter for wide tablet images */
}

.product-image-laptop,
.product-image-desktop {
    height: 200px; /* Medium height for laptop/desktop images */
}

.product-image-accessories {
    height: 220px; /* Square height for printer/accessory images */
}

/* Detail page specific heights */
.product-image.detail-page.product-image-smartphone {
    height: 400px; /* Larger for detail page */
}

.product-image.detail-page.product-image-tablet {
    height: 250px; /* Larger for detail page */
}

.product-image.detail-page.product-image-laptop,
.product-image.detail-page.product-image-desktop {
    height: 300px; /* Larger for detail page */
}

.product-image.detail-page.product-image-accessories {
    height: 350px; /* Larger for detail page */
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 2px;
}

/* Product Detail Page Styling */
.product-image-gallery {
    position: sticky;
    top: 20px;
}

.main-image {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.thumbnail-images {
    margin-top: 15px;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--tender-purple);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
    line-height: 1.2;
}

.product-brand {
    font-size: 1.1rem;
    font-weight: 500;
}

.product-reviews .stars {
    font-size: 1rem;
}

.price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.price-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 5px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--tender-purple);
}

.price-note {
    margin-top: 8px;
    font-style: italic;
}

.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.feature-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.feature-list li:last-child {
    border-bottom: none;
}

.product-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e9ecef;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #6c757d;
}

.info-value {
    font-weight: 600;
    color: #333;
}

.action-section .btn {
    padding: 15px 25px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.breadcrumb {
    background: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: #6c757d;
}

.breadcrumb-item a {
    color: var(--tender-purple);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

.product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 10px;
}

.product-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.3;
    flex-grow: 1;
}

.product-colors {
    font-size: 0.8rem;
    color: var(--tender-purple);
    font-weight: 600;
    margin-top: auto;
}

/* Mobile Responsive Design */
@media (max-width: 768px) {
    .header-section {
        padding: 40px 0 120px 0;
    }
    
    .logo {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }
    
    .search-bar {
        flex-direction: column;
        gap: 10px;
        padding: 15px;
    }
    
    .search-input {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .category-select {
        width: 100%;
        border-left: none;
        border-right: none;
        border-top: 1px solid #e9ecef;
        border-bottom: 1px solid #e9ecef;
        margin-bottom: 10px;
    }
    
    .search-btn {
        width: 100%;
        margin-left: 0;
    }
    
    .categories-section {
        margin-top: -100px;
    }
    
    .categories-section .container {
        padding: 20px 15px;
    }
    
    .category-item {
        padding: 15px 5px;
    }
    
    .category-icon {
        width: 50px;
        height: 50px;
    }
    
    .category-icon-img {
        width: 50px;
        height: 50px;
    }
    
    .category-label {
        font-size: 0.8rem;
    }
    
    .section-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .product-card {
        padding: 15px;
        min-height: 320px;
    }
    
    .product-image {
        height: 180px;
    }
    
    .product-image img {
        height: 100%;
    }
    
    .product-title {
        font-size: 0.85rem;
    }
    
    .product-colors {
        font-size: 0.75rem;
    }
}

/* Tablet Responsive Design */
@media (min-width: 769px) and (max-width: 1024px) {
    .header-section {
        padding: 100px 0 140px 0;
    }
    
    .logo {
        font-size: 2.8rem;
        margin-bottom: 35px;
    }
    
    .search-bar {
        max-width: 500px;
    }
    
    .categories-section {
        margin-top: -120px;
    }
    
    .categories-section .container {
        padding: 25px 20px;
    }
    
    .category-icon-img {
        width: 55px;
        height: 55px;
    }
    
    .section-title {
        font-size: 1.4rem;
    }
    
    .product-image {
        height: 200px;
    }
    
    .product-image-smartphone {
        height: 250px; /* Taller for smartphone images */
    }
    
    .product-image-tablet {
        height: 160px; /* Shorter for wide tablet images */
    }
    
    .product-image-laptop,
    .product-image-desktop {
        height: 180px; /* Medium height for laptop/desktop images */
    }
    
    .product-image-accessories {
        height: 200px; /* Square height for printer/accessory images */
    }
    
    .product-image img {
        height: 100%;
    }
}

/* Large Desktop Optimizations */
@media (min-width: 1200px) {
    .header-section {
        padding: 50px 0 200px 0;
    }
    
    .logo {
        font-size: 3.5rem;
    }
    
    .search-bar {
        max-width: 700px;
    }
    
    .categories-section {
        margin-top: -180px;
    }
    
    .category-icon-img {
        width: 65px;
        height: 65px;
    }
    
    .section-title {
        font-size: 1.8rem;
    }
    
    .product-image {
        height: 240px;
    }
    
    .product-image-smartphone {
        height: 300px; /* Taller for smartphone images */
    }
    
    .product-image-tablet {
        height: 200px; /* Shorter for wide tablet images */
    }
    
    .product-image-laptop,
    .product-image-desktop {
        height: 220px; /* Medium height for laptop/desktop images */
    }
    
    .product-image-accessories {
        height: 240px; /* Square height for printer/accessory images */
    }
    
    .product-image img {
        height: 100%;
    }
}

/* Extra Small Mobile Devices */
@media (max-width: 480px) {
    .header-section {
        padding: 30px 0 100px 0;
    }
    
    .logo {
        font-size: 2rem;
        margin-bottom: 25px;
    }
    
    .create-account-btn {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
    
    .categories-section {
        margin-top: -80px;
    }
    
    .categories-section .container {
        padding: 15px 10px;
    }
    
    .category-item {
        padding: 10px 3px;
    }
    
    .category-icon {
        width: 45px;
        height: 45px;
    }
    
    .category-icon-img {
        width: 45px;
        height: 45px;
    }
    
    .category-label {
        font-size: 0.75rem;
    }
    
    .trending-section {
        padding: 60px 0 30px 0;
    }
    
    .section-title {
        font-size: 1.2rem;
    }
    
    .product-card {
        padding: 12px;
        min-height: 280px;
    }
    
    .product-image {
        height: 140px;
    }
    
    .product-image img {
        height: 100%;
    }
    
    .product-title {
        font-size: 0.8rem;
    }
    
    .product-colors {
        font-size: 0.7rem;
    }
}

/* Footer Styles */
.footer {
    background: linear-gradient(135deg, var(--tender-purple) 0%, var(--tender-dark) 100%);
    color: white;
    padding: 60px 0 30px 0;
    margin-top: 50px;
}

.footer-logo {
    font-size: 2rem;
    font-weight: bold;
    color: white;
    margin-bottom: 20px;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.footer-description {
    color: rgba(255,255,255,0.9);
    line-height: 1.6;
    margin-bottom: 0;
}

.footer-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin-bottom: 20px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: white;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.footer-divider {
    border-color: rgba(255,255,255,0.2);
    margin: 40px 0 30px 0;
}

.footer-copyright {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    margin: 0;
}

.footer-social {
    display: flex;
    gap: 15px;
    justify-content: flex-start;
    margin-top: 20px;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
    border: 1px solid rgba(255,255,255,0.2);
}

.social-link:hover {
    background: rgba(255,255,255,0.2);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

/* Footer Responsive */
@media (max-width: 768px) {
    .footer {
        padding: 40px 0 20px 0;
        margin-top: 30px;
    }
    
    .footer-logo {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }
    
    .footer-title {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    
    .footer-links a {
        font-size: 0.85rem;
    }
    
    .footer-social {
        justify-content: center;
        margin-top: 20px;
    }
    
    .footer-copyright {
        text-align: center;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    .footer {
        padding: 30px 0 15px 0;
    }
    
    .footer-logo {
        font-size: 1.5rem;
    }
    
    .social-link {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Buyer Profile Page Styles */
.bg-tender-purple {
    background-color: var(--tender-purple) !important;
}

.text-tender-purple {
    color: var(--tender-purple) !important;
}

.btn-tender-purple {
    background-color: var(--tender-purple);
    border-color: var(--tender-purple);
    color: white;
    border-radius: 2px;
}

.btn-tender-purple:hover {
    background-color: var(--tender-dark);
    border-color: var(--tender-dark);
    color: white;
}

.btn-outline-tender-purple {
    border-color: var(--tender-purple);
    color: var(--tender-purple);
    border-radius: 2px;
}

.btn-outline-tender-purple:hover {
    background-color: var(--tender-purple);
    border-color: var(--tender-purple);
    color: white;
}

.navbar-brand {
    font-size: 2rem;
    font-weight: bold;
}

.sidebar {
    min-height: calc(100vh - 76px);
    background: #f8f9fa;
}

.sidebar .nav-link {
    color: #6c757d;
    padding: 12px 20px;
    border-radius: 8px;
    margin-bottom: 5px;
}

.sidebar .nav-link.active {
    background-color: var(--tender-purple);
    color: white;
}

.sidebar .nav-link:hover {
    background-color: var(--tender-light-purple);
    color: var(--tender-purple);
}

.profile-card {
    background: white;
    border-radius: 2px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.address-card {
    background: white;
    border-radius: 2px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.address-item {
    border: 1px solid #e9ecef;
    border-radius: 2px;
    padding: 20px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

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

.default-badge {
    background: #fd7e14;
    color: white;
    padding: 4px 12px;
    border-radius: 2px;
    font-size: 0.7rem;
    font-weight: bold;
}

.profile-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.profile-avatar:hover {
    transform: scale(1.05);
}

.form-control {
    border-radius: 2px;
}

.form-control:focus {
    border-color: var(--tender-purple);
    box-shadow: 0 0 0 0.2rem rgba(85, 0, 118, 0.25);
}

.input-group-text {
    border-radius: 2px 0 0 2px;
}

.input-group .form-control:not(:first-child) {
    border-radius: 0 2px 2px 0;
}

.input-group .btn:not(:first-child) {
    border-radius: 0 2px 2px 0;
}

.form-select {
    border-radius: 2px;
}

.dropdown-toggle {
    border-radius: 2px;
}

.modal-content {
    border-radius: 2px;
}

.btn {
    border-radius: 2px;
}

.address-row {
    border-bottom: 1px solid #e9ecef;
}

.address-row:last-child {
    border-bottom: none;
}

.address-row td {
    padding: 20px 0;
    vertical-align: middle;
}

.address-table {
    table-layout: fixed;
    width: 100%;
}

.address-table th,
.address-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.address-table td:nth-child(2) {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-table td:nth-child(2):hover {
    white-space: normal;
    overflow: visible;
    max-width: none;
    position: relative;
    z-index: 1;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 2px;
    padding: 10px;
}

.nav-pills .nav-link.active {
    background-color: transparent;
    color: var(--tender-purple);
    border-bottom: 2px solid var(--tender-purple);
    border-radius: 0;
}

.nav-pills .nav-link {
    border-radius: 0;
    background-color: transparent;
}

/* Action Buttons Styling */
.address-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.address-actions .btn-link {
    padding: 0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
}

.address-actions .btn-link.text-danger {
    color: #dc3545 !important;
}

.address-actions .btn-link.text-primary {
    color: #0d6efd !important;
}

.address-actions .btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 1px;
    font-weight: 500;
}

.address-actions .btn-secondary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.address-actions .btn-secondary:disabled {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    opacity: 0.65;
}

/* Buyer Dashboard / Live Auction Styles */
.active-link {
    border-bottom: 2px solid var(--tender-purple) !important;
}

.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 2px;
}

.table th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 15px 12px;
}

.table td {
    padding: 15px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
}

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

.badge {
    border-radius: 2px;
    font-size: 0.75rem;
    padding: 4px 8px;
}

.pagination .page-link {
    border-radius: 2px;
    border-color: #dee2e6;
    color: var(--tender-purple);
}

.pagination .page-item.active .page-link {
    background-color: var(--tender-purple);
    border-color: var(--tender-purple);
}

.pagination .page-link:hover {
    background-color: var(--tender-light-purple);
    border-color: var(--tender-purple);
    color: var(--tender-purple);
}

/* Buyer Profile Responsive */
@media (max-width: 768px) {
    .profile-card,
    .address-card {
        margin-bottom: 20px;
    }
    
    .address-row td {
        padding: 15px 0;
    }
    
    .default-badge {
        font-size: 0.6rem;
        padding: 3px 8px;
    }
    
    .address-actions {
        flex-direction: column;
        gap: 6px;
        align-items: flex-start;
    }
    
    .table th,
    .table td {
        padding: 10px 8px;
        font-size: 0.9rem;
    }
    
    .d-flex.gap-2 {
        flex-direction: column;
        gap: 10px !important;
    }
}

/* Dashboard Styles */
.dashboard-card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 2px;
}

.section-title {
    color: #333;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* Table Styles */
.table th {
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding: 15px 12px;
    color: #333;
}

.table td {
    padding: 15px 12px;
    vertical-align: middle;
    border-bottom: 1px solid #f8f9fa;
}

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

/* Badge Styles */
.badge {
    border-radius: 2px;
    font-size: 0.75rem;
    padding: 4px 8px;
}

/* Pagination Styles */
.pagination .page-link {
    border-radius: 2px;
    border-color: #dee2e6;
    color: var(--tender-purple);
}

.pagination .page-item.active .page-link {
    background-color: var(--tender-purple);
    border-color: var(--tender-purple);
}

.pagination .page-link:hover {
    background-color: var(--tender-light-purple);
    border-color: var(--tender-purple);
    color: var(--tender-purple);
}

/* Profile Styles */
.profile-avatar {
    position: relative;
    display: inline-block;
}

.avatar-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    background: var(--tender-purple);
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Address Management Styles */
.address-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
}

.address-actions .btn-link {
    padding: 0;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: none;
}

.address-actions .btn-link.text-danger:hover {
    color: #dc3545 !important;
}

.address-actions .btn-link.text-primary:hover {
    color: #0d6efd !important;
}

.address-actions .btn-sm {
    padding: 4px 12px;
    font-size: 0.8rem;
    border-radius: 2px;
    font-weight: 500;
}

.address-actions .btn-secondary {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.address-actions .btn-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Address Table Styles */
.address-table {
    table-layout: fixed;
    width: 100%;
}

.address-table th, .address-table td {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.address-table td:nth-child(2) {
    max-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.address-table td:nth-child(2):hover {
    white-space: normal;
    overflow: visible;
    max-width: none;
    position: relative;
    z-index: 1;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 2px;
    padding: 10px;
}

/* Auction Styles */
.auction-timer {
    text-align: right;
}

.timer-card {
    background: white;
    border-radius: 2px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    text-align: center;
    min-width: 120px;
}

.timer-label {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 5px;
}

.timer-value {
    font-size: 1.2rem;
    font-weight: bold;
    color: var(--tender-purple);
}

.bid-item {
    border: 1px solid #dee2e6;
    border-radius: 2px;
    padding: 15px;
    margin-bottom: 10px;
    background: white;
}

.bid-item.winning-bid {
    border-color: #28a745;
    background: #f8fff9;
}

.bid-amount {
    font-size: 1.1rem;
    font-weight: bold;
}

.winning-label {
    color: #28a745;
    font-size: 0.8rem;
    margin-left: 10px;
}

/* Seller Dashboard Styles */
.rating-breakdown .progress {
    background-color: #f8f9fa;
}

.rating-breakdown .progress-bar {
    background-color: #ffc107;
}

/* Inventory Styles */
.color-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px #dee2e6;
}

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

.category-card:hover {
    background-color: #f8f9fa;
}

.category-card.border-success {
    background-color: #f8fff9;
}

/* Order Styles */
.order-card {
    border: 1px solid #dee2e6;
    border-radius: 2px;
    margin-bottom: 20px;
}

/* Modal Styles */
.modal-content {
    border-radius: 2px;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
    padding: 20px;
}

.modal-body {
    padding: 20px;
}

/* Form Styles */
.form-control, .form-select {
    border-radius: 2px;
    border: 1px solid #dee2e6;
}

.form-control:focus, .form-select:focus {
    border-color: var(--tender-purple);
    box-shadow: 0 0 0 0.2rem rgba(85, 0, 118, 0.25);
}

/* Button Styles */
.btn {
    border-radius: 2px;
    font-weight: 500;
}

.btn-tender-purple {
    background-color: var(--tender-purple);
    border-color: var(--tender-purple);
    color: white;
}

.btn-tender-purple:hover {
    background-color: var(--tender-dark);
    border-color: var(--tender-dark);
    color: white;
}

.btn-outline-tender-purple {
    color: var(--tender-purple);
    border-color: var(--tender-purple);
}

.btn-outline-tender-purple:hover {
    background-color: var(--tender-purple);
    border-color: var(--tender-purple);
    color: white;
}

/* Alert Styles */
.alert {
    border-radius: 2px;
    border: none;
}

/* Card Styles */
.card {
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border-radius: 2px;
}

/* Navigation Styles */
.nav-pills .nav-link.active {
    background-color: var(--tender-purple);
    border-radius: 2px;
}

.nav-pills .nav-link {
    color: #666;
    border-radius: 2px;
}

.nav-pills .nav-link:hover {
    color: var(--tender-purple);
}

/* Active Link Styles */
.active-link {
    border-bottom: 2px solid var(--tender-purple) !important;
}

/* Combined Header for All Pages Except Home */
.combined-header {
    background: var(--tender-purple);
    padding: 15px 0;
    color: white;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.logo-combined {
    font-size: 2rem;
    font-weight: bold;
    letter-spacing: 2px;
}

.combined-header .navbar-nav {
    margin: 0;
    padding: 0;
}

.combined-header .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.combined-header .navbar-nav .nav-link:hover,
.combined-header .navbar-nav .nav-link.active {
    color: white;
}

.combined-header .navbar-nav .nav-link.active {
    font-weight: 600;
}

.combined-header .header-actions .btn {
    border-radius: 2px;
}

/* Fix dropdown menu positioning */
.combined-header .dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 1001;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Mobile Navigation Toggle Button */
.combined-header .navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.25rem 0.5rem;
    background: transparent;
}

.combined-header .navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.combined-header .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.8%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navigation Content */
.mobile-nav-content {
    padding: 20px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 15px;
}

.mobile-nav-content .navbar-nav {
    margin-bottom: 20px;
}

.mobile-nav-content .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-content .navbar-nav .nav-link:last-child {
    border-bottom: none;
}

.mobile-nav-content .navbar-nav .nav-link:hover,
.mobile-nav-content .navbar-nav .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    padding-left: 10px;
    border-radius: 4px;
}

.mobile-nav-content .navbar-nav .nav-link i {
    width: 20px;
    text-align: center;
}

.mobile-header-actions {
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.mobile-header-actions .btn {
    margin-bottom: 10px;
}

/* Mobile Responsive for Combined Header */
@media (max-width: 991.98px) {
    .combined-header {
        padding: 10px 0;
    }
    
    .logo-combined {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .combined-header {
        padding: 8px 0;
    }
    
    .logo-combined {
        font-size: 1.3rem;
    }
    
    .mobile-nav-content {
        padding: 15px 0;
    }
    
    .mobile-nav-content .navbar-nav .nav-link {
        font-size: 0.9rem;
        padding: 0.6rem 0;
    }
    
    .mobile-header-actions .btn {
        font-size: 0.9rem;
        padding: 0.5rem 1rem;
    }
}

/* Hero Section Styles */
.hero-section {
    background: linear-gradient(135deg, var(--tender-purple) 0%, var(--tender-dark) 100%);
    min-height: 300px;
    display: flex;
    align-items: center;
}

/* Navigation Bar Styles */
.navbar {
    border-bottom: 1px solid #e9ecef;
    margin-top: 0;
}

.navbar-nav .nav-link {
    color: #555;
    font-weight: 500;
    padding: 0.75rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    color: var(--tender-purple);
}

.navbar-nav .nav-link i {
    font-size: 0.9rem;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
}

.navbar-toggler:focus {
    box-shadow: none;
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid #e9ecef;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .navbar-nav .nav-link {
        padding: 0.5rem 1rem;
    }
}
