/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    background: #ffffff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

/* Header Styles */
header {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: white;
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 1.8rem;
    font-weight: 600;
}

header h1 i {
    margin-right: 0.5rem;
    color: #e74c3c;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 0.9rem;
}

/* Navigation */
.main-nav {
    background: #ecf0f1;
    display: flex;
    border-bottom: 1px solid #bdc3c7;
}

.nav-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.5rem;
    text-decoration: none;
    color: #2c3e50;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
}

.nav-item:hover {
    background: #d5dbdb;
    color: #e74c3c;
}

.nav-item.active {
    background: #3498db;
    color: white;
    border-bottom-color: #2980b9;
}

.nav-item i {
    margin-right: 0.5rem;
}

/* Button Styles */
.btn-primary, .btn-secondary, .btn-small, .action-btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: #3498db;
    color: white;
}

.btn-primary:hover {
    background: #2980b9;
    transform: translateY(-1px);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.action-btn {
    background: #2c3e50;
    color: white;
    padding: 1rem 1.5rem;
    flex: 1;
    justify-content: center;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.stat-icon {
    background: #3498db;
    color: white;
    padding: 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
}

.stat-content h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: #2c3e50;
    display: block;
}

.stat-change {
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: block;
}

.stat-change.positive { color: #27ae60; }
.stat-change.warning { color: #f39c12; }
.stat-change.urgent { color: #e74c3c; }

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.dashboard-section {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

/* Task Styles */
.task-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.task-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.task-item.high { border-left-color: #e74c3c; background: #fdf2f2; }
.task-item.medium { border-left-color: #f39c12; background: #fef9e7; }
.task-item.low { border-left-color: #27ae60; background: #eafaf1; }

/* Status and Priority */
.status, .priority {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status.planning { background: #f39c12; color: white; }
.status.in-progress { background: #3498db; color: white; }
.status.review { background: #9b59b6; color: white; }
.status.completed { background: #27ae60; color: white; }

.priority.high { background: #e74c3c; color: white; }
.priority.medium { background: #f39c12; color: white; }
.priority.low { background: #27ae60; color: white; }

/* Tables */
.project-table, .communication-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.project-table th, .communication-table th {
    background: #2c3e50;
    color: white;
    padding: 1rem;
    text-align: left;
}

.project-table td, .communication-table td {
    padding: 1rem;
    border-bottom: 1px solid #ecf0f1;
}

/* Progress Bar */
.progress-bar {
    background: #ecf0f1;
    border-radius: 10px;
    height: 25px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
    transition: width 0.5s ease;
}

/* Quick Actions */
.quick-actions {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.action-buttons {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .main-nav {
        flex-direction: column;
    }
    
    header {
        flex-direction: column;
        gap: 1rem;
    }
}
