/* assets/css/style.css */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #f4f4f4;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* Form Styles */
.login-form, .register-form {
    max-width: 500px;
    margin: 50px auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.form-group {
    margin-bottom: 15px;
}

label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
}

input[type="text"],
input[type="password"],
input[type="email"],
select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Button Styles */
.btn-primary {
    display: inline-block;
    padding: 10px 20px;
    background: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #0056b3;
}

/* Message Styles */
.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    padding: 10px;
    margin-bottom: 15px;
    border-radius: 4px;
}

/* Table Styles */
.table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.table th,
.table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

/* Navigation Styles */
.nav {
    background: #333;
    padding: 1rem;
    margin-bottom: 2rem;
}

.nav-list {
    list-style: none;
    display: flex;
    gap: 1rem;
}

.nav-list li a {
    color: #fff;
    text-decoration: none;
}

.nav-list li a:hover {
    color: #007bff;
}

/* Add these styles to your existing style.css file */

.form-card {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.btn-danger {
    display: inline-block;
    padding: 8px 16px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-secondary {
    display: inline-block;
    padding: 8px 16px;
    background: #6c757d;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.btn-secondary:hover {
    background: #5a6268;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: #fff;
    margin: 15% auto;
    padding: 20px;
    border-radius: 5px;
    width: 80%;
    max-width: 500px;
    position: relative;
}

/* Additional table styles */
.table button {
    margin: 0 5px;
}

.table td form {
    display: inline;
}

/* Add these styles to your existing style.css file */

.evaluation-form {
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.form-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.form-section h2 {
    margin-bottom: 20px;
    color: #333;
    font-size: 1.5em;
}

.evaluation-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
}

.evaluation-table th,
.evaluation-table td {
    padding: 12px;
    border: 1px solid #ddd;
    text-align: left;
}

.evaluation-table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.evaluation-table .description {
    font-size: 0.9em;
    color: #666;
    margin-top: 5px;
}

.rating-cell {
    text-align: center;
    width: 80px;
}

.rating-cell input[type="radio"] {
    margin-right: 5px;
}

.action-step {
    background: #f8f9fa;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

.action-step .form-group {
    margin-bottom: 15px;
}

.action-step textarea {
    min-height: 80px;
}

.form-actions {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
    text-align: right;
}

.form-actions button {
    margin-left: 10px;
}

.form-info {
    background: #e9ecef;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    color: #495057;
}

textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
}

/* Print styles for evaluation form */
@media print {
    .nav,
    .form-actions,
    button {
        display: none;
    }
    
    .evaluation-form {
        box-shadow: none;
        padding: 0;
    }
    
    .action-step {
        border: 1px solid #000;
        break-inside: avoid;
    }
    
    .evaluation-table th,
    .evaluation-table td {
        border: 1px solid #000;
    }
}

/* assets/css/print.css */
body {
    font-family: Arial, sans-serif;
    font-size: 12pt;
    line-height: 1.4;
    margin: 0;
    padding: 20px;
    background: white;
}

.print-container {
    max-width: 210mm; /* A4 width */
    margin: 0 auto;
}

.company-header {
    text-align: center;
    margin-bottom: 30px;
    border-bottom: 2px solid #000;
    padding-bottom: 20px;
}

.company-header img {
    max-width: 150px;
    margin-bottom: 10px;
}

.company-header h1 {
    margin: 5px 0;
    font-size: 18pt;
}

.company-header p {
    margin: 5px 0;
    font-size: 14pt;
}

.evaluation-title {
    text-align: center;
    font-size: 16pt;
    margin: 20px 0;
}

/* Tables */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
}

th, td {
    border: 1px solid #000;
    padding: 8px;
    text-align: left;
}

th {
    background-color: #f0f0f0;
}

.info-table {
    margin-bottom: 30px;
}

.info-table td {
    width: 25%;
}

.criteria-table td.center {
    text-align: center;
}

/* Sections */
.section {
    margin: 20px 0;
    page-break-inside: avoid;
}

h3 {
    font-size: 14pt;
    margin: 20px 0 10px 0;
}

.rating-box {
    text-align: center;
    padding: 10px;
    border: 2px solid #000;
    margin: 10px 0;
    font-size: 14pt;
}

.text-content {
    border: 1px solid #000;
    padding: 10px;
    margin: 10px 0;
}

.signature-section {
    margin-top: 50px;
    page-break-inside: avoid;
}

.signature-table {
    border: none;
}

.signature-table td {
    border: none;
    width: 33.33%;
    vertical-align: top;
    padding: 10px;
}

/* Print-specific styles */
@media print {
    body {
        padding: 0;
    }
    
    .print-container {
        width: 100%;
    }
    
    table {
        page-break-inside: avoid;
    }
    
    .signature-section {
        position: relative;
        margin-top: auto;
    }
}

/* Rating colors */
.outstanding { color: #006400; }
.excellent { color: #0000FF; }
.satisfactory { color: #808000; }
.unsatisfactory { color: #FF0000; }

/* Add these styles to your existing style.css file */

.dashboard {
    padding: 20px;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.dashboard-header h1 {
    margin: 0;
    color: #333;
}

/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.stat-card:hover {
    transform: translateY(-2px);
}

.stat-card.highlight {
    border-left: 4px solid #007bff;
}

.stat-icon {
    font-size: 24px;
    margin-right: 15px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8f9fa;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    margin: 0;
    font-size: 14px;
    color: #666;
}

.stat-number {
    font-size: 24px;
    font-weight: bold;
    color: #333;
    margin: 5px 0 0;
}

/* Dashboard Grid */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.dashboard-section {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.dashboard-section h2 {
    margin: 0 0 20px;
    color: #333;
    font-size: 18px;
}

/* Charts */
.chart-container {
    height: 300px;
    position: relative;
}

/* Tables */
.dashboard-table {
    width: 100%;
    border-collapse: collapse;
}

.dashboard-table th,
.dashboard-table td {
    padding: 12px;
    border-bottom: 1px solid #eee;
    text-align: left;
}

.dashboard-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #333;
}

.dashboard-table tr:hover {
    background: #f8f9fa;
}

/* Status Badges */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-draft { background: #ffd700; color: #000; }
.status-submitted { background: #87ceeb; color: #000; }
.status-approved { background: #90ee90; color: #000; }
.status-rejected { background: #ffcccb; color: #000; }

/* Recent Approvals */
.approvals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.approval-card {
    background: white;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    border: 1px solid #eee;
}

.approval-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.department-badge {
    background: #e9ecef;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
}

.approval-content {
    margin-bottom: 15px;
}

.approval-content p {
    margin: 5px 0;
    color: #666;
}

.approval-actions {
    text-align: right;
}

/* Activity Timeline */
.activity-timeline {
    padding: 10px 0;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    padding: 10px 0;
    border-left: 2px solid #eee;
    margin-left: 20px;
}

.activity-date {
    background: #f8f9fa;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: -32px;
    margin-right: 15px;
}

.activity-content {
    flex: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .approval-card {
        min-width: 100%;
    }
}

/* Print Styles */
@media print {
    .dashboard {
        padding: 0;
    }
    
    .stat-card, .dashboard-section {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .chart-container {
        break-inside: avoid;
    }
}

/* Management Dashboard Specific Styles */
.management-dashboard .date-filter {
    display: flex;
    align-items: center;
    gap: 10px;
}

.management-dashboard select {
    padding: 8px;
    border-radius: 4px;
    border: 1px solid #ddd;
    background: white;
}

/* Chart Section Styles */
.chart-section {
    min-height: 400px;
}

/* Overview Cards */
.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.overview-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* No Data States */
.no-data {
    text-align: center;
    padding: 40px;
    color: #666;
    background: #f8f9fa;
    border-radius: 8px;
    margin: 20px 0;
}

/* Button Styles */
.btn-sm {
    padding: 4px 8px;
    font-size: 12px;
}

/* Evaluation Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #eee;
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: #007bff;
    transition: width 0.3s ease;
}

/* Department Comparison Table */
.comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 4px;
}

.comparison-table th,
.comparison-table td {
    padding: 12px;
}

.comparison-table tr:nth-child(even) {
    background: #f8f9fa;
}

/* Alert Messages */
.dashboard-alert {
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid;
}

.dashboard-alert.info {
    background: #e3f2fd;
    border-left-color: #2196f3;
}

.dashboard-alert.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

/* Tooltip Styles */
.tooltip {
    position: relative;
    display: inline-block;
}

.tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    padding: 8px;
    background: #333;
    color: white;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    transition: opacity 0.3s;
}

/* Loading States */
.loading {
    position: relative;
    min-height: 200px;
}

.loading::after {
    content: 'Loading...';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #666;
}

/* Mobile Optimizations */
@media (max-width: 576px) {
    .dashboard-header {
        flex-direction: column;
        gap: 15px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 8px;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .dashboard {
        background: #1a1a1a;
        color: #fff;
    }
    
    .stat-card,
    .dashboard-section,
    .overview-card {
        background: #2d2d2d;
        box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    }
    
    .dashboard-table th {
        background: #333;
    }
    
    .dashboard-table tr:hover {
        background: #333;
    }
    
    .status-badge {
        opacity: 0.9;
    }
}

/* Add to your assets/css/style.css */

.review-evaluation {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.employee-info {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.info-item label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #666;
}

.review-section {
    background: white;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.review-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.review-table th,
.review-table td {
    padding: 12px;
    border: 1px solid #ddd;
}

.review-table th {
    background: #f8f9fa;
    font-weight: bold;
}

.radio-group {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.radio-group label {
    display: flex;
    align-items: center;
    gap: 5px;
}

.decision-group {
    display: flex;
    gap: 30px;
    margin: 20px 0;
}

.decision-group label {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
}

.decision-group label:hover {
    background: #f8f9fa;
}

.status-message {
    text-align: center;
    padding: 20px;
}

.status-badge {
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    text-transform: uppercase;
    font-size: 12px;
}

/* Department Head Dashboard Fixes */
.department-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.pending-reviews {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.overview-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 20px;
}

.chart-container {
    min-height: 300px;
}

/* Make sure the page has a minimum height */
.dashboard {
    min-height: calc(100vh - 200px); /* Adjust based on your header/footer height */
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}