/**
 * TeacherAI Supply Closet CSS
 * Premium Feature Styling
 * 
 * Used on:
 * - Lesson Builder form (checkbox toggle)
 * - Supply Closet page (/my-account/supply-closet/)
 * 
 * Created by: Claude 147 - Site-Wide Style Pass
 * Location: /wp-content/plugins/teacherai-simple/assets/css/supply-closet.css
 */

/* ============================================
   LESSON FORM - SUPPLY CLOSET TOGGLE
   ============================================ */

/* Container - Premium (enabled) */
.supply-closet-toggle {
    margin-top: 1.25rem;
    padding: 1rem 1.25rem;
    background-color: #f0fdf4; /* green-50 */
    border: 1px solid #bbf7d0; /* green-200 */
    border-radius: 0.75rem;
    transition: all 0.2s ease;
}

.supply-closet-toggle:hover {
    border-color: #86efac; /* green-300 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* Container - Trial/Anonymous (disabled) */
.supply-closet-toggle.disabled {
    background-color: #f9fafb; /* gray-50 */
    border-color: #e5e7eb; /* gray-200 */
    opacity: 0.8;
}

/* Toggle row layout */
.supply-closet-toggle-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

/* Checkbox label container */
.supply-closet-label {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    flex: 1;
}

.supply-closet-label.disabled {
    cursor: not-allowed;
}

/* Checkbox input */
.supply-closet-checkbox {
    width: 1.25rem;
    height: 1.25rem;
    accent-color: #16a34a; /* green-600 */
    cursor: pointer;
}

.supply-closet-checkbox:disabled {
    cursor: not-allowed;
}

/* Label text */
.supply-closet-text {
    font-weight: 600;
    font-size: 0.9375rem;
    color: #166534; /* green-800 */
}

.supply-closet-text.disabled {
    color: #6b7280; /* gray-500 */
}

/* Premium badge */
.supply-closet-badge {
    background-color: #fef3c7; /* amber-100 */
    color: #92400e; /* amber-800 */
    font-size: 0.6875rem;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

/* Edit/Upgrade link */
.supply-closet-link {
    color: #16a34a; /* green-600 */
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.supply-closet-link:hover {
    color: #15803d; /* green-700 */
    text-decoration: underline;
}

.supply-closet-link.upgrade {
    color: #4f46e5; /* indigo-600 */
}

.supply-closet-link.upgrade:hover {
    color: #4338ca; /* indigo-700 */
}

/* Helper text */
.supply-closet-hint {
    margin: 0.625rem 0 0 1.875rem; /* Indent to align with checkbox text */
    font-size: 0.8125rem;
    color: #15803d; /* green-700 */
}

.supply-closet-hint.disabled {
    color: #6b7280; /* gray-500 */
}

.supply-closet-hint a {
    color: #16a34a;
    text-decoration: underline;
}

.supply-closet-hint a:hover {
    color: #15803d;
}


/* ============================================
   SUPPLY CLOSET PAGE - HERO SECTION
   ============================================ */

.supply-closet-hero {
    text-align: center;
    padding: 2rem 1.5rem;
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border-radius: 1rem;
    margin-bottom: 2rem;
}

.supply-closet-hero-icon {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.supply-closet-hero-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: #166534; /* green-800 */
    margin: 0 0 0.5rem 0;
}

.supply-closet-hero-subtitle {
    font-size: 1rem;
    color: #15803d; /* green-700 */
    margin: 0;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}


/* ============================================
   SUPPLY CLOSET PAGE - CATEGORY CARDS
   ============================================ */

.supply-category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.supply-category-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.75rem;
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.supply-category-card:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.supply-category-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #f3f4f6; /* gray-100 */
}

.supply-category-icon {
    font-size: 1.5rem;
}

.supply-category-title {
    font-size: 1rem;
    font-weight: 600;
    color: #111827; /* gray-900 */
    margin: 0;
}

.supply-category-count {
    margin-left: auto;
    background-color: #f3f4f6; /* gray-100 */
    color: #6b7280; /* gray-500 */
    font-size: 0.75rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    font-weight: 500;
}


/* ============================================
   SUPPLY CLOSET PAGE - ITEM CHIPS
   ============================================ */

.supply-items-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.supply-item-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background-color: #f9fafb; /* gray-50 */
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 9999px;
    font-size: 0.875rem;
    color: #374151; /* gray-700 */
    transition: all 0.2s ease;
}

.supply-item-chip:hover {
    background-color: #f3f4f6; /* gray-100 */
}

/* Item states */
.supply-item-chip.hot {
    background-color: #fef3c7; /* amber-100 */
    border-color: #fcd34d; /* amber-300 */
    color: #92400e; /* amber-800 */
}

.supply-item-chip.unused {
    background-color: #f3f4f6; /* gray-100 */
    color: #9ca3af; /* gray-400 */
}

.supply-item-chip.depleted {
    background-color: #fef2f2; /* red-50 */
    border-color: #fecaca; /* red-200 */
    color: #991b1b; /* red-800 */
    text-decoration: line-through;
}

/* Delete button on chip */
.supply-item-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    background: none;
    border: none;
    color: #9ca3af; /* gray-400 */
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
    line-height: 1;
    transition: color 0.2s ease;
}

.supply-item-delete:hover {
    color: #dc2626; /* red-600 */
}

/* Replenish button */
.supply-item-replenish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    background: none;
    border: none;
    color: #16a34a; /* green-600 */
    cursor: pointer;
    padding: 0;
    font-size: 0.75rem;
    line-height: 1;
}

.supply-item-replenish:hover {
    color: #15803d; /* green-700 */
}

/* Add item input */
.supply-add-item {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.supply-add-input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #e5e7eb; /* gray-200 */
    border-radius: 0.375rem;
    font-size: 0.875rem;
    color: #374151;
    transition: border-color 0.2s ease;
}

.supply-add-input:focus {
    outline: none;
    border-color: #4f46e5; /* indigo-600 */
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1);
}

.supply-add-input::placeholder {
    color: #9ca3af; /* gray-400 */
}

.supply-add-button {
    padding: 0.5rem 1rem;
    background-color: #4f46e5; /* indigo-600 */
    color: #ffffff;
    border: none;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.supply-add-button:hover {
    background-color: #4338ca; /* indigo-700 */
}


/* ============================================
   SUPPLY CLOSET PAGE - STATS SIDEBAR
   ============================================ */

.supply-stats-card {
    background-color: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 1.25rem;
    margin-bottom: 1rem;
}

.supply-stats-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b7280; /* gray-500 */
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 0.75rem 0;
}

.supply-stat-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid #f3f4f6;
}

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

.supply-stat-label {
    font-size: 0.875rem;
    color: #374151; /* gray-700 */
}

.supply-stat-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827; /* gray-900 */
}

/* Hot items list */
.supply-hot-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.supply-hot-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #374151;
}

.supply-hot-item::before {
    content: "🔥";
    font-size: 0.75rem;
}

/* Unused items list */
.supply-unused-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.supply-unused-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #9ca3af; /* gray-400 */
}

.supply-unused-item::before {
    content: "😴";
    font-size: 0.75rem;
}

/* Depleted items list */
.supply-depleted-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.supply-depleted-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.375rem 0;
    font-size: 0.875rem;
    color: #991b1b; /* red-800 */
    text-decoration: line-through;
}


/* ============================================
   SUPPLY CLOSET PAGE - ACTION BUTTONS
   ============================================ */

.supply-save-button {
    display: block;
    width: 100%;
    padding: 0.875rem 1.5rem;
    background-color: #16a34a; /* green-600 */
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 1.5rem;
}

.supply-save-button:hover {
    background-color: #15803d; /* green-700 */
}

.supply-save-button:disabled {
    background-color: #9ca3af;
    cursor: not-allowed;
}


/* ============================================
   RESPONSIVE ADJUSTMENTS
   ============================================ */

@media (max-width: 768px) {
    .supply-closet-hero {
        padding: 1.5rem 1rem;
    }
    
    .supply-closet-hero-title {
        font-size: 1.5rem;
    }
    
    .supply-category-grid {
        grid-template-columns: 1fr;
    }
    
    .supply-closet-toggle-row {
        flex-wrap: wrap;
    }
    
    .supply-closet-link {
        margin-left: auto;
    }
}
