/* ==========================================
   Form Base & Layout Styles
   ========================================== */
.ccm-form-card {
    margin: 0 auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: #333;
    box-sizing: border-box;
}

/* Force border-box for all form elements */
.ccm-form-card *, 
.ccm-form-card *::before, 
.ccm-form-card *::after {
    box-sizing: border-box !important;
}

/* Grid Utilities */
.ccm-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 5px;
}

/* 3-Column Grid for Name section */
.ccm-grid-3 {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 15px !important;
    margin-bottom: 5px;
}

/* Form Groups & Labels */
.ccm-group {
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 25px !important;
    width: 100% !important;
}

.ccm-group label {
    font-weight: 700 !important;
    font-size: 17px !important;
    margin-bottom: 6px !important;
    color: #222 !important;
    display: block !important;
    text-align:left;
}

/* Input, Select, and Textarea Controls */
.ccm-group input[type="text"],
.ccm-group input[type="email"],
.ccm-group input[type="date"],
.ccm-group input[type="file"],
.ccm-group select,
.ccm-group textarea {
    width: 100% !important;
    background-color: #fcfcfc !important;
    border: 1.5px solid #1a5276 !important; /* Blue outline matching screenshot */
    border-radius: 25px !important;
    padding: 10px 18px !important;
    font-size: 13.5px !important;
    color: #333 !important;
    outline: none !important;
    transition: all 0.2s ease-in-out !important;
    height: 55px !important;
    line-height: 1.2 !important;
    box-shadow: none !important;
}

/* Custom Select Dropdown Styling */
.ccm-group select {
    appearance: auto !important;
    -webkit-appearance: auto !important;
    cursor: pointer !important;
}

/* Textarea Override */
.ccm-group textarea {
    border-radius: 18px !important;
    height: auto !important;
    min-height: 110px !important;
    padding: 12px 18px !important;
    resize: vertical !important;
}

/* Input Focus States */
.ccm-group input:focus, 
.ccm-group select:focus, 
.ccm-group textarea:focus {
    background-color: #ffffff !important;
    border-color: #007bff !important;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15) !important;
}

/* Checkbox Styles for Shift Preference */
.ccm-checkbox-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    padding-top: 4px;
}

.ccm-checkbox-label {
    font-weight: 500 !important;
    font-size: 13.5px !important;
    color: #444 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.ccm-checkbox-label input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    cursor: pointer !important;
    margin: 0 !important;
}

/* File Upload Button Styling */
.ccm-group input[type="file"] {
    padding: 7px 14px !important;
    height: auto !important;
    background: #f1f1f1 !important;
    border-radius: 12px !important;
}

/* Submit Button */
.ccm-btn {
    width: auto !important;
    min-width: 200px !important;
    background: #e65100 !important; /* Match orange submit color */
    color: #ffffff !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    padding: 12px 28px !important;
    border: none !important;
    border-radius: 25px !important;
    cursor: pointer !important;
    transition: background 0.2s ease !important;
    margin-top: 10px !important;
}

.ccm-btn:hover {
    background: #bf360c !important;
}

/* Alert Notifications */
.ccm-alert {
    padding: 12px 18px !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    margin-bottom: 20px !important;
    display: none;
}
.ccm-alert.success { background: #e6f4ea !important; color: #137333 !important; border: 1px solid #b7e1cd !important; }
.ccm-alert.error { background: #fce8e6 !important; color: #c5221f !important; border: 1px solid #f5c2c7 !important; }

/* ==========================================
   Dashboard Styles
   ========================================== */
.ccm-dash { 
    font-family: system-ui, sans-serif !important; 
    background: #fff !important; 
    padding: 20px !important; 
    border-radius: 12px !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.05) !important; 
}
.ccm-dash-header { 
    display: flex !important; 
    justify-content: space-between !important; 
    align-items: center !important; 
    gap: 15px !important; 
    margin-bottom: 20px !important; 
    flex-wrap: wrap !important; 
}
.ccm-search-input { 
    padding: 10px 16px !important; 
    border-radius: 20px !important; 
    border: 1px solid #ccc !important; 
    width: 250px !important; 
    font-size: 14px !important; 
}
.ccm-export-btn { 
    background: #28a745 !important;
    color: #ffffff !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-weight: 600 !important;
    font-size: 14px !important;
}

.ccm-table { 
    width: 100% !important; 
    border-collapse: collapse !important; 
    margin-bottom: 15px !important; 
}
.ccm-table th, .ccm-table td { 
    padding: 12px 15px !important; 
    text-align: left !important; 
    border-bottom: 1px solid #eee !important; 
    font-size: 14px !important; 
}
.ccm-table th { 
    background: #f8f9fa !important; 
    font-weight: 700 !important; 
}
.ccm-act-btn { 
    padding: 6px 12px !important;
    border-radius: 15px !important;
    border: none !important;
    cursor: pointer !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-right: 5px !important;
}
.ccm-view-btn { background: #007bff !important; color: white !important; }
.ccm-del-btn { background: #dc3545 !important; color: white !important; }

.ccm-pagination { display: flex !important; gap: 8px !important; justify-content: flex-end !important; align-items: center !important; }
.ccm-page-num {
    padding: 6px 12px !important;
    border: 1px solid #ddd !important;
    border-radius: 8px !important;
    cursor: pointer !important; 
    background: #fff !important; 
    color:#000 !important;
}
.ccm-page-num.active { background: #f26522 !important; color: #fff !important; border-color: #f26522 !important; }

/* Modal Popup */
.ccm-modal { 
    position: fixed !important; 
    top:0 !important; 
    left:0 !important; 
    width:100% !important; 
    height:100% !important; 
    background:rgba(0,0,0,0.5) !important; 
    display:none; 
    justify-content:center !important; 
    align-items:center !important; 
    z-index:99999 !important; 
}
.ccm-modal-content { 
    background:#fff !important; 
    padding:25px !important; 
    border-radius:12px !important; 
    max-width:650px !important; 
    width:90% !important; 
    position:relative !important; 
}
.ccm-close-modal { 
    position:absolute !important; 
    right:15px !important; 
    top:15px !important; 
    font-size:20px !important; 
    cursor:pointer !important; 
    font-weight:bold !important; 
}

/* Responsive Media Query */
@media (max-width: 768px) {
    .ccm-grid, .ccm-grid-3 {
        grid-template-columns: 1fr !important;
    }
}