/**
 * RewardAI - Main Styles
 */

/* General Styles */
body {
    font-family: 'Nunito', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.footer {
    background-color: #f8f9fa;
    padding: 1.5rem 0;
    border-top: 1px solid #e9ecef;
}

/* Navbar */
.navbar-brand img {
    margin-right: 0.5rem;
}

/* Cards */
.card {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    border-radius: 0.5rem;
    overflow: hidden;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
}

/* Points Display */
.points-display {
    background-color: #f8f9fa;
    border-radius: 0.5rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.points-display .points-icon {
    font-size: 2.5rem;
    color: #ffc107;
}

.points-display .points-value {
    font-size: 2.5rem;
    font-weight: 600;
    color: #343a40;
    margin-bottom: 0;
}

.points-display .points-label {
    font-size: 0.875rem;
    color: #6c757d;
    text-transform: uppercase;
}

/* Shop Cards */
.shop-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: transform 0.3s;
}

.shop-card:hover {
    transform: translateY(-5px);
    text-decoration: none;
    color: inherit;
}

.shop-card .card-img-container {
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.shop-card .card-img-container img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
}

.shop-card .shop-points {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #ffc107;
    color: #212529;
    border-radius: 0.25rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

/* Receipt Upload */
.receipt-upload {
    border: 2px dashed #ced4da;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    cursor: pointer;
    transition: border-color 0.3s;
}

.receipt-upload:hover {
    border-color: #007bff;
}

.receipt-upload i {
    font-size: 3rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.receipt-upload h5 {
    margin-bottom: 0.5rem;
}

.receipt-upload p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Receipt List */
.receipt-item {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1rem;
    padding: 1rem;
    transition: transform 0.3s;
}

.receipt-item:hover {
    transform: translateY(-2px);
}

.receipt-item .receipt-status {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.receipt-item .receipt-status.status-pending {
    background-color: #ffeeba;
    color: #856404;
}

.receipt-item .receipt-status.status-processed {
    background-color: #bee5eb;
    color: #0c5460;
}

.receipt-item .receipt-status.status-verified {
    background-color: #c3e6cb;
    color: #155724;
}

.receipt-item .receipt-status.status-incomplete {
    background-color: #f5c6cb;
    color: #721c24;
}

.receipt-item .receipt-status.status-invalid {
    background-color: #f5c6cb;
    color: #721c24;
}

.receipt-item .receipt-status.status-duplicate {
    background-color: #f5c6cb;
    color: #721c24;
}

.receipt-item .receipt-status.status-error {
    background-color: #f5c6cb;
    color: #721c24;
}

.receipt-item .receipt-points {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #ffc107;
    color: #212529;
    border-radius: 0.25rem;
    font-weight: 600;
}

/* Rewards */
.reward-card {
    height: 100%;
    transition: transform 0.3s;
}

.reward-card:hover {
    transform: translateY(-5px);
}

.reward-card .card-img-top {
    height: 180px;
    object-fit: cover;
}

.reward-card .reward-points {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background-color: #ffc107;
    color: #212529;
    border-radius: 0.25rem;
    font-weight: 600;
}

.reward-card .card-body {
    display: flex;
    flex-direction: column;
}

.reward-card .card-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.reward-card .card-text {
    flex-grow: 1;
}

/* Point History */
.point-history-item {
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.point-history-item:last-child {
    border-bottom: none;
}

.point-history-item .point-value {
    font-size: 1.25rem;
    font-weight: 600;
}

.point-history-item .point-value.earned {
    color: #28a745;
}

.point-history-item .point-value.redeemed {
    color: #dc3545;
}

.point-history-item .point-shop {
    font-size: 0.875rem;
    color: #6c757d;
}

.point-history-item .point-date {
    font-size: 0.875rem;
    color: #6c757d;
}

/* Profile Card */
.profile-card {
    border-radius: 0.5rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.profile-card .profile-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
}

.profile-card .profile-info {
    padding: 1.5rem;
}

.profile-card .profile-info h4 {
    margin-bottom: 0.5rem;
}

.profile-card .profile-info p {
    margin-bottom: 0.25rem;
    color: #6c757d;
}

.profile-card .profile-actions {
    padding: 1rem;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
}

/* QR Code Display */
.qr-code-container {
    text-align: center;
    margin-bottom: 1.5rem;
}

.qr-code-container img {
    max-width: 100%;
    height: auto;
}

.qr-code-container .qr-code-label {
    margin-top: 0.5rem;
    color: #6c757d;
    font-size: 0.875rem;
}

/* Authentication Pages */
.auth-card {
    max-width: 500px;
    margin: 2rem auto;
}

.auth-card .card-header {
    background-color: #007bff;
    color: #fff;
    font-weight: 600;
}

/* Media Queries */
@media (max-width: 767.98px) {
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .navbar-brand img {
        height: 25px;
    }
    
    .points-display .points-value {
        font-size: 2rem;
    }
    
    .points-display .points-icon {
        font-size: 2rem;
    }
}
