/**
 * APC Calendar - Dashboard Styles
 * v1.1.0 Stable
 */

.apc-employee-dashboard,
.apc-company-dashboard,
.apc-admin-dashboard {
    padding: var(--apc-spacing-md) 0;
    /* Reduced vertical, zero horizontal to avoid double padding */
    max-width: 100%;
}

/* Version Badge */
.apc-version-badge {
    margin-left: auto;
    font-size: 10px !important;
    background: #1e2937 !important;
    color: #fff !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Tab Content Alignment Fix */
.apc-tab-content {
    padding: 20px 0 !important;
}

/* Action Buttons */
#apc-create-user-btn,
#apc-create-category-btn {
    margin-bottom: 20px;
}

/* Table Structure & Alignment */
.apc-table {
    width: 100% !important;
    border-collapse: separate !important;
    border-spacing: 0 !important;
    background: #fff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    margin: 15px 0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

.apc-table th {
    text-align: left !important;
    padding: 12px 15px !important;
    background: #f9fafb !important;
    color: #4b5563 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.apc-table td {
    padding: 10px 15px !important;
    border-bottom: 1px solid #f3f4f6 !important;
    vertical-align: middle !important;
    font-size: 13px !important;
    /* Controlled font size */
    color: #1f2937 !important;
}

.apc-table tr:last-child td {
    border-bottom: none !important;
}

/* Action Icons - Larger and More Visible */
.apc-btn-icon {
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    padding: 8px !important;
    cursor: pointer !important;
    color: #4b5563 !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 6px !important;
    margin-right: 5px !important;
    width: 36px !important;
    height: 36px !important;
}

.apc-btn-icon:hover {
    color: #fff !important;
    background-color: #2563eb !important;
    border-color: #2563eb !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.2) !important;
}

.apc-btn-icon.delete-user:hover,
.apc-btn-icon.delete-category:hover {
    background-color: #ef4444 !important;
    border-color: #ef4444 !important;
    box-shadow: 0 4px 6px -1px rgba(239, 68, 68, 0.2) !important;
}

.apc-btn-icon .dashicons {
    font-size: 20px !important;
    /* Larger icons */
    width: 20px !important;
    height: 20px !important;
}

/* Dropdowns & Controls */
.apc-form-control select,
select.apc-form-control,
.apc-calendar-filters select,
.apc-modal-body select {
    appearance: none !important;
    -webkit-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%236b7280'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 0.75rem center !important;
    background-size: 1rem !important;
    padding: 0 2.5rem 0 1rem !important;
    background-color: #fff !important;
    border: 1px solid #d1d5db !important;
    border-radius: 6px !important;
    transition: all 0.2s ease !important;
    color: #111827 !important;
    font-size: 14px !important;
    height: 38px !important;
    /* Slightly taller for modern look */
    line-height: normal !important;
    min-width: 160px !important;
}

.apc-calendar-filters {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    margin-bottom: 25px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Badges */
.apc-badge {
    padding: 2px 10px !important;
    border-radius: 20px !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
}

.apc-badge-admin {
    background: #fee2e2;
    color: #991b1b;
}

.apc-badge-company {
    background: #dcfce7;
    color: #166534;
}

.apc-badge-employee {
    background: #dbeafe;
    color: #1e40af;
}

/* Modal Adjustments */
.apc-modal-content {
    border-radius: 12px !important;
    overflow: hidden !important;
}

.apc-modal-header {
    background: #f9fafb !important;
    padding: 20px !important;
}

.apc-modal-body {
    padding: 24px !important;
}

.apc-modal-footer {
    background: #f9fafb !important;
    padding: 16px 24px !important;
}