/* CSS Document */
:root { 
    --main: #D32F2F; 
    --dark: #B71C1C; 
    --bg: #f8f9fa; 
    --light: #ffebee;
    --success: #4CAF50;
    --warning: #ff9800;
    --info: #2196F3;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
}

* {
    box-sizing: border-box;
}

body { 
    font-family: 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif; 
    background: var(--bg); 
    margin: 0; 
    color: var(--text);
    line-height: 1.6;
}

/* Sidebar Navigation */
.sidebar { 
    width: 250px; 
    background: linear-gradient(180deg, var(--dark) 0%, #8B0000 100%);
    height: 100vh; 
    color: #fff; 
    position: fixed;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
    z-index: 100;
}

.sidebar h2 { 
    padding: 25px 20px; 
    border-bottom: 1px solid rgba(255,255,255,0.1); 
    margin: 0;
    font-size: 1.5rem;
    background: rgba(0,0,0,0.1);
}

.sidebar-nav {
    padding: 15px 0;
}

.sidebar a { 
    display: block; 
    color: rgba(255,255,255,0.9); 
    padding: 0px 0px; 
    text-decoration: none; 
    font-weight: 200;
    transition: all 0.3s ease;
    margin: 5px 5px;
    border-radius: 6px;
    position: relative;
}

.sidebar a:hover { 
    background: var(--main); 
    color: #fff;
    transform: translateX(5px);
}

.sidebar a.active { 
    background: rgba(255,255,255,0.15); 
    color: #fff;
    border-left: 4px solid #fff;
}

.sidebar a.active:hover {
    background: rgba(255,255,255,0.2);
}

.sidebar hr {
    margin: 15px 20px;
    border-color: rgba(255,255,255,0.1);
}

.sidebar .logout {
    background: rgba(0,0,0,0.2);
    margin-top: 20px;
    border-radius: 6px;
}

/* Content Area */
.container { 
    margin-left: 250px; 
    padding: 30px; 
    width: calc(100% - 250px);
    min-height: 100vh;
    background: var(--bg);
}

.card { 
    background: #fff; 
    padding: 25px; 
    border-radius: 12px; 
    box-shadow: 0 5px 20px rgba(0,0,0,0.05); 
    margin-bottom: 25px; 
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
}

.card h2, .card h3, .card h4 {
    margin-top: 0;
    color: var(--dark);
}

/* Activity Stream UI */
.activity-item { 
    border-left: 3px solid var(--main); 
    padding: 15px; 
    margin-bottom: 10px; 
    background: #fff5f5; 
    border-radius: 0 8px 8px 0; 
    font-size: 0.95em;
    transition: background 0.3s ease;
}

.activity-item:hover {
    background: #ffeaea;
}

.activity-time { 
    color: var(--text-light); 
    font-size: 0.85em; 
    display: block;
    margin-top: 5px;
}

/* Budget Progress Bars */
.progress-bg { 
    background: #eee; 
    border-radius: 10px; 
    height: 12px; 
    width: 100%; 
    margin: 15px 0;
    overflow: hidden;
}

.progress-bar { 
    background: linear-gradient(90deg, var(--main), #ff5252); 
    height: 100%; 
    border-radius: 10px; 
    transition: 0.5s;
    position: relative;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background-image: linear-gradient(
        45deg,
        rgba(255, 255, 255, 0.15) 25%,
        transparent 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.15) 50%,
        rgba(255, 255, 255, 0.15) 75%,
        transparent 75%,
        transparent
    );
    background-size: 1rem 1rem;
}

/* Status indicators */
.status-online { 
    color: var(--success); 
    font-weight: bold;
}

.status-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-right: 8px;
}

.status-dot.online {
    background: var(--success);
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.status-dot.offline {
    background: var(--text-light);
}

.status-dot.away {
    background: var(--warning);
}

/* Buttons */
.btn-red {
    background: linear-gradient(135deg, var(--main), var(--dark));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-red:hover {
    background: linear-gradient(135deg, var(--dark), #8B0000);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(211, 47, 47, 0.3);
}

.btn-secondary {
    background: #f5f5f5;
    color: var(--text);
    border: 1px solid var(--border);
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #e0e0e0;
}

/* Form Elements */
.input, input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fff;
}

.input:focus, input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--main);
    box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.1);
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th {
    background: #f5f5f5;
    padding: 12px 15px;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    border-bottom: 2px solid var(--border);
}

table td {
    padding: 12px 15px;
    border-bottom: 1px solid var(--border);
}

table tr:hover {
    background: #f9f9f9;
}

/* Dashboard Cards */
.dashboard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

.stat-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    text-align: center;
}

.stat-card h3 {
    font-size: 2.5rem;
    margin: 10px 0;
    color: var(--dark);
}

.stat-card p {
    color: var(--text-light);
    margin: 0;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    margin: 0 5px;
}

.badge-success {
    background: #e8f5e9;
    color: var(--success);
}

.badge-warning {
    background: #fff3e0;
    color: var(--warning);
}

.badge-danger {
    background: #ffebee;
    color: var(--main);
}

.badge-info {
    background: #e3f2fd;
    color: var(--info);
}

/* Alert Messages */
.alert {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #e8f5e9;
    border-left-color: var(--success);
    color: #2e7d32;
}

.alert-error {
    background: #ffebee;
    border-left-color: var(--main);
    color: #c62828;
}

.alert-info {
    background: #e3f2fd;
    border-left-color: var(--info);
    color: #1565c0;
}

/* Footer */
footer {
    margin-left: 250px;
    padding: 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    border-top: 1px solid var(--border);
    background: #fff;
}

/* Responsive */
@media (max-width: 768px) {
    .sidebar {
        width: 70px;
    }
    
    .sidebar h2 {
        font-size: 0;
        padding: 25px 0;
        text-align: center;
    }
    
    .sidebar h2::before {
        content: "RT";
        font-size: 1.5rem;
    }
    
    .sidebar a {
        text-align: center;
        padding: 15px 0;
        margin: 5px;
    }
    
    .sidebar a span {
        display: none;
    }
    
    .container {
        margin-left: 70px;
        width: calc(100% - 70px);
        padding: 20px;
    }
    
    footer {
        margin-left: 70px;
    }
	
	
	/* Dashboard Specific Styles */
.dashboard-header {
    background: white;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 25px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.project-item {
    transition: all 0.3s ease;
    border-left: 4px solid;
}

.project-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.quick-action-btn {
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 20px 15px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text);
}

.quick-action-btn:hover {
    background: var(--main);
    color: white;
    transform: translateY(-3px);
    border-color: var(--main);
}

.quick-action-btn i {
    font-size: 24px;
    margin-bottom: 10px;
    display: block;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    padding: 3px 8px;
    border-radius: 12px;
    background: #f5f5f5;
}

.status-indicator.online::before {
    content: '';
    width: 8px;
    height: 8px;
    background: #4CAF50;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* Loading States */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Chart Containers */
.chart-container {
    background: white;
    padding: 20px;
    border-radius: 10px;
    margin: 20px 0;
}

/* Alert Badges */
.alert-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--main);
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tab Navigation */
.dashboard-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.dashboard-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-weight: 500;
    color: var(--text-light);
}

.dashboard-tab.active {
    color: var(--main);
    border-bottom-color: var(--main);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-light);
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-color: #4CAF50;
}

.alert-error, .alert-danger {
    background: #FFEBEE;
    color: #C62828;
    border-color: #D32F2F;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.pagination a, .pagination span {
    padding: 8px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
}

.pagination a {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.pagination a:hover {
    background: #e0e0e0;
}

.pagination span.current {
    background: var(--main);
    color: white;
    border: 1px solid var(--main);
}

.pagination-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}
.alert {
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 20px;
    animation: slideIn 0.3s ease;
}

.alert-success {
    background: #E8F5E9;
    color: #2E7D32;
    border-left: 4px solid #4CAF50;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.task-item {
    transition: all 0.3s ease;
}

.btn-secondary {
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Add to your existing CSS in project_view.php */
@font-face {
    font-family: 'NairaFont';
    src: local('Arial'), local('Helvetica');
}

.naira-symbol {
    font-family: 'NairaFont', Arial, sans-serif;
    font-weight: bold;
}

/* Ensure all currency displays use proper font */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Style for budget displays */
.budget-display::before {
    content: '?';
    font-family: Arial, sans-serif;
    font-weight: bold;
}
/* Add to your existing CSS */
.activity-item {
    padding: 15px;
    border-bottom: 1px solid #eee;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background-color: #f9f9f9;
}

.activity-item.has-task {
    border-left: 4px solid #4CAF50;
    background-color: #f8f9fa;
}

.activity-time {
    display: block;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

