/* 
 * ZAPBOOTS - Premium Footwear Store
 * Product Page Stylesheet
 */

/* Import base variables and styles */
@import url('styles.css');

html, body {
    overflow-x: hidden;
    width: 100%;
}

/* ===== PRODUCT DETAIL HERO ===== */
.product-detail-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 30px 0;
    position: relative;
    overflow: hidden;
    margin-top: 80px; /* Add margin to fix spacing after navbar */
}

.product-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../assets/images/pattern-bg.svg');
    background-repeat: repeat;
    opacity: 0.1;
    z-index: 1;
}

.product-detail-hero .container {
    position: relative;
    z-index: 2;
}

.breadcrumb {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 5px;
    transition: color var(--transition-fast);
}

.breadcrumb a:first-child {
    margin-left: 0;
}

.breadcrumb a:hover {
    color: var(--light-color);
}

.breadcrumb span {
    margin-left: 5px;
    font-weight: 500;
}

/* ===== PRODUCT DETAIL SECTION ===== */
.product-detail {
    padding: 60px 0;
    background-color: var(--light-color);
    position: relative;
    z-index: 1;
}

.product-detail .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
    background: transparent;
}

/* Product Gallery */
.product-gallery {
    position: relative;
}

.main-image {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.main-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform var(--transition-normal);
}

.main-image:hover img {
    transform: scale(1.05);
}

.product-gallery .thumbnail-images {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.product-gallery .thumbnail-images img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    border: 2px solid white;
    transition: all 0.2s ease;
}

.product-gallery .thumbnail-images img:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.product-gallery .thumbnail-images img.active {
    border-color: var(--color-primary);
    transform: translateY(-3px);
    box-shadow: var(--shadow-sm);
}

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 5px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-badge.sale {
    background-color: var(--secondary-color);
    color: white;
}

.product-badge.new {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

.thumbnail-images {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
}

.thumbnail-images img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: 2px solid white;
    box-shadow: var(--shadow-sm);
}

.thumbnail-images img:hover {
    transform: translateY(-3px);
}

.thumbnail-images img.active {
    border-color: var(--primary-color);
}

/* Product Info */
.product-info {
    background: transparent;
}

.product-info h1 {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.product-rating {
    display: flex;
    align-items: center;
    margin-bottom: 1.2rem;
    color: var(--accent-color);
}

.product-rating i {
    margin-right: 2px;
}

.product-rating span {
    margin-left: 8px;
    color: var(--gray-600);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.current-price {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.2rem;
    color: var(--gray-500);
    text-decoration: line-through;
    margin-left: 1rem;
}

.discount {
    background-color: var(--secondary-color);
    color: white;
    padding: 3px 8px;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 1rem;
}

.product-description {
    margin-bottom: 2rem;
    color: var(--gray-700);
    line-height: 1.7;
}

.product-options {
    margin-bottom: 1rem;
}

.size-options, .color-options {
    margin-bottom: 1.5rem;
}

.quantity-selector {
    margin-bottom: 0.5rem;
}

.size-options h3, .color-options h3, .quantity-selector h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--gray-800);
}

.size-selector {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.size-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--gray-300);
    background: white;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.size-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.size-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.size-guide {
    display: inline-block;
    margin-top: 0.8rem;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: underline;
}

.color-selector {
    display: flex;
    gap: 1rem;
}

.color-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform var(--transition-fast);
    position: relative;
}

.color-btn:hover {
    transform: scale(1.1);
}

.color-btn.active {
    border-color: var(--gray-400);
}

.color-btn.active::after {
    content: '';
    position: absolute;
    top: -5px;
    right: -5px;
    bottom: -5px;
    left: -5px;
    border: 1px solid var(--gray-400);
    border-radius: 50%;
}

/* Base color styles - these are fallbacks if inline styles don't work */
.color-btn.black {
    background-color: #000;
}

.color-btn.white {
    background-color: #fff;
    border: 1px solid #ddd;
}

.color-btn.red {
    background-color: #e63946;
}

.color-btn.blue {
    background-color: #3a86ff;
}

.color-btn.gray {
    background-color: #adb5bd;
}

/* Additional colors can be added here */

.quantity-controls {
    display: flex;
    align-items: center;
    width: fit-content;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.quantity-minus, .quantity-plus {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-100);
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.quantity-minus:hover, .quantity-plus:hover {
    background-color: var(--gray-200);
}

.quantity-value {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
}

.product-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
    background: transparent;
}

.add-to-cart-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.add-to-cart-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: all 0.6s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.add-to-cart-btn:hover::before {
    left: 100%;
}

.wishlist-btn {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.wishlist-btn:hover {
    color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.product-meta {
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: var(--gray-700);
}

.product-meta p {
    margin-bottom: 0.5rem;
}

.product-meta a {
    color: var(--primary-color);
}

.product-meta a:hover {
    text-decoration: underline;
}

.product-delivery {
    background-color: var(--gray-100);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
}

.product-delivery p {
    display: flex;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.product-delivery p:last-child {
    margin-bottom: 0;
}

.product-delivery i {
    color: var(--primary-color);
    margin-right: 0.5rem;
    font-size: 1rem;
}

.product-share {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.product-share span {
    font-size: 0.9rem;
    color: var(--gray-700);
}

.product-share a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border-radius: 50%;
    transition: all var(--transition-fast);
}

.product-share a:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
}

/* ===== PRODUCT DETAILS TABS ===== */
.product-details-tabs {
    padding: 60px 0;
    background-color: var(--gray-100);
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--gray-300);
    margin-bottom: 2rem;
}

.tab-btn {
    padding: 1rem 1.5rem;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 600;
    color: var(--gray-600);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.tab-btn:hover {
    color: var(--primary-color);
}

.tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-content {
    background-color: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.tab-pane h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--dark-color);
}

.tab-pane h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 1.5rem 0 1rem;
    color: var(--gray-800);
}

.tab-pane p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.tab-pane ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.tab-pane ul li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1rem;
}

.tab-pane ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary-color);
}

/* Specifications Tab */
.specs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.specs-table th, .specs-table td {
    padding: 0.8rem 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.specs-table th {
    font-weight: 600;
    color: var(--gray-800);
    width: 30%;
    background-color: var(--gray-100);
}

/* Reviews Tab */
.review-summary {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

.average-rating {
    text-align: center;
}

.rating-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.stars {
    margin: 0.5rem 0;
    color: var(--accent-color);
}

.rating-breakdown {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-level {
    width: 60px;
    font-size: 0.9rem;
}

.progress-bar {
    flex: 1;
    height: 8px;
    background-color: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress {
    height: 100%;
    background-color: var(--accent-color);
    border-radius: var(--radius-full);
}

.rating-count {
    width: 30px;
    font-size: 0.9rem;
    text-align: right;
}

.review-list {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.review-item {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--gray-200);
}

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

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.reviewer-info h4 {
    margin: 0;
    font-size: 1.1rem;
}

.review-date {
    font-size: 0.9rem;
    color: var(--gray-600);
}

.review-rating {
    margin-bottom: 0.8rem;
    color: var(--accent-color);
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.8rem;
    color: var(--gray-800);
}

.review-text {
    margin-bottom: 1rem;
    line-height: 1.7;
}

.review-photos {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.review-photos img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: transform var(--transition-fast);
}

.review-photos img:hover {
    transform: scale(1.05);
}

.review-helpful {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--gray-600);
}

.helpful-btn {
    background: none;
    border: none;
    color: var(--gray-700);
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.helpful-btn:hover {
    color: var(--primary-color);
}

.delete-review-form {
    display: inline;
}

.delete-review-btn {
    background: none;
    border: none;
    color: var(--danger-color, #dc3545);
    cursor: pointer;
    transition: color var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    margin-left: 1rem;
}

.delete-review-btn:hover {
    color: var(--danger-dark-color, #bd2130);
}

.load-more-reviews {
    text-align: center;
    margin-bottom: 2rem;
}

.load-more-btn {
    padding: 0.8rem 1.5rem;
    background-color: var(--gray-200);
    color: var(--gray-700);
    border: none;
    border-radius: var(--radius-md);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.load-more-btn:hover {
    background-color: var(--gray-300);
}

.write-review {
    background-color: var(--gray-100);
    padding: 2rem;
    border-radius: var(--radius-md);
}

.write-review h3 {
    margin-bottom: 1.5rem;
}

.review-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--gray-800);
}

.rating-selector {
    display: flex;
    gap: 0.3rem;
    color: var(--gray-400);
    font-size: 1.2rem;
    cursor: pointer;
}

.rating-selector i:hover {
    color: var(--accent-color);
}

.form-group input, .form-group textarea {
    padding: 0.8rem 1rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--body-font);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.submit-review-btn {
    padding: 1rem 1.5rem;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-md);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    align-self: flex-start;
}

.submit-review-btn:hover {
    background-color: var(--secondary-color);
}

/* ===== RELATED PRODUCTS ===== */
.related-products {
    padding: 60px 0;
    background-color: white;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-color);
    position: relative;
    padding-bottom: 1rem;
}

.related-products h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--primary-color);
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    width: fit-content;
    position: relative;
    background-color: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-md);
}

.product-card .product-img {
    position: relative;
    /* overflow: hidden; */
}

.product-card .product-img img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    transition: transform var(--transition-normal);
    margin: 0 auto;
    display: block;
}

.product-card:hover .product-img img {
    transform: scale(1.05);
}

.product-card .product-actions {
    position: absolute;
    bottom: -50px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem;
    background-color: rgba(255, 255, 255, 0.9);
    transition: bottom var(--transition-normal);
}

.product-card:hover .product-actions {
    bottom: 0;
}

.product-card .action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: white;
    color: var(--gray-700);
    border: 1px solid var(--gray-300);
    border-radius: 50%;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.product-card .action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-card .action-btn.add-to-cart {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.product-card .action-btn.add-to-cart:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.product-card .product-info {
    padding: 1.5rem;
}

.product-card .product-name {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
}

.product-card .product-category {
    font-size: 0.9rem;
    color: var(--gray-600);
    margin-bottom: 0.8rem;
}

.product-card .product-price {
    margin-bottom: 0.8rem;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
}

.product-card .product-rating i {
    color: var(--accent-color);
    margin-right: 2px;
}

.product-card .product-rating span {
    margin-left: 5px;
    color: var(--gray-600);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    padding: 5px 10px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.product-badge.sale {
    background-color: var(--secondary-color);
    color: white;
}

.product-badge.new {
    background-color: var(--accent-color);
    color: var(--dark-color);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive styles */
@media (max-width: 991px) {
    .product-detail .container {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .product-gallery {
        max-width: 100%;
    }
    
    .main-image {
        height: auto;
        max-height: 400px;
    }
    
    .main-image img {
        max-height: 400px;
        object-fit: contain;
    }
    
    .thumbnail-images {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .thumbnail-images img {
        width: 70px;
        height: 70px;
        margin: 5px;
    }
    
    .tabs {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE and Edge */
        padding-bottom: 5px;
    }
    
    .tabs::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Opera */
    }
    
    .tab-btn {
        white-space: nowrap;
        flex: 0 0 auto;
        padding: 0.8rem 1.2rem;
    }
}

@media (max-width: 767px) {
    .product-detail-hero {
        padding: 100px 0 30px;
    }
    
    .product-detail .container {
        padding: 0 15px;
    }
    
    .main-image {
        max-height: 300px;
    }
    
    .main-image img {
        max-height: 300px;
    }
    
    .thumbnail-images img {
        width: 60px;
        height: 60px;
    }
    
    .product-info h1 {
        font-size: 1.8rem;
    }
    
    .current-price {
        font-size: 1.5rem;
    }
    
    .old-price {
        font-size: 1rem;
    }
    
    .size-selector, .color-selector {
        flex-wrap: wrap;
    }
    
    .size-btn, .color-btn {
        margin-bottom: 10px;
    }
    
    .add-to-cart-form {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .quantity-controls {
        margin-bottom: 15px;
    }
    
    .add-to-cart-btn {
        width: 100%;
    }
    
    .wishlist-btn {
        margin-top: 10px;
    }
    
    .tab-btn {
        padding: 0.7rem 1rem;
        font-size: 0.9rem;
    }
    
    .review-summary {
        flex-direction: column;
    }
    
    .average-rating {
        margin-bottom: 20px;
    }
    
    .rating-breakdown {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .main-image {
        max-height: 250px;
    }
    
    .main-image img {
        max-height: 250px;
    }
    
    .thumbnail-images img {
        width: 50px;
        height: 50px;
    }
    
    .product-info h1 {
        font-size: 1.5rem;
    }
    
    .product-price {
        flex-wrap: wrap;
    }
    
    .discount {
        margin-left: 0;
        margin-top: 5px;
    }
    
    .tab-btn {
        padding: 0.6rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: white;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--gray-200);
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark-color);
}

.close-modal {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.close-modal:hover {
    color: var(--gray-800);
}

.modal-body {
    padding: 20px;
    color: var(--gray-700);
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 15px;
    padding: 15px 20px 20px;
    border-top: 1px solid var(--gray-200);
}

.modal-footer .btn {
    padding: 8px 15px;
    border-radius: var(--radius-sm);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
}

.modal-footer .btn-danger {
    background-color: var(--error-color);
    color: white;
    border: 1px solid var(--error-color);
}

.modal-footer .btn-danger:hover {
    background-color: #d32f2f;
    border-color: #d32f2f;
}

.modal-footer .btn-secondary {
    background-color: var(--gray-300);
    color: var(--gray-800);
    border: 1px solid var(--gray-300);
}

.modal-footer .btn-secondary:hover {
    background-color: var(--gray-400);
    border-color: var(--gray-400);
}