/* Additional styles for CQ HCM */

/* Dashboard specific */
.dashboard-header {
    margin-bottom: 32px;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: #1F2933;
    margin: 0 0 8px 0;
}

.page-subtitle {
    font-size: 16px;
    color: #6B7A8F;
    margin: 0;
}

/* Activity timeline */
.activity-timeline {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.activity-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid #E6E9EC;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-time {
    font-size: 12px;
    color: #6B7A8F;
    min-width: 70px;
}

.activity-text {
    flex: 1;
    margin: 0;
    font-size: 14px;
}

/* Quick actions */
.quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.quick-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px;
    background: #F7F9FA;
    border: 1px solid #E6E9EC;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 12px;
    color: #1F2933;
}

.quick-action-btn:hover {
    background: white;
    border-color: #009DB8;
    transform: translateY(-2px);
}

.quick-action-btn span {
    font-size: 24px;
}

/* Employee grid */
.employee-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.employee-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    transition: all 0.2s;
}

.employee-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.05);
}

.employee-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 3px solid #F7F9FA;
}

.employee-card h4 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
}

.employee-position {
    color: #009DB8;
    font-size: 14px;
    margin: 0 0 4px 0;
}

.employee-dept {
    color: #6B7A8F;
    font-size: 12px;
    margin: 0 0 16px 0;
}

.card-actions {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

/* Search filters */
.search-filters {
    display: flex;
    gap: 16px;
    margin: 24px 0;
    background: white;
    padding: 16px;
    border-radius: 8px;
}

.filter-search {
    flex: 1;
    padding: 12px;
    border: 1px solid #E6E9EC;
    border-radius: 8px;
    font-size: 14px;
}

.filter-select {
    padding: 12px;
    border: 1px solid #E6E9EC;
    border-radius: 8px;
    min-width: 180px;
    background: white;
}

/* View toggles */
.view-toggles {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.view-toggle-btn {
    padding: 8px 16px;
    background: white;
    border: 1px solid #E6E9EC;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.view-toggle-btn.active {
    background: #009DB8;
    color: white;
    border-color: #009DB8;
}

/* Profile drawer */
.profile-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 400px;
    height: 100vh;
    background: white;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
    transition: right 0.3s ease;
    z-index: 1000;
}

.profile-drawer.active {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid #E6E9EC;
}

.drawer-header h3 {
    margin: 0;
    font-size: 20px;
}

.close-drawer {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6B7A8F;
}

.drawer-content {
    padding: 24px;
    overflow-y: auto;
    height: calc(100vh - 80px);
}

.profile-header {
    text-align: center;
    margin-bottom: 32px;
}

.profile-header img {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    margin-bottom: 16px;
}

.profile-header h4 {
    margin: 0 0 4px 0;
    font-size: 20px;
}

.profile-header p {
    margin: 0;
    color: #6B7A8F;
}

.profile-section {
    margin-bottom: 24px;
}

.profile-section h5 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px 0;
    color: #1F2933;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.info-grid div {
    font-size: 14px;
}

.info-grid label {
    color: #6B7A8F;
    font-weight: 500;
    margin-right: 8px;
}

/* Attendance summary */
.attendance-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.summary-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.summary-card h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6B7A8F;
}

.summary-value {
    font-size: 28px;
    font-weight: 600;
    display: block;
    margin-bottom: 4px;
}

.summary-label {
    font-size: 12px;
    color: #6B7A8F;
}

/* Date filter */
.date-filter {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    background: white;
    padding: 16px;
    border-radius: 8px;
}

.filter-date {
    padding: 10px;
    border: 1px solid #E6E9EC;
    border-radius: 6px;
    font-family: inherit;
}

/* Bulk actions */
.bulk-actions {
    margin-top: 24px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    display: flex;
    gap: 12px;
}

/* Payroll batches */
.payroll-batches {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 32px;
}

.batch-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
    border: 1px solid #E6E9EC;
}

.batch-card.active {
    border-color: #009DB8;
    box-shadow: 0 0 0 2px rgba(0,157,184,0.1);
}

.batch-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.batch-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.batch-details {
    margin-bottom: 16px;
}

.batch-details div {
    font-size: 14px;
    color: #6B7A8F;
    margin-bottom: 4px;
}

/* Leave balances */
.leave-balances {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.balance-card {
    background: white;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.balance-card h4 {
    margin: 0 0 12px 0;
    font-size: 14px;
    color: #6B7A8F;
}

.balance-value {
    font-size: 32px;
    font-weight: 600;
    color: #1F2933;
    margin-bottom: 8px;
}

.balance-value small {
    font-size: 14px;
    font-weight: normal;
    color: #6B7A8F;
}

.balance-used {
    font-size: 12px;
    color: #6B7A8F;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    background: white;
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content h3 {
    margin: 0 0 24px 0;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #1F2933;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #E6E9EC;
    border-radius: 6px;
    font-family: inherit;
    font-size: 14px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #009DB8;
    box-shadow: 0 0 0 3px rgba(0,157,184,0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

/* Module headers */
.module-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.module-header h2 {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
}

.header-actions {
    display: flex;
    gap: 12px;
}