/* ============================================
   BUSINESS IDEAS TRACKER - MODERN MINIMAL STYLE
   Navy Blue & Gray Color Scheme
   ============================================ */

/* ===== VARIABLES ===== */
:root {
    --navy-primary: #1a365d;
    --navy-dark: #0f2542;
    --navy-light: #2d4a7c;
    --gray-light: #f7fafc;
    --gray-medium: #e2e8f0;
    --gray-dark: #4a5568;
    --white: #ffffff;
    --black: #1a202c;
    --success: #48bb78;
    --danger: #f56565;
    --warning: #ed8936;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--gray-light);
    color: var(--black);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

/* ===== NAVBAR ===== */
.navbar {
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h2 {
    color: var(--navy-primary);
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    color: var(--gray-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.nav-links a:hover {
    color: var(--navy-primary);
    background-color: var(--gray-light);
}

.nav-user {
    color: var(--gray-dark);
    font-weight: 500;
}

.btn-logout {
    background-color: var(--danger) !important;
    color: var(--white) !important;
    padding: 0.5rem 1.5rem !important;
}

.btn-logout:hover {
    background-color: #e53e3e !important;
}

/* ===== CONTAINER ===== */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

/* ===== AUTHENTICATION PAGES ===== */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.auth-card {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 450px;
    width: 100%;
}

.auth-card h1 {
    color: var(--navy-primary);
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.subtitle {
    color: var(--gray-dark);
    text-align: center;
    margin-bottom: 2rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.demo-credentials {
    margin-top: 2rem;
    padding: 1rem;
    background-color: var(--gray-light);
    border-radius: var(--radius-md);
    text-align: center;
}

.demo-credentials p {
    color: var(--gray-dark);
    font-size: 0.9rem;
    margin: 0.25rem 0;
}

.auth-link {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--gray-medium);
}

.auth-link p {
    color: var(--gray-dark);
    margin: 0;
}

.auth-link a {
    color: var(--navy-primary);
    font-weight: 600;
    text-decoration: none;
}

.auth-link a:hover {
    text-decoration: underline;
}

/* ===== FORMS ===== */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.form-group label {
    color: var(--navy-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"],
.form-group input[type="number"],
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s;
    background-color: var(--white);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--navy-primary);
    box-shadow: 0 0 0 3px rgba(26, 54, 93, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.form-group small {
    color: var(--gray-dark);
    font-size: 0.85rem;
}

.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background-color: var(--gray-light);
    border-radius: var(--radius-md);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--black);
    cursor: pointer;
    font-weight: 500;
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: var(--navy-primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-section {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
    width: 100%;
}

.form-section h3 {
    color: var(--navy-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--gray-medium);
}

.required-note {
    color: var(--danger);
    font-size: 0.85rem;
    font-weight: 400;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 0.75rem 2rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background-color: var(--navy-primary);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--navy-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--gray-medium);
    color: var(--navy-primary);
}

.btn-secondary:hover {
    background-color: var(--gray-dark);
    color: var(--white);
}

.btn-danger {
    background-color: var(--danger);
    color: var(--white);
}

.btn-danger:hover {
    background-color: #e53e3e;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* ===== PAGE HEADER ===== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    color: var(--navy-primary);
    font-size: 2.5rem;
}

.page-header p {
    color: var(--gray-dark);
    margin-top: 0.5rem;
}

/* ===== HERO SECTION ===== */
.hero-section {
    text-align: center;
    margin-bottom: 4rem;
}

.hero-section h1 {
    color: var(--navy-primary);
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-subtitle {
    color: var(--gray-dark);
    font-size: 1.25rem;
    margin-bottom: 3rem;
}

.action-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.action-card {
    background: var(--white);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-decoration: none;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--navy-primary);
}

.card-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.action-card h3 {
    color: var(--navy-primary);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.action-card p {
    color: var(--gray-dark);
    margin: 0;
}

/* ===== FEATURES SECTION ===== */
.features-section {
    margin-top: 4rem;
}

.features-section h2 {
    text-align: center;
    color: var(--navy-primary);
    font-size: 2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature {
    text-align: center;
    padding: 2rem;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature h4 {
    color: var(--navy-primary);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

.feature p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* ===== IDEAS GRID ===== */
.ideas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
}

.idea-card {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.idea-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.idea-card-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--gray-light);
}

.idea-card-header h3 {
    color: var(--navy-primary);
    font-size: 1.25rem;
    margin: 0;
    flex: 1;
}

.potential-badge {
    background-color: var(--warning);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.idea-description {
    color: var(--gray-dark);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.idea-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.detail-row {
    display: flex;
    gap: 0.5rem;
    align-items: start;
}

.detail-label {
    color: var(--navy-primary);
    font-weight: 600;
    min-width: 80px;
}

.strategy-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.strategy-tag {
    background-color: var(--navy-primary);
    color: var(--white);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
}

.cost-value {
    color: var(--success);
    font-weight: 600;
}

.idea-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-light);
    font-size: 0.85rem;
    color: var(--gray-dark);
}

.idea-owner {
    font-weight: 500;
}

.idea-date {
    color: var(--gray-dark);
}

.idea-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: auto;
}

.idea-actions form {
    flex: 1;
}

.idea-actions .btn {
    width: 100%;
}

/* ===== FILTERS ===== */
.filters-section {
    background: var(--white);
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    margin-bottom: 2rem;
}

.filters-form {
    display: flex;
    gap: 1rem;
    align-items: end;
}

.filter-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-group label {
    color: var(--navy-primary);
    font-weight: 600;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    border: 2px solid var(--gray-medium);
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

/* ===== EMPTY STATE ===== */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
}

.empty-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    color: var(--navy-primary);
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--gray-dark);
    margin-bottom: 2rem;
}

/* ===== MESSAGES ===== */
.error-message {
    background-color: #fed7d7;
    color: #c53030;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--danger);
}

.info-message {
    background-color: #bee3f8;
    color: #2c5282;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    border-left: 4px solid var(--navy-primary);
}

/* ===== COLLABORATORS ===== */
.collaborators-section {
    margin-top: 3rem;
}

.collaborators-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.collaborator-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background-color: var(--gray-light);
    border-radius: var(--radius-md);
}

.collaborator-item span {
    color: var(--navy-primary);
    font-weight: 500;
}

.add-collaborator-form {
    margin-top: 1.5rem;
}

.text-muted {
    color: var(--gray-dark);
    font-style: italic;
}

/* ===== FOOTER ===== */
.footer {
    background-color: var(--navy-primary);
    color: var(--white);
    text-align: center;
    padding: 2rem;
    margin-top: auto;
}

.footer p {
    margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    
    .hero-section h1 {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .action-cards {
        grid-template-columns: 1fr;
    }
    
    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .ideas-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions .btn {
        width: 100%;
    }
}