/* 
 * Custom CSS for Project Management System
 * projects.hajira.cloud
 */

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f4f6f9;
}

/* Login Page */
.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* Navigation */
.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.3rem;
}

/* Cards */
.card {
    border: none;
    margin-bottom: 20px;
    transition: transform 0.2s;
}

.card:hover {
    transform: translateY(-5px);
}

.card-header {
    font-weight: 600;
    border-bottom: 2px solid rgba(0,0,0,.05);
}

/* Statistics Cards */
.card.bg-primary,
.card.bg-info,
.card.bg-success,
.card.bg-warning {
    border-radius: 10px;
}

.opacity-50 {
    opacity: 0.5;
}

/* Tables */
.table {
    background: white;
}

.table thead th {
    border-bottom: 2px solid #dee2e6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    color: #495057;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Badges */
.badge {
    padding: 0.4em 0.8em;
    font-weight: 500;
}

/* Buttons */
.btn {
    border-radius: 5px;
    padding: 0.5rem 1rem;
    font-weight: 500;
    transition: all 0.3s;
}

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

.btn-sm {
    padding: 0.25rem 0.5rem;
    font-size: 0.875rem;
}

/* Forms */
.form-control {
    border-radius: 5px;
    border: 1px solid #ced4da;
    padding: 0.6rem 0.75rem;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Custom Checkbox */
.custom-control-label {
    cursor: pointer;
}

/* Stage Section */
.stage-section {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

/* Media (Comments) */
.media {
    border-radius: 5px;
}

.media:hover {
    background-color: #f8f9fa;
}

/* Footer */
.footer {
    margin-top: 50px;
    border-top: 1px solid #dee2e6;
}

/* Pagination */
.pagination {
    margin-bottom: 0;
}

.page-link {
    color: #667eea;
    border-radius: 5px;
    margin: 0 2px;
}

.page-link:hover {
    color: #764ba2;
    background-color: #e9ecef;
}

.page-item.active .page-link {
    background-color: #667eea;
    border-color: #667eea;
}

/* Alerts */
.alert {
    border-radius: 8px;
    border: none;
}

.alert-dismissible .close {
    padding: 0.5rem 1rem;
}

/* Modal */
.modal-content {
    border-radius: 10px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.modal-header {
    border-bottom: 2px solid #f1f1f1;
}

.modal-footer {
    border-top: 2px solid #f1f1f1;
}

/* Responsive */
@media (max-width: 768px) {
    .navbar-brand {
        font-size: 1rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .card-body {
        padding: 1rem;
    }
    
    .table {
        font-size: 0.875rem;
    }
}

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

.card {
    animation: fadeIn 0.5s ease-in-out;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Print Styles */
@media print {
    .navbar,
    .btn,
    .footer,
    .no-print {
        display: none !important;
    }
    
    .card {
        box-shadow: none !important;
        border: 1px solid #ddd !important;
    }
}

