/* Global Styles */
:root {
    /* Colors */
    --primary-color: #3498db;
    --primary-hover: #2980b9;
    --success-color: #2ecc71;
    --success-hover: #27ae60;
    --danger-color: #e74c3c;
    --danger-hover: #c0392b;
    --sidebar-bg-start: #2c3e50;
    --sidebar-bg-end: #1a252f;
    --text-light: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.5);
    --border-light: rgba(255, 255, 255, 0.1);
    --border-hover: rgba(255, 255, 255, 0.2);
    --form-bg: rgba(255, 255, 255, 0.1);
    --form-bg-hover: rgba(255, 255, 255, 0.15);
}
.page-header h1 {
    font-size: 22px !important;
}
.card-header h5 {
    font-size: 17px !important;
}
/* Sidebar Styles */
.sidebar {
    background: white;
    color: white;
    position: relative;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sidebar-header h3:hover {
    transform: translateX(5px);
}

/* Auth Form Styles */
.auth-form {
    background: var(--form-bg);
    border-radius: 10px;
    padding: 1.25rem;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-light);
    animation: fadeIn 0.3s ease;
}
h1,h2 {
    font-size: 22px;
}
/* Form Control Styles */
.form-floating > .form-control {
    background: var(--form-bg);
    border: 1px solid var(--border-hover);
    color: white;
}

.form-floating > .form-control:focus {
    background: var(--form-bg-hover);
    border-color: var(--border-hover);
    box-shadow: 0 0 0 0.25rem var(--border-light);
}

.form-floating > label {
    color: var(--text-dark);
}

.form-floating > .form-control::placeholder {
    color: var(--text-muted);
}

/* Navigation Styles */
.nav-link {
    color: var(--text-dark) !important;
    padding: 0.5rem 1rem;
    margin: 0.25rem 0;
    transition: all 0.3s ease;
}

.nav-link.active {
    background: rgb(255 255 255 / 31%) !important;
    color: #004370 !important;
}

.nav-link i {
    width: 20px;
    text-align: center;
}

.nav-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

/* User Profile Styles */
.user-profile {
    background: var(--form-bg);
    border-radius: 8px;
    padding: 1rem;
}

.user-avatar {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgb(0 0 0);
    border-radius: 50%;
}

/* Button Styles */
.btn {
    transition: all 0.3s ease;
}


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

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

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

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

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

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

/* Form Validation Styles */
.was-validated .form-control:invalid {
    border-color: var(--danger-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.was-validated .form-control:valid {
    border-color: var(--success-color);
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right calc(0.375em + 0.1875rem) center;
    background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

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

/* Responsive Styles */
@media (max-width: 768px) {
    .sidebar {
        min-height: auto;
        padding: 1rem;
    }
    
    .auth-form {
        padding: 1rem;
    }
}

/* Utility Classes */
.text-decoration-none {
    text-decoration: none !important;
}

.cursor-not-allowed {
    cursor: not-allowed !important;
}

/* Main Content Styles */
.main-content {
    padding: 20px;
}

/* Loading Overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Card Styles */
.card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

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

/* Status Badge */
.status-badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
}

/* Container Styles */
.idea-container {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.idea-header {
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.idea-content {
    margin-bottom: 2rem;
}

.idea-actions {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
} 

.card:hover {
    box-shadow: rgba(0, 0, 0, 0.1) 0px 4px 8px;
    transform: none !important;
}

.btn-secondary {
    background-color: #204a67ab;
    color: white !important;
}
.bg-info{
    background-color: #CCE0FF !important;
}

.modal-backdrop {
    background-color: #484848;
}
.fade {
    transition: opacity 0.08s linear;
}

/* ===== AUTHENTICATION & GLOBAL TRANSITIONS ===== */

/* Smooth Transitions for Auth State Changes */
#authRequiredMessage,
#mainContent {
    transition: opacity 0.3s ease-in-out;
}

#authRequiredMessage {
    opacity: 1;
}

#mainContent {
    opacity: 1;
}

/* Loading states for better UX */
.auth-loading {
    opacity: 0.7;
    pointer-events: none;
}

.auth-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Success notification styling */
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.alert-success .btn-close {
    color: #155724;
}

/* Smooth transitions for admin sections */
#generateKeywordsSection,
.admin-section {
    transition: opacity 0.3s ease-in-out;
}

/* Disabled state with better visual feedback */
.disabled-generate-section,
.disabled-admin-section {
    opacity: 0.7;
    pointer-events: none;
    background-color: #f8f9fa;
    padding: 15px;
    border-radius: 5px;
    transition: opacity 0.3s ease-in-out;
}

.disabled-generate-section::before,
.disabled-admin-section::before {
    content: "Feature disabled for non-admin users";
    display: block;
    text-align: center;
    color: #6c757d;
    font-style: italic;
    margin-bottom: 10px;
}

/* Admin-only button styles */
.btn-outline-secondary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
}

.btn-outline-secondary:disabled:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #6c757d;
    transform: none;
    box-shadow: none;
}

/* Admin-only button with lock icon */
.btn-outline-secondary:disabled i.fa-lock {
    color: #6c757d;
}

/* Task assignment button states for admin only */
.assign-task-btn.btn-success {
    background-color: #198754;
    border-color: #198754;
    color: white;
}

.assign-task-btn.btn-warning {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000;
}

.assign-task-btn.btn-secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    color: white;
}

/* Global loading spinner animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Global fade transitions */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

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

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Global disabled states */
.disabled-element {
    opacity: 0.6;
    pointer-events: none;
    cursor: not-allowed;
}

/* Global success/error message positioning */
.global-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    min-width: 300px;
    max-width: 400px;
}

/* Global auth message container */
.auth-message-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.auth-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-icon i {
    font-size: 2rem;
    color: white;
}

.content-wrapper{
    padding: 16px !important;
}

.content-body{
    padding: 0 !important;
}
.nav-pills .nav-link.active, .nav-pills .show>.nav-link {
    color: #000000 !important;
}

.btn {
    border: 1px solid lightgray !important;
    border-radius: 0 !important;
}
.btn-primary {
    background-color: #ffffff !important;
    color: #000 !important;
}

