/* assets/css/style.css */

* {
    box-sizing: border-box;
}

.birth-list-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

/* Header */
.birth-list-header {
    text-align: center;
    margin-bottom: 40px;
}

.birth-list-header .icon {
    width: 60px;
    height: 60px;
    background: #ff6b6b;
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.birth-list-header h1 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.birth-list-header p {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.stat-card .number {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.stat-card .number.green {
    color: #27ae60;
}

.stat-card .number.blue {
    color: #3498db;
}

.stat-card .number.orange {
    color: #f39c12;
}

.stat-card .label {
    color: #7f8c8d;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Main Content Grid */
.main-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Add Item Form */
.add-item-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    height: fit-content;
}

.add-item-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.add-item-section .subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 8px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #ff6b6b;
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.btn-primary {
    background: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background: #ff5252;
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Share Section */
.share-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
    margin-top: 20px;
}

.share-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.btn-secondary {
    background: #ecf0f1;
    color: #2c3e50;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #d5dbdb;
}

/* Items List */
.items-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid #f0f0f0;
}

.items-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 5px;
}

.items-section .subtitle {
    color: #7f8c8d;
    font-size: 0.9rem;
    margin-bottom: 25px;
}

.item-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    position: relative;
}

.item-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-1px);
}

.item-card.obtained {
    background: #d5f4e6;
    border-color: #27ae60;
}

.item-heart {
    width: 40px;
    height: 40px;
    border: 2px solid #ddd;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 18px;
    color: #ddd;
}

.item-heart:hover {
    border-color: #ff6b6b;
    color: #ff6b6b;
}

.item-heart.filled {
    background: #ff6b6b;
    border-color: #ff6b6b;
    color: white;
}

.item-content {
    flex: 1;
}

.item-name {
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 5px;
}

.item-price {
    color: #7f8c8d;
    font-size: 0.9rem;
}

.item-actions {
    display: flex;
    gap: 10px;
}

.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.priority-haute {
    background: #ffebee;
    color: #c62828;
}

.priority-moyenne {
    background: #fff3e0;
    color: #ef6c00;
}

.priority-basse {
    background: #e8f5e8;
    color: #2e7d32;
}

.status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-souhaite {
    background: #ffebee;
    color: #c62828;
}

.status-obtenu {
    background: #e8f5e8;
    color: #2e7d32;
}

/* Maternity Bag Styles */
.maternity-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.progress-section {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.progress-bar {
    background: #f0f0f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    background: #ff6b6b;
    height: 100%;
    transition: width 0.3s ease;
}

.category-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 30px;
}

.category-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.category-icon {
    width: 50px;
    height: 50px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.category-icon.maman {
    background: #ffe8f1;
    color: #e91e63;
}

.category-icon.bebe {
    background: #e3f2fd;
    color: #2196f3;
}

.category-icon.pratique {
    background: #e8f5e8;
    color: #4caf50;
}

.category-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.tab-button {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button.active {
    background: #ff6b6b;
    color: white;
}

.items-category {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.category-title {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.category-title .icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    font-size: 16px;
}

.maternity-item {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.maternity-item:hover {
    background: #f9f9f9;
}

.item-checkbox {
    margin-right: 15px;
    transform: scale(1.2);
}

.maternity-item-content {
    flex: 1;
}

.essential-badge {
    background: #ff6b6b;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    margin-left: 10px;
}

.order-button {
    background: #27ae60;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    margin-top: 30px;
    transition: all 0.3s ease;
}

.order-button:hover {
    background: #229954;
    transform: translateY(-1px);
}

.order-button:disabled {
    background: #bdc3c7;
    cursor: not-allowed;
    transform: none;
}

/* Shared List Styles */
.shared-list-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.shared-item-card {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: all 0.3s ease;
}

.shared-item-card:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.shared-item-card.obtained {
    opacity: 0.6;
    background: #f9f9f9;
}

.shared-item-checkbox {
    margin-right: 15px;
    transform: scale(1.2);
}

.shared-item-checkbox:disabled {
    opacity: 0.5;
}

.order-form {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-top: 30px;
}

.selected-items {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.selected-items h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.selected-items ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.selected-items li {
    padding: 5px 0;
    color: #7f8c8d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .birth-list-container,
    .maternity-container {
        padding: 15px;
    }
    
    .birth-list-header h1 {
        font-size: 2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-content {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .category-tabs {
        flex-direction: column;
        gap: 5px;
    }
    
    .tab-button {
        text-align: center;
    }
    
    .item-card,
    .shared-item-card,
    .maternity-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .item-actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 480px) {
    .birth-list-header h1 {
        font-size: 1.8rem;
    }
    
    .stat-card {
        padding: 20px 15px;
    }
    
    .stat-card .number {
        font-size: 2rem;
    }
    
    .add-item-section,
    .share-section,
    .items-section,
    .items-category {
        padding: 20px;
    }
}

/* Animations */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.item-card,
.maternity-item,
.shared-item-card {
    animation: slideIn 0.3s ease;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #ff6b6b;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}