/* CenTrust Capital - HR Portal CSS */

:root {
    --primary-color: #003366;
    --secondary-color: #0066cc;
    --accent-color: #ffcc00;
    --dark-color: #002244;
    --light-color: #f0f8ff;
    --danger-color: #dc3545;
    --success-color: #28a745;
    --info-color: #17a2b8;
    --warning-color: #ffc107;
}

body {
    font-family: 'Arial', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f5f5f5;
    color: #333;
}

/* Header Styles */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    color: white !important;
    padding: 0;
}

.navbar-brand img {
    max-height: 40px;
    background-color: white;
    padding: 3px;
    border-radius: 5px;
}

.navbar-nav .nav-link {
    color: white !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    margin: 0 0.2rem;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
    background-color: var(--secondary-color);
    border-radius: 4px;
}

/* Main Content Styles */
.main-content {
    padding: 2rem 0;
    min-height: 70vh;
}

.page-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--accent-color);
}

.card {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
    border: none;
    border-radius: 8px;
}

.card-header {
    background-color: var(--primary-color);
    color: white;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
}

.card-body {
    padding: 1.5rem;
}

/* Table Styles */
.table {
    width: 100%;
    margin-bottom: 0;
}

.table thead th {
    background-color: var(--secondary-color);
    color: white;
    font-weight: 600;
    border-bottom: none;
}

.table-striped tbody tr:nth-of-type(odd) {
    background-color: rgba(0, 102, 204, 0.05);
}

/* Form Styles */
.form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem 1rem;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 102, 204, 0.25);
}

.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

/* Footer Styles */
.footer {
    background-color: var(--dark-color);
    color: white;
    padding: 2rem 0;
    margin-top: 2rem;
}

.footer img {
    background-color: white;
    padding: 5px;
    border-radius: 5px;
    margin-bottom: 15px;
    max-width: 100%;
}

.footer h5 {
    color: var(--accent-color);
    font-weight: 600;
    margin-bottom: 1rem;
}

.footer ul {
    list-style: none;
    padding-left: 0;
}

.footer ul li {
    margin-bottom: 0.5rem;
}

.footer a {
    color: #ddd;
    text-decoration: none;
}

.footer a:hover {
    color: white;
    text-decoration: underline;
}

.footer-bottom {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 1rem 0;
    margin-top: 1rem;
}

.slogan {
    font-style: italic;
    color: var(--accent-color);
    font-weight: 500;
}

/* Accessibility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Alert messages */
.alert {
    border-radius: 4px;
    padding: 1rem;
    margin-bottom: 1rem;
}

/* Custom class for search results highlighting */
.search-highlight {
    background-color: var(--warning-color);
    padding: 2px 0;
}

/* Search box styling */
.search-box {
    margin-bottom: 1.5rem;
}

/* Custom avatar for messages */
.message-avatar {
    width: 50px;
    height: 50px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

/* Message container */
.message-container {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1rem;
    margin-bottom: 1rem;
}

/* Logs table */
.restricted-log {
    background-color: rgba(220, 53, 69, 0.1) !important;
}

/* Dashboard stats */
.stats-box {
    text-align: center;
    padding: 1.5rem;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.stats-box i {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.stats-box h3 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.stats-box p {
    color: #777;
    font-size: 1rem;
    margin-bottom: 0;
}
