/* HappyFrog - Simplified CSS */

/* Base Styles */
html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #f0f9f0 0%, #e8f5e8 100%);
    background-attachment: fixed;
    margin: 0;
    padding: 0;
    height: 100%;
}

/* Layout */
.page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
}

.main-content main {
    flex: 1;
    background: transparent;
}

.sidebar {
    display: none;
}

.top-bar {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    z-index: 1000;
    position: sticky;
    top: 0;
    color: #000000;
}

/* Navigation Bar and Top Bar Text */
.navbar, .navbar-nav, .nav, .top-bar {
    color: #000000 !important;
}

.navbar-nav .nav-link, .nav-link {
    color: #000000 !important;
}

.navbar-nav .nav-link:hover, .nav-link:hover {
    color: #28a745 !important;
}

.navbar-nav .nav-link.active, .nav-link.active {
    color: #28a745 !important;
    font-weight: 600;
}

.navbar-brand {
    color: #000000 !important;
}

.navbar-brand:hover {
    color: #28a745 !important;
}

/* Top Bar - Force all text to be black */
.top-bar,
.top-bar *,
.top-bar a,
.top-bar button,
.top-bar span,
.top-bar div {
    color: #000000 !important;
}

.top-bar a:hover,
.top-bar button:hover {
    color: #28a745 !important;
}

/* Navigation items in top bar */
.top-bar .nav-items,
.top-bar .nav-items *,
.top-bar .navbar-nav,
.top-bar .navbar-nav * {
    color: #000000 !important;
}

.content {
    padding-top: 1.5rem;
    max-width: 100%;
    transition: margin-right 0.3s ease;
}



/* Validation */
.valid.modified:not([type=checkbox]) {
    outline: 1px solid #28a745;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

/* Cards */
.card {
    border: none;
    border-radius: 0.375rem;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.1), 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 20px;
    overflow: hidden;
    background: linear-gradient(135deg, #ffffff 0%, #fefffe 100%);
    border: 1px solid rgba(40, 167, 69, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover:not(.clickable-card) {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.15), 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Clickable Cards with Pulse Animation */
.card.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.card.clickable-card:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.3);
    opacity: 0.9;
}

/* Card Headers */
.card-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    font-weight: 600;
    color: #000000;
    border: none;
    padding: 1.25rem;
}

.card-header h3, .card-header h4, .card-header h5, .card-header h6 {
    color: #000000;
    font-weight: 700;
    margin: 0;
}

.card-body {
    background-color: #fff;
    padding: 1.5rem;
}

/* Buttons */
.btn {
    border-radius: 0.375rem;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 10px 20px;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
    color: black !important;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
    background: linear-gradient(135deg, #218838 0%, #1c9487 100%);
    color: black !important;
}

.btn-outline-primary {
    color: #000000 !important;
    border-color: #28a745;
}

.btn-outline-primary:hover {
    color: white !important;
    background-color: #28a745 !important;
    border-color: #28a745 !important;
}

.btn-outline-secondary {
    color: #000000 !important;
    border-color: #6c757d !important;
}

.btn-outline-secondary:hover {
    color: white !important;
    background-color: #6c757d !important;
    border-color: #6c757d !important;
}

.btn-secondary {
    color: #000000 !important;
    background-color: #f8f9fa;
    border-color: #f8f9fa;
}

.btn-secondary:hover {
    color: #000000 !important;
    background-color: #e9ecef;
    border-color: #e9ecef;
}

/* Badges */
.badge {
    padding: 6px 12px;
    border-radius: 0.375rem;
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-count {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 0.375rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(40, 167, 69, 0.3);
    margin-left: 8px;
}

/* Navigation Tabs */
.nav-tabs {
    border: none;
    margin-bottom: 1.5rem;
}

.nav-tabs .nav-link {
    border: none;
    background: transparent;
    color: #2d8659;
    font-weight: 600;
    padding: 12px 24px;
    margin-right: 8px;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-tabs .nav-link:hover {
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.1) 0%, rgba(32, 201, 151, 0.1) 100%);
    color: #1e7e34;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.2);
}

.nav-tabs .nav-link.active {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%) !important;
    color: black !important;
    box-shadow: 0 6px 25px rgba(40, 167, 69, 0.3);
    transform: translateY(-2px);
}

/* Ensure active tabs have black text - more specific selectors */
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active:hover,
.nav-tabs .nav-link.active:focus,
.status-tabs .nav-link.active,
.status-tabs .nav-link.active:hover,
.status-tabs .nav-link.active:focus {
    color: black !important;
}

.nav-tabs .nav-link.active .badge-count {
    background-color: rgba(255, 255, 255, 0.3) !important;
    color: black !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Status Tab Containers */
.status-tabs-container {
    background: #ffffff;
    border-radius: 0.375rem;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(40, 167, 69, 0.1);
    margin-bottom: 1.5rem;
}

.status-tabs {
    border: none !important;
    margin-bottom: 0;
}

/* Status badges */
.bg-notstarted { background-color: #6c757d !important; color: white !important; }
.bg-backlog { background-color: #6c757d !important; color: white !important; }
.bg-inprogress { background-color: #007bff !important; color: white !important; }
.bg-readyfortesting { background-color: #17a2b8 !important; color: white !important; }
.bg-testing { background-color: #ffc107 !important; color: #212529 !important; }
.bg-done { background-color: #28a745 !important; color: white !important; }
.bg-blocked { background-color: #dc3545 !important; color: white !important; }

/* Priority badges */
.bg-priority-low { background-color: #e8f5e8 !important; color: #155724 !important; border: 1px solid #c3e6cb !important; }
.bg-priority-medium { background-color: #e6f3ff !important; color: #0066cc !important; border: 1px solid #b3d9ff !important; }
.bg-priority-high { background-color: #fff3cd !important; color: #856404 !important; border: 1px solid #ffeaa7 !important; }

/* User Label badges */
.bg-user-label { 
    background-color: #f8f9fa !important; 
    color: #495057 !important; 
    border: 1px solid #dee2e6 !important;
    font-weight: 500 !important;
}

/* Sprint Board Columns */
.status-column {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 0.375rem;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    position: relative;
    min-height: 500px;
}

.status-header {
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #f0f0f0;
}

.sprint-board {
    margin-top: 2rem;
}

.sprint-board .row {
    margin: 0 -0.5rem;
}

.sprint-board .col-md-3 {
    padding: 0 0.5rem;
}
.bg-priority-critical { background-color: #dc3545 !important; color: white !important; }

/* Story Points badges */
.bg-storypoints { 
    background-color: #e7f3ff !important; 
    color: #0066cc !important; 
    border: 1px solid #b3d9ff !important;
    font-weight: 600 !important;
}

/* Form Controls */
.form-control {
    border-radius: 0.375rem;
    border: 2px solid #e9ecef;
    padding: 12px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
    outline: none;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
    backdrop-filter: blur(4px);
}

.modal-content {
    background: white;
    border-radius: 0.375rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: black;
    padding: 20px 25px;
    border-radius: 0.375rem 0.375rem 0 0;
}

.modal-body {
    padding: 25px;
}

/* Animations */
@keyframes pulse {
    0%, 100% { 
        opacity: 0.9; 
        transform: scale(1);
    }
    50% { 
        opacity: 1; 
        transform: scale(1.02);
    }
}

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

.pulse-active {
    animation: pulse 2s infinite;
}

.fade-in {
    animation: slideInUp 0.5s ease-out forwards;
    opacity: 0;
    transform: translateY(30px);
}

/* Responsive */
@media (max-width: 768px) {
    .content {
        padding: 1rem;
    }
    
    .card {
        margin-bottom: 1rem;
    }
    
    .nav-items {
        flex-wrap: wrap;
        gap: 0.25rem;
    }
    
    .nav-link span {
        display: none;
    }
    
    .nav-link {
        padding: 0.75rem;
    }
    
    /* Welcome Banner Mobile */
    .welcome-hero {
        padding: 1.5rem;
        text-align: center;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .welcome-content .d-flex {
        flex-direction: column !important;
        gap: 1rem;
    }
    
    .welcome-icon {
        align-self: center;
    }
}

/* Welcome Banner */
.welcome-hero {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 0.375rem;
    padding: 2.5rem;
    color: white;
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.welcome-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.welcome-content {
    position: relative;
    z-index: 2;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: black;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.3);
}

.welcome-subtitle {
    font-size: 1.1rem;
    color: rgba(0, 0, 0, 0.8);
    margin-bottom: 0;
    font-weight: 400;
}

.welcome-icon {
    color: rgba(0, 0, 0, 0.7);
    transition: transform 0.3s ease;
}

.welcome-icon:hover {
    transform: scale(1.1);
    color: rgba(0, 0, 0, 1);
}

/* Utility Classes */
.text-center {
    text-align: center;
    padding: 3rem 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem !important;
}

.mt-3 {
    margin-top: 1rem !important;
}

.py-5 {
    padding: 3rem 0 !important;
}

/* Error Boundary */
.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgO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pbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

/* Focus States */
h1:focus {
    outline: none;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}