* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

header {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    color: #667eea;
    margin-bottom: 0.5rem;
}

header p {
    color: #666;
    font-size: 1.1rem;
}

main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

section {
    background: rgba(255, 255, 255, 0.95);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

section h2 {
    color: #667eea;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #667eea;
}

#news-container {
    min-height: 100px;
}

.news-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.news-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.news-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.news-item a {
    color: #667eea;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 2rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
}

/* Portal cards for index page */
.portal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.portal-card {
    display: block;
    background: #f8f9fa;
    padding: 2rem;
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 2px solid transparent;
}

.portal-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #667eea;
}

.portal-card h3 {
    color: #667eea;
    margin-bottom: 0.75rem;
    font-size: 1.3rem;
}

.portal-card p {
    color: #666;
}

/* News page specific */
#news-container {
    min-height: 100px;
}

.news-item {
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 4px;
}

.news-item h3 {
    margin-bottom: 0.5rem;
    color: #333;
}

.news-item p {
    color: #666;
    margin-bottom: 0.5rem;
}

.news-item a {
    color: #667eea;
    text-decoration: none;
}

.news-item a:hover {
    text-decoration: underline;
}

/* Task Manager (Brain Dump) styles */
.container {
    max-width: 800px;
    margin: 0 auto;
}

main {
    background: rgba(255, 255, 255, 0.05);
    padding: 2rem;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    margin-bottom: 2rem;
}

.controls, .filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.btn {
    padding: 0.5rem 1rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.2s;
    background: rgba(102, 126, 234, 0.2);
    color: #667eea;
    border: 1px solid #667eea;
}

.btn:hover {
    background: rgba(102, 126, 234, 0.4);
}

.btn-primary {
    background: #667eea;
    color: white;
    border: none;
}

.btn-primary:hover {
    background: #5568d3;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #aaa;
    border: 1px solid #555;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
}

.filter-btn {
    background: transparent;
    border: 1px solid #444;
    color: #aaa;
}

.filter-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.task-list {
    list-style: none;
    margin-bottom: 2rem;
}

.task-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 1rem 1.5rem;
    margin-bottom: 0.75rem;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all 0.2s;
    border-left: 4px solid transparent;
}

.task-item:hover {
    background: rgba(255, 255, 255, 0.08);
}

.task-item.completed {
    opacity: 0.6;
}

.task-item.completed .task-text {
    text-decoration: line-through;
}

.task-item[data-category="personal"] {
    border-left-color: #ff6b6b;
}

.task-item[data-category="work"] {
    border-left-color: #4ecdc4;
}

.task-item[data-category="ideas"] {
    border-left-color: #ffe66d;
}

.task-item[data-category="shopping"] {
    border-left-color: #ff9f43;
}

.task-item[data-category="other"] {
    border-left-color: #a29bfe;
}

.task-checkbox {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: #667eea;
}

.task-content {
    flex: 1;
}

.task-text {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.task-meta {
    font-size: 0.8rem;
    color: #888;
    display: flex;
    gap: 1rem;
}

.task-category {
    background: rgba(102, 126, 234, 0.2);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.task-date {
    color: #666;
}

.delete-btn {
    background: rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    border: none;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.delete-btn:hover {
    background: rgba(255, 107, 107, 0.4);
}

.add-task {
    background: rgba(255, 255, 255, 0.03);
    padding: 1.5rem;
    border-radius: 10px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.add-task h3 {
    margin-bottom: 1rem;
    color: #667eea;
}

#add-task-form {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

#task-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 1rem;
}

#task-input:focus {
    outline: none;
    border-color: #667eea;
    background: rgba(255, 255, 255, 0.08);
}

#category-input {
    padding: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    color: #e0e0e0;
    font-size: 1rem;
    cursor: pointer;
}

#category-input:focus {
    outline: none;
    border-color: #667eea;
}

footer .note {
    font-size: 0.8rem;
    margin-top: 0.5rem;
    color: #555;
}

.empty-state {
    text-align: center;
    padding: 3rem;
    color: #666;
}

.empty-state p {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 768px) {
    main {
        padding: 0 0.5rem;
    }
    
    section {
        padding: 1.5rem;
    }
}

@media (max-width: 600px) {
    body {
        padding: 1rem 0.5rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .task-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .delete-btn {
        align-self: flex-end;
    }
    
    #add-task-form {
        flex-direction: column;
    }
    
    #task-input, #category-input, .btn {
        width: 100%;
    }
}
