/* Add smooth transitions */
.company-item {
    transition: all 0.3s ease;
}

.employee-item {
    transition: all 0.3s ease;
}

/* Loading states */
.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* Empty state styling */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #7f8c8d;
}

.empty-state i {
    display: block;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.empty-state p {
    color: #95a5a6;
}

/* Button disabled state */
.btn-primary:disabled,
.btn-secondary:disabled,
.btn-edit:disabled,
.btn-delete:disabled,
.btn-employees:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}
.container {
/*    display: flex; */
/*    min-height: 100vh; */
}

/* Sidebar Styles */
.sidebar {
    width: 200px;
    background: linear-gradient(180deg, #2c3e50, #1a2530);
    color: white;
    padding: 20px 0;
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.logo {
    padding: 0 20px 30px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 20px;
}

.logo h2 {
    font-size: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-btn {
    width: 100%;
    padding: 15px 20px;
    background: transparent;
    border: none;
    color: #b0b7c3;
    text-align: left;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 12px;
}

.sidebar-btn:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

.sidebar-btn.active {
    background: rgba(52, 152, 219, 0.2);
    color: #3498db;
    border-left: 4px solid #3498db;
}

/* Main Content */
.main-content {
    flex: 1;
    padding: 30px;
    background-color: #f5f7fa;
    overflow-y: auto;
}

.welcome-message {
    text-align: center;
    margin-top: 100px;
}

.welcome-message h1 {
    color: #2c3e50;
    margin-bottom: 20px;
    font-size: 2.5em;
}

.welcome-message p {
    color: #7f8c8d;
    font-size: 1.2em;
}

/* Company Page Styles */
.company-container {
    background: white;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}

.company-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #f0f2f5;
}

.company-header h1 {
    color: #2c3e50;
    font-size: 28px;
}

.company-header h1 i {
    color: #3498db;
    margin-right: 15px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #2980b9, #1c5a80);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(52, 152, 219, 0.3);
}

.btn-edit {
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-edit:hover {
    background: linear-gradient(135deg, #e67e22, #d35400);
}

.btn-delete {
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-delete:hover {
    background: linear-gradient(135deg, #c0392b, #a93226);
}

.btn-employees {
    background: linear-gradient(135deg, #27ae60, #229954);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-employees:hover {
    background: linear-gradient(135deg, #229954, #1e8449);
}

.btn-secondary {
    background: #95a5a6;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #7f8c8d;
}

/* Company List */
.company-list {
    margin-top: 20px;
}

.company-item {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.company-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    border-color: #3498db;
}

.company-info h3 {
    color: #2c3e50;
    margin-bottom: 5px;
    font-size: 18px;
}

.company-info p {
    color: #7f8c8d;
    font-size: 14px;
    margin-bottom: 0;
}

.company-actions {
    display: flex;
    gap: 10px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: white;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h3 {
    color: #2c3e50;
    font-size: 20px;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #7f8c8d;
    cursor: pointer;
    transition: color 0.3s;
}

.modal-close:hover {
    color: #e74c3c;
}

.modal-body {
    padding: 25px;
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}

/* Form Styles */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.2);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
    font-family: inherit;
}

.char-count {
    text-align: right;
    font-size: 12px;
    color: #95a5a6;
    margin-top: 5px;
}

/* Loading Spinner */
.spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 50px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Confirmation Modal */
.confirm-modal .modal-content {
    max-width: 400px;
}

.confirm-message {
    text-align: center;
    padding: 30px;
    font-size: 16px;
    color: #2c3e50;
}

.confirm-message i {
    font-size: 48px;
    color: #e74c3c;
    margin-bottom: 20px;
    display: block;
}

/* Employee List */
.employee-list {
    margin: 20px 0;
}

.employee-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 10px;
    background: #f8f9fa;
}

.employee-info h4 {
    margin: 0 0 5px 0;
    color: #2c3e50;
}

.employee-info p {
    margin: 0;
    color: #7f8c8d;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
        height: auto;
        padding: 10px 0;
    }
    
    .sidebar-btn {
        padding: 10px 20px;
    }
    
    .company-header {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .company-item {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }
    
    .company-actions {
        justify-content: center;
    }
}