/* Kids Promise & Points - Custom Styles */

:root {
    --primary-color: #4a90e2;
    --success-color: #5cb85c;
    --info-color: #5bc0de;
    --warning-color: #f0ad4e;
    --danger-color: #d9534f;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: #f5f5f5;
}

/* Navbar */
.navbar-brand {
    font-weight: bold;
    font-size: 1.25rem;
}

/* Points Summary Card */
.bg-gradient-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
}

.bg-gradient-primary h1 {
    font-size: 3.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

/* Activity Cards */
.activity-card {
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid #e0e0e0;
}

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

/* Completed Activity Cards */
.activity-card.completed {
    background-color: #e8f5e9 !important;
    border-color: #81c784 !important;
    opacity: 0.85;
}

/* Accomplishments Cards - Celebration Style */
.accomplishment-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 50%, #fdcb6e 100%);
    border: 2px solid #f39c12 !important;
    border-radius: 12px !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.2);
}

.accomplishment-card::before {
    content: '✨';
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    opacity: 0.6;
    animation: sparkle 2s ease-in-out infinite;
}

.accomplishment-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(243, 156, 18, 0.4);
    border-color: #e67e22 !important;
}

@keyframes sparkle {
    0%, 100% { 
        opacity: 0.4;
        transform: scale(1) rotate(0deg);
    }
    50% { 
        opacity: 1;
        transform: scale(1.2) rotate(180deg);
    }
}

.accomplishments-list {
    position: relative;
}

.accomplishment-item {
    animation: slideInUp 0.5s ease-out;
    animation-fill-mode: both;
}

.accomplishment-item:nth-child(1) { animation-delay: 0.1s; }
.accomplishment-item:nth-child(2) { animation-delay: 0.2s; }
.accomplishment-item:nth-child(3) { animation-delay: 0.3s; }
.accomplishment-item:nth-child(4) { animation-delay: 0.4s; }
.accomplishment-item:nth-child(5) { animation-delay: 0.5s; }

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.accomplishment-card .card-body {
    background: transparent;
}

.accomplishment-card .card-title {
    color: #d35400;
    font-weight: 700;
}

.accomplishment-card .badge.bg-success {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    color: white;
    font-weight: 600;
    padding: 0.5em 0.8em;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(243, 156, 18, 0.3);
}

.accomplishments-header {
    background: linear-gradient(135deg, #fff3cd, #ffeaa7);
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    border: 2px dashed #f39c12;
    text-align: center;
}

.accomplishments-header h6 {
    color: #d35400;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 0;
}

.accomplishments-total {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(243, 156, 18, 0.3);
    margin-top: 1.5rem;
    font-weight: 600;
}

.accomplishments-total strong {
    font-size: 1.3rem;
    display: block;
    margin-top: 0.5rem;
}

.add-accomplishment-after {
    background: linear-gradient(135deg, #f39c12, #e67e22) !important;
    border: none !important;
    color: white !important;
    font-weight: bold;
    box-shadow: 0 4px 12px rgba(243, 156, 18, 0.4);
    transition: all 0.3s ease;
}

.add-accomplishment-after:hover {
    transform: scale(1.1) rotate(90deg);
    box-shadow: 0 6px 20px rgba(243, 156, 18, 0.6);
    background: linear-gradient(135deg, #e67e22, #d35400) !important;
}

.activity-card.completed .card-body {
    background-color: transparent;
}

.activity-card.completed:hover {
    opacity: 0.95;
    background-color: #c8e6c9 !important;
}

/* Reward Cards */
.reward-card {
    transition: all 0.2s;
    border-left: 4px solid var(--primary-color);
}

.reward-card.claimed {
    opacity: 0.6;
    border-left-color: var(--success-color);
    background-color: #f8f9fa;
}

.reward-card[data-tier="small"] {
    border-left-color: #5bc0de;
}

.reward-card[data-tier="medium"] {
    border-left-color: #f0ad4e;
}

.reward-card[data-tier="big"] {
    border-left-color: #d9534f;
}

/* Buttons */
.btn {
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.2s;
}

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

.btn-primary:hover {
    background-color: #357abd;
    border-color: #357abd;
    transform: translateY(-1px);
}

.btn-success {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.btn-success:hover {
    background-color: #449d44;
    border-color: #449d44;
}

/* Cards */
.card {
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.card-header {
    background-color: #fff;
    border-bottom: 2px solid #f0f0f0;
    font-weight: 600;
}

/* Modals */
.modal-content {
    border-radius: 8px;
}

.modal-header {
    border-bottom: 2px solid #f0f0f0;
}

/* Form Controls */
.form-control:focus,
.form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* Badges */
.badge {
    padding: 0.4em 0.6em;
    font-weight: 500;
}

/* Alerts */
.alert {
    border-radius: 6px;
    border: none;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .bg-gradient-primary h1 {
        font-size: 2.5rem;
    }
    
    .activity-card .btn-sm {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Success animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.3s ease-in;
}

