/* Bootstrap Button Overrides */
.btn-primary {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background-color: #b71c1c;
    border-color: #b71c1c;
}

.btn-success {
    background-color: #2e7d32;
    border-color: #2e7d32;
}

.btn-success:hover,
.btn-success:focus,
.btn-success:active {
    background-color: #1b5e20;
    border-color: #1b5e20;
}

/* Navigation Bar */
.navbar-custom {
    background: linear-gradient(135deg, #d32f2f, #b71c1c) !important;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: #ffffff !important;
}

.navbar-nav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
    margin: 0 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

/* PPP Logo */
.ppp-logo {
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
    color: #d32f2f;
    margin-right: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* Cart Counter Badge */
.cart-badge {
    background-color: #fbc02d;
    color: #1a1a1a;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: bold;
    margin-left: 0.5rem;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.6)), url('../images/pizza-hero.jpg');
    background-size: cover;
    background-position: center;
    color: #ffffff;
    padding: 3rem 0;
    text-align: center;
    border-radius: 0.75rem;
    margin: 2rem 0;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.hero-section h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    margin-bottom: 1.5rem;
}

.hero-section p {
    font-size: 1.3rem;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    margin-bottom: 2rem;
}

/* Custom Cards */
.ppp-card {
    border: none;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    transition: all 0.3s ease;
    overflow: hidden;
}

.ppp-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.ppp-card-header {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #ffffff;
    border-bottom: none;
    font-weight: bold;
    text-align: center;
}

/* Pizza Item Cards */
.pizza-card {
    border: 2px solid transparent;
    border-radius: 0.75rem;
    transition: all 0.3s ease;
    overflow: hidden;
}

.pizza-card:hover {
    border-color: #d32f2f;
    transform: translateY(-3px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.pizza-name {
    color: #d32f2f;
    font-size: 1.4rem;
    font-weight: bold;
    margin-bottom: 0.75rem;
}

.pizza-description {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

/* Size Selection */
.size-selection {
    margin: 1rem 0;
}

.size-option {
    margin: 0.25rem;
}

.size-option input[type="radio"] {
    display: none;
}

.size-option label {
    display: block;
    padding: 0.75rem 1rem;
    border: 2px solid #dee2e6;
    border-radius: 0.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    background: #ffffff;
}

.size-option input[type="radio"]:checked + label {
    border-color: #d32f2f;
    background-color: #d32f2f;
    color: #ffffff;
    transform: scale(1.05);
}

.size-option label:hover {
    border-color: #d32f2f;
    transform: translateY(-1px);
}

/* Cart Section */
.cart-sidebar {
    background: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    padding: 1.5rem;
    position: sticky;
    top: 100px;
}

.cart-item {
    border-bottom: 1px solid #dee2e6;
    padding: 0.75rem 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-item:last-child {
    border-bottom: none;
}

.cart-item-details strong {
    color: #1a1a1a;
    font-size: 1rem;
}

.cart-item-details small {
    color: #6c757d;
    display: block;
    margin-top: 0.25rem;
}

.cart-item-price {
    font-weight: bold;
    color: #2e7d32;
    margin-right: 0.5rem;
}

.remove-item-btn {
    background: #d32f2f;
    color: #ffffff;
    border: none;
    border-radius: 50%;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.remove-item-btn:hover {
    background: #b71c1c;
    transform: scale(1.1);
}

/* Cart Total */
.cart-total {
    border-top: 2px solid #d32f2f;
    padding-top: 1rem;
    margin-top: 1rem;
}

.cart-total-line {
    display: flex;
    justify-content: space-between;
    margin: 0.5rem 0;
}

.cart-total-final {
    font-size: 1.3rem;
    font-weight: bold;
    color: #d32f2f;
    border-top: 1px solid #dee2e6;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
}

/* Receipt Styling */
.receipt {
    background: #ffffff;
    border: 2px solid #000;
    border-radius: 0.5rem;
    padding: 2rem;
    font-family: 'Courier New', monospace;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.receipt-header {
    text-align: center;
    border-bottom: 2px solid #000;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.receipt-header h2 {
    font-size: 1.5rem;
    margin: 0;
    font-weight: bold;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px dotted #999;
}

.receipt-item:last-of-type {
    border-bottom: none;
}

.receipt-total {
    display: flex;
    justify-content: space-between;
    font-weight: bold;
    font-size: 1.2rem;
    padding: 1rem 0;
    border-top: 2px solid #000;
    border-bottom: 2px solid #000;
    margin: 1rem 0;
}

/* Status Page Styling */
.status-card {
    background: #ffffff;
    border-left: 4px solid #d32f2f;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.status-card:hover {
    transform: translateX(5px);
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.175);
}

.status-customer {
    font-size: 1.2rem;
    font-weight: bold;
    color: #000000;
}

.status-time {
    font-size: 1.1rem;
    font-weight: bold;
    color: #000000 !important;
    background: #f8f9fa;
    padding: 0.5rem 1rem;
    border-radius: 1rem;
    border: 2px solid #ddd;
}

/* Form Styling */
.form-control:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

.form-select:focus {
    border-color: #d32f2f;
    box-shadow: 0 0 0 0.2rem rgba(211, 47, 47, 0.25);
}

/* Special Pricing */
.special-price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2e7d32;
    margin: 0.5rem 0;
}

.original-price {
    text-decoration: line-through;
    color: #6c757d;
    margin-right: 0.5rem;
}

.savings {
    color: #2e7d32;
    font-weight: bold;
    background: rgba(46, 125, 50, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
}

/* Notice/Alert Styling */
.notice-card {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    border-left: 4px solid #fbc02d;
    border-radius: 0.5rem;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Button Feedback */
.btn-feedback {
    transition: all 0.3s ease;
}

.btn-feedback:hover {
    transform: translateY(-2px);
}

.btn-added {
    background-color: #2e7d32 !important;
    border-color: #2e7d32 !important;
}

/* Modal Styling */
.modal-header {
    background: linear-gradient(135deg, #d32f2f, #b71c1c);
    color: #ffffff;
    border-bottom: none;
}

.modal-content {
    border-radius: 0.75rem;
    overflow: hidden;
}

/* Responsive Adjustments */
@media (max-width: 767.98px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }
    
    .hero-section p {
        font-size: 1.1rem;
    }
    
    .cart-sidebar {
        position: static !important;
        margin-bottom: 2rem;
    }
    
    .size-selection {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    
    .navbar-nav {
        text-align: center;
        margin-top: 1rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .hero-section h1 {
        font-size: 3rem;
    }
    
    .size-selection {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
}

@media (min-width: 992px) {
    .size-selection {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.5rem;
    }
}

/* Print Styles for Receipt */
@media print {
    body * {
        visibility: hidden;
    }
    
    .receipt, .receipt * {
        visibility: visible;
    }
    
    .receipt {
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
        box-shadow: none;
        border: 2px solid #000;
    }
    
    .navbar, .footer, .btn {
        display: none !important;
    }
}

/* Footer Styling */
.footer {
    background: #1a1a1a;
    color: #ffffff;
    padding: 2rem 0;
    margin-top: 4rem;
}

/* Utility Classes */
.text-ppp-primary { color: #d32f2f !important; }
.text-ppp-secondary { color: #2e7d32 !important; }
.bg-ppp-primary { background-color: #d32f2f !important; }
.bg-ppp-secondary { background-color: #2e7d32 !important; }
.border-ppp-primary { border-color: #d32f2f !important; }