/* AtWork ERP Styles */
.atwork-login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.atwork-login-page .card {
    border: none;
    border-radius: 15px;
}

.atwork-login-page .card-header {
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

.form-control:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

.btn-primary {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: none;
}

.btn-primary:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    transform: translateY(-1px);
}

.btn-success {
    background: linear-gradient(45deg, #56ab2f, #a8e6cf);
    border: none;
}

.btn-success:hover {
    background: linear-gradient(45deg, #4e9a2a, #96d4b5);
    transform: translateY(-1px);
}

.btn-info {
    background: linear-gradient(45deg, #2196F3, #21CBF3);
    border: none;
}

.btn-info:hover {
    background: linear-gradient(45deg, #1976D2, #00BCD4);
    transform: translateY(-1px);
}

.card {
    transition: all 0.3s ease;
    max-width: 100% !important;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.table th {
    background-color: #f8f9fa;
    border-top: none;
    font-weight: 600;
}

.modal-content {
    border: none;
    border-radius: 15px;
}

.modal-header {
    border-bottom: 1px solid #dee2e6;
}

.alert {
    border: none;
    border-radius: 10px;
}

.form-control, .form-select {
    border-radius: 8px !important;
    border: 1px solid #ddd !important;
    width: 100% !important;
    max-width: 100% !important;
    height: 60px;
}

.form-control:focus, .form-select:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Dashboard Cards */
.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
}

.dashboard-card h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

.dashboard-card h5 {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .atwork-login-page .col-md-4,
    .atwork-login-page .col-md-6 {
        padding: 15px;
    }
    
    .card-body {
        padding: 20px;
    }
}

/* Loading States */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Custom animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

/* Modal Animation */
@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.modal.show .modal-dialog {
    animation: modalFadeIn 0.3s ease-out;
}

/* Status badges */
.status-active {
    background-color: #28a745;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}

.status-terminated {
    background-color: #dc3545;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
}
.card-body {
    /* display:flex; */
    justify-content:space-between
}

/* Modal Fixes */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999999;
    display: none;
    overflow-y: auto;
}

.modal.show {
    display: block !important;
}

.modal-dialog {
    position: relative;
    margin: 1.75rem auto;
    width: calc(100% - 2rem);
}

.modal-content {
    position: relative;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.2);
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

@media (max-width: 576px) {
    .modal-dialog {
        margin: 1rem;
        width: calc(100% - 2rem);
    }
}